Re: Any AI projects still using Lisp?

Liste des GroupesRevenir à cl lisp 
Sujet : Re: Any AI projects still using Lisp?
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.lisp
Date : 07. Feb 2024, 16:34:49
Autres entêtes
Organisation : Stefan Ram
Message-ID : <Lisp-20240207163321@ram.dialup.fu-berlin.de>
References : 1
Yorick Namor <yorick@nam.or> writes:
Just curious.

  At least neural AI can help you with Lisp today! Me:

|How do I write a program in Common Lisp to do the following
|things: In an endless loop, repeatedly "read a string, then
|store the first character of the string in the variable a,
|then store the rest of the string in the variable b, then
|print both a and b"?

  . AI system:

|(loop
|  (let* ((input (read-line))  ; Read a line of input
|         (a (char input 0))   ; Store first character in variable a
|         (b (subseq input 1)) ; Store rest of the string in variable b
|         )
|    (format t "a: ~a, b: ~a~%" a b)  ; Print both a and b
|    )
|  )

  . Then I asked about "subseq" and used that to change "char
  input 0" into "subseq input 0 1". The chatbot gave me a good
  start with the small Common Lisp program I want to write.


Date Sujet#  Auteur
7 Feb 24 o Re: Any AI projects still using Lisp?1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal