Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
BostX committed Sep 17, 2024
1 parent 9925d6e commit 8520ea1
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 179 deletions.
8 changes: 6 additions & 2 deletions notes/ai.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@
- when errors are unacceptable -> probabilities
- when not much data is available

ML is for structured data (e.g. tables): Algorithm: gradient boosted machine, random forest, tree based algorithm (XGBoost), naive Bayes - shallow algorithms
DL is for unstructured data (e.g. text, images, etc.): Algorithm: neural network
ML is for structured data (e.g. tables):
Algorithm: gradient boosted machine, random forest, tree based algorithm
(XGBoost), naive Bayes - shallow algorithms

DL is for unstructured data (e.g. text, images, etc.):
Algorithm: neural network

https://daily.ginger-t.link/glossary

Expand Down
236 changes: 59 additions & 177 deletions notes/chatGPT.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ Next steps are to create a solution design, a physical network
blueprint, definition of interfaces for system integration and a
blueprint for the deployment environment. My first request is
"[INSERT]"
;;;;;;;;;;;;;;;;
Ok. You got sligthly too creative and too smart.
Ok that was an easy and artificial example, we both now, don't we? :smile: There
is a plenty of code snippets out there, solving this task, which easily find
using Google. And you can just copy-paste it and send it to me.
Now the real problem is:
;; Guile Scheme
;; Write a function that will take a string and reverse the order of the words. Examples:
;; "Hello world" becomes "world Hello"
;; "May the Fourth be with you" becomes "you with be Fourth the May"
|#

(define (reverse-words str)
Expand All @@ -52,44 +36,12 @@ Now the real problem is:
#|
;;;;;;;;;;;;;;;;;;;;;;
I want you to act as a Guix, Guile Scheme developer and LISP hacker. You should use your knowledge and information obtained from:
I want you to act as a Guix, Guile Scheme developer and LISP hacker. You should
use your knowledge and information obtained from:
- the source code of the projects GNU Guix and GNU Guile Scheme.
- #guix and #guile IRC channel logs, mailing lists, Info-Pages and Man-Pages.
- github, gitlab, stackoverflow, stackexchange, reddit, etc.
- your generall understanding of LISP, programming and computer science.
Analyse following backtrace:
In guix/status.scm:
830:4 19 (call-with-status-report _ _)
In guix/scripts/home.scm:
511:4 18 (_)
In ice-9/boot-9.scm:
1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
659:37 16 (thunk)
1298:8 15 (call-with-build-handler #<procedure 7fbf37851840 at g…> …)
2168:25 14 (run-with-store #<store-connection 256.99 7fbf3c354050> …)
In guix/scripts/home.scm:
524:12 13 (_ _)
427:21 12 (perform-action container #<<home-environment> package…> …)
In gnu/home.scm:
102:15 11 (home-environment-derivation _)
In gnu/services.scm:
1140:36 10 (_ _)
In srfi/srfi-1.scm:
586:29 9 (map1 (#<<service> type: #<service-type home-profile…> …))
586:29 8 (map1 (#<<service> type: #<service-type home-environ…> …))
586:29 7 (map1 (#<<service> type: #<service-type home-activat…> …))
586:29 6 (map1 (#<<service> type: #<service-type home-run-on-…> …))
586:29 5 (map1 (#<<service> type: #<service-type home-provena…> …))
586:17 4 (map1 (#<<service> type: #<service-type home-files 7fb…>))
In gnu/home/services.scm:
331:38 3 (files-entry _)
310:6 2 (files->files-directory _)
In ice-9/boot-9.scm:
1685:16 1 (raise-exception _ #:continuable? _)
1685:16 0 (raise-exception _ #:continuable? _)
;;;;;;;;;;;;;;;;;;;;
I want you to act as a Guix, Guile Scheme developer and LISP hacker. We will be
Expand All @@ -101,18 +53,24 @@ should use your knowledge and information obtained from:
- github, gitlab, stackoverflow, stackexchange, reddit, etc.
- your generall understanding of LISP, programming and computer science.
Do 100% exactly what I say when I say "Do exactly what I say". Don't be too creative
Do 100% exactly what I say when I say "Do exactly what I say".
Don't be too creative
I want, that you reply with code snippets which I can copy-paste to my
Guile-REPL and evaluate it there. If possible, the snippetes should be written
in functional programming style. Not in imperative programming style. Every code
snippet in your replies must satisfy following 2 conditions:
1. The width of the snippet can't exeed 80 characters. In oder to satisfy this, do following:
1. The width of the snippet can't exeed 80 characters. In oder to satisfy this,
do following:
1.1. Create your reply. Do not send it to me yet.
1.2. Format this reply, i.e. wrap the lines, so that no single line is longer than 80 characters.
2. Any explaination which you want to give me in plain English, must be either a docstring or a comment in a code snippet.
1.2. Format this reply, i.e. wrap the lines, so that no single line is longer
than 80 characters.
2. Any explaination which you want to give me in plain English, must be either a
docstring or a comment in a code snippet.
Here is an example of a snippet satisfying both conditions 1. and 2.:
Expand All @@ -125,7 +83,10 @@ Here is an example of a snippet satisfying both conditions 1. and 2.:
My first goal is:
"Print integers one-to-N, but print 'Fizz' if an integer is divisible by three, 'Buzz' if an integer is divisible by five, and 'FizzBuzz' if an integer is divisible by both three and five."
"Print integers one-to-N, but print 'Fizz' if an integer is divisible by three,
'Buzz' if an integer is divisible by five, and 'FizzBuzz' if an integer is
divisible by both three and five."
;;;;;;;;;;;;;;;;;;;;
|#
Expand Down Expand Up @@ -155,34 +116,41 @@ are 2 examples extracted from your previous respone:
;; 1. example:
(define (git-repository url)
"This function takes a URL string as its argument and returns a git-repo object that represents the git repository.
"This function takes a URL string as its argument and returns a git-repo
object that represents the git repository.
Function not implemented yet."
#| TODO implement this function |#)
;; 2. example:
(define (git-commits git-repo-object options)
"This function takes a git-repo object and a list of options and returns a list of git-commit objects representing the commits in the repository.
"This function takes a git-repo object and a list of options and returns a
list of git-commit objects representing the commits in the repository.
Function not implemented yet."
#| TODO implement this function |#)
;;;;;;;;;;;;;;;;;;;;
|#

(define (get-latest-commit url)
"This function takes a string URL with a git repository and returns the latest commit hash of that git repository.
The function uses the git module from Guile's standard library to get the latest commit from the specified git repository.
"This function takes a string URL with a git repository and returns the latest
commit hash of that git repository.
The function uses the git module from Guile's standard library to get the latest
commit from the specified git repository.
:param url: string URL with git repository
:return: string latest commit hash"
(use-modules (ice-9 match)
(git))

(define (git-repository url)
"This function takes a URL string as its argument and returns a git-repo object that represents the git repository."
"This function takes a URL string as its argument and returns a git-repo
object that represents the git repository."
(git-open-repository url))

(define (git-commits git-repo options)
"This function takes a git-repo object and a list of options and returns a list of git-commit objects representing the commits in the repository."
"This function takes a git-repo object and a list of options and returns a list
of git-commit objects representing the commits in the repository."
(git-query-repo git-repo 'commit options))

(let ((repo (git-repository url)))
Expand All @@ -194,7 +162,10 @@ Function not implemented yet."
(_
(git-commit-id latest-commit))))))
#|
That's better but still not what I need. You're still giving me explanations in plain English which are not part of the code snippets. That's wrong!
That's better but still not what I need. You're still giving me explanations in
plain English which are not part of the code snippets. That's wrong!
Please improve your latest answer and in addition, wrap the lines at 80 characters.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|#
Expand Down Expand Up @@ -354,126 +325,37 @@ from PokeAPI sprites endpoint"
((exit))))

#|
Alexander-Miller wrote an emacs package in a project called 'treemacs'. Have a look at the source code of this project and tell me:
1. what is name of this package? It must be specified by the `provide`.
2. what license this project uses? It is specified by some LICENSE file or the license is mentions is one of the el-files.
Alexander-Miller wrote an emacs package in the project called 'treemacs'. What license this project uses? It is specified by some LICENSE file or the license is mentions is one of the el-files.
I want you to act as an Emacs User. I will provide you with an emacs package and it's source code. Research the package and its available documentation, and if none can be found, reply "Unable to find".
My first request is "What's the license used by treemacs package from "
I want you to act as an Emacs User. I will provide you with an emacs package and it's source code. Research the package and its available documentation, and if none can be found, reply "Unable to find".
My first request is:
Have a look at the treemacs package from the https://github.com/Alexander-Miller/treemacs
1. What's the license used by this package. Reply with the name of the license and explain me how did you identified this lincence?
2. What is the synopsis of this package?
3. What is the description of this package?
I want you to act as an Emacs User, Emacs Developer. I will provide you with an Emacs package and its source code. Research and analyze the package and its available documentation. If none can be found, reply "Unable to find". My first request is:
Research and analyze http://www.github.com/mbezjak/emacs-groovy-imports and answer following questions:
1. What is the exact name of this package? Respond with a lisp code snippet containing the name specified inside the sexp: '(provide ...)'. Response format example: `(name "EMACS-PACKAGE-NAME")`.
2. What other packages are required by this package? Respond with a lisp code snippet containing a list of names specified inside the sexps: '(requires ...)'. Response format example `(list PACKAGE1 PACKAGE2 PACKAGE3)`.
3. What is the license used by this package. Explain me shortly how did you identified this license. Respond with a lisp code snippet containing the name of the license. Response format example: `(license license:gpl3+)`.
4. What are the synopsis and the description of this package? Respond with a lisp code snipped. Response format example:
```
(list
(synopis "TEXT OF THE SYNOPSIS")
(description "TEXT OF THE DESCRIPTION"))
```
I want you to act as an Emacs User, Emacs Developer. I will provide you with an Emacs package and its source code written in Emacs-Lisp. Research and analyze the package source code and its available documentation. If none can be found, reply "Unable to find".
My first request is:
Research and analyze http://www.github.com/mbezjak/emacs-groovy-imports and answer the four questions written inside the code snipped below. Encode and format your response as this snippet.
```elisp
(list
;; 1. What is the exact name of this package specified inside the sexp: '(provide ...)'? Example:
(name "EMACS-PACKAGE-NAME")
;; 2. What other packages are required by this package? Answer this question by analyzing the sexps: '(requires ...)'. Example.
(inputs (list PACKAGE1 PACKAGE2 PACKAGE3))
;; 3. What is the synopsis this package? Example:
(synopis "TEXT OF THE SYNOPSIS")
;; 4. What is the description this package? Example:
(description "TEXT OF THE DESCRIPTION")
;; 5. What is the license used by this package? (It is specified in either by a LICENSE file or written in the header of some emacs-lisp file.) Explain me how did you identified this license. Example:
;; Explanation: License identified by analyzing the "FILENAME".
(license "LICENSE-NAME"))
```
I want you to act as an Emacs User, Emacs Developer. I will provide you with an
Emacs package and its source code written in Emacs-Lisp. Research and analyze
the package source code and its available documentation. If none can be found,
reply "Unable to find".
The license name is wrong. I need to ask you again:
Research and analyze the emacs package
http://www.github.com/mbezjak/emacs-groovy-imports. I strictly forbid you to
provide me information from any other emacs package. and answer the five
questions written inside the code snipped below. Encode and format your response
as this snippet. Wrap the lines at 80 characters, ie. make sure no line of the
response is longer than 80 chars.
Research and analyze http://www.github.com/mbezjak/emacs-groovy-imports and answer the five questions written inside the code snipped below. Encode and format your response as this snippet.
```elisp
(list
;; 1. What is the exact name of this package specified inside the sexp: '(provide ...)'? Example:
(name "EMACS-PACKAGE-NAME")
;; 2. What other packages are required by this package? Answer this question by analyzing the sexps: '(requires ...)'. Example.
(inputs (list PACKAGE1 PACKAGE2 PACKAGE3))
;; 3. What is the synopsis this package? Example:
(synopis "TEXT OF THE SYNOPSIS")
;; 4. What is the description this package? Example:
(description "TEXT OF THE DESCRIPTION")
;; 5. What is the license used by this package? (It is specified in either by a LICENSE file or written in the header of some emacs-lisp file.) Write me in which file from this project, on which line number you found the license specification. Example:
;; License found at FILENAME:LINE_42
(license "LICENSE-NAME"))
;; 1. What is the exact name of this package specified inside the sexp:
;; '(provide ...)'? Example:
(name "EMACS-PACKAGE-NAME")
;; 2. What other packages are required by this package? Answer this question
;; by analyzing the sexps: '(requires ...)'. Example.
(inputs (list PACKAGE1 PACKAGE2 PACKAGE3))
;; 3. What is the synopsis this package? Example:
(synopis "TEXT OF THE SYNOPSIS")
;; 4. What is the description this package? Example:
(description "TEXT OF THE DESCRIPTION")
;; 5. What is the license used by this package? (It is specified in either by
;; a LICENSE file or written in the header of some emacs-lisp file.) Write me
;; in which file from this project, on which line number you found the license
;; specification. Example:
;; License found at FILENAME:LINE_42
(license "LICENSE-NAME"))
```
Research and analyze the emacs package http://www.github.com/mbezjak/emacs-groovy-imports. I strictly forbid you to provide me information from any other emacs package.
and answer the five questions written inside the code snipped below. Encode and format your response as this snippet. Wrap the lines at 80 characters, ie. make sure no line of the response is longer than 80 chars.
```elisp
(list
;; 1. What is the exact name of this package specified inside the sexp: '(provide ...)'? Example:
(name "EMACS-PACKAGE-NAME")
;; 2. What other packages are required by this package? Hint: analyze the '(requires ...)' expressions to find them. Example.
(inputs (list PACKAGE1 PACKAGE2 PACKAGE3))
;; 3. What is the synopsis this package? Hint: loot at the 'About' section to find it. Example:
(synopis "TEXT OF THE SYNOPSIS")
;; 4. What is the description this package? Hint: look at the README file to find it. Example:
(description "TEXT OF THE DESCRIPTION")
;; 5. What is the license used by this package? Hint: look at LICENSE.md or LICENSE.txt or at the header of some emacs-lisp file to identify it. Write me in which file, on which line number of this file you found it. If you can't identify any, write "Unknown". Example:
;; License found at FILENAME:LINE_42
(license "LICENSE-NAME"))
```
; Visit the URL specified by the #:git-repository. It contains the source code of an emacs-package. Do following:
;; 1. Analyze the emacs-lisp files
;; 2. If provided, analyze the README and LICENSE files
;; Output:
;; A list of the same size, where every TODO is replaced with a real values, as described by the TODO-text
;; Input:
(list
(#:git-repository
"https://github.com/Alexander-Miller/treemacs"
#:package-name
"TODO name of the provided emacs-package."
#:requires
"TODO list of required emacs-packages."
#:synopsis
"TODO synopsis of this emacs-package."
#:description
"TODO description of this emacs-package."
#:license
"TODO license used by this emacs-package."
)
(#:git-repository
"http://www.github.com/mbezjak/emacs-groovy-imports"
#:package-name
"TODO name of the provided emacs-package."
#:requires
"TODO list of required emacs-packages."
#:synopsis
"TODO synopsis of this emacs-package."
#:description
"TODO description of this emacs-package."
#:license
"TODO license used by this emacs-package."
)
)
|#
}

0 comments on commit 8520ea1

Please sign in to comment.