6 ms·
I think he would've gotten a better score on the Lisp prediction if he didn't specify Lisp and instead went after Lisp-like features. Metaprogramming and homoi
by yellowapple 11y ago
I think he would've gotten a better score on the Lisp prediction if he didn't specify Lisp and instead went after Lisp-like features. Metaprogramming and homoiconicity are becoming increasingly popular, as are machine learning techniques.
- dwd 11y agoGiven this was 2004 you have to give him full points for his prediction on PG - "He has an impressive resume, and he appears to be only just getting started."
- kibwen 11y agoMacro systems are becoming increasingly popular (e.g. Rust and Sweet.js), but arguably neither of those languages is homoiconic in the Lisp sense (though see also Dave Herman's "Homoiconicity isn't the point" http://calculist.org/blog/2012/04/17/homoiconicity-isnt-the-point/ http://calculist.org/blog/2012/04/17/homoiconicity-isnt-the-... ).
- yellowapple 11y agoBy homoiconicity, I was referring to Julia and Elixir, both of which are cited as being homoiconic (even though some purists disagree). Also, I think "Homoiconicity isn't the point" misses the point. Homoiconicity isn't about syntax - indeed, Lisp isn't technically confined to s-expressions, and was originally designed for M-expressions before folks realized that s-expressions were much easier to implement - but rather about the ability to represent a program as ordinary data and to manipulate it as such. Yeah, I can do all sorts of metaprogramming in, say, Ruby or Perl, but you won't be able to go very far before you end up passing strings into `eval`; this is because they're not homoiconic (at least in their current forms). Meanwhile, the ability of languages like Elixir to actually modify a program's syntax tree directly - a.k.a. homoiconicity - makes metaprogramming much easier. The two concepts go hand in hand. S-expressions happen to be very convenient for defining tree-like structures, like - for example - Lisp programs. They're not strictly required, however.