4 ms·
> How many LISPers truly use homoiconicity? Probably not many. Due to the need for performance, everything that matters will end up being compiled to a more ef
by matheusmoreira 6y ago
> How many LISPers truly use homoiconicity?
Probably not many. Due to the need for performance, everything that matters will end up being compiled to a more efficient representation. Functions and complex data types could be represented as lists but no real world Lisp implements them that way anymore since it's better to have a dedicated function or hash table types.
- slaymaker1907 6y agoIn Racket it still gets used all the time with macros. Macros are can be used like a customizable JIT compiler if you need the performance. In Racket's case, you can even run the expansion step separately like a compiler since it separates macros out as a distinct execution phase. Functions aren't represented as lists at runtime, but you still get a lot of control via continuations. You can even serialize continuations to send them over the network or save it to disk. That does have security implications, but it is flexible and convenient.
- p_l 6y agoHomoiconicity has nothing to do with actually storing code as lists when compiled. However, Common Lisp source code is defined in terms of lists (with text being a separate serialisation thing) and every time you use a macro, or backticks, you depend on such definition enabling homoiconicity.