Hacker News new | ask | show | jobs
by inawarminister 962 days ago
Reminds me of quoting ' operator in Lisps, transforming executable code to data.

e.g. from Clojure:

"

(quote form)

Yields the unevaluated form.

user=> '(a b c)

(a b c)

Note there is no attempt made to call the function a. The return value is a list of 3 symbols." [0]

Training an LLM wholly using a Scheme dialect might be interesting, hmm.

[0] https://clojure.org/reference/special_forms

1 comments

In Common Lisp there are also reader macros, which can execute any Lisp function at read time, including quoted forms. Which is why you must bind *read-eval* to nil before even reading from an untrusted source. (This variable exists in Clojure too.)