from Hacker News

A Lisp REPL Inside ChatGPT

by madmax96 on 12/5/22, 6:51 PM with 4 comments

  • by hospadar on 12/5/22, 7:12 PM

    I often have read "I wonder if it _really_ understands or is just regurgitating ${something}" about AIs like this and I wonder what the difference really is? Ability to explain why it's one way and not the other? Extremely low frequency of errors? If it doesn't really understand lisp, maybe we'd expect to see a fairly high rate of incorrect interpretations?

    Presumably most _actual_ compilers don't produce the correct solution 100% of the time (i.e. they have bugs), but I think it's reasonable to say that the compiler _understands_ ${programming language}. Maybe the difference between "understanding" and "just memorizing answers" is more subtle than often portrayed?

  • by narush on 12/5/22, 7:07 PM

    Cool post -- wondering, does the final example of defining the y combinator and using it really show much? `(factorial 5)` probably would run without defining the y combinator first -- would be interested to see how it handled some novel function that isn't probably directly memorized.
  • by singularity2001 on 12/5/22, 11:24 PM

    (setf factorial (FUNCALL Y …

    (factorial 5) 120

    The author should at least have tested a counter-example

    (setf factorial (red hot chilly nonsense))

    I expect the 'evaluation'

    (factorial 5) 120

    to be 'correct' regardless of the function definition!