News for hackers. Stuff that matters.
Re:Wisp: A light Lisp written in C++ by coliveira on Monday December 28, 2020 @12:03PM (#25560823)
I'm surprised that we don't see more compilers and interpreters written in Lisp, since people seem to believe that writing compilers in Lisp is easier than other languages. In fact most compilers and interpreters are written in C.
Re:Wisp: A light Lisp written in C++ by Athas on Monday December 28, 2020 @12:46PM (#25561251)
I don't think this is true anymore. From the TIOBE top 10 (that hallowed source of truth), I count only three languages whose main implementation is written in C (Python, PHP, R). Extending to top 20 only adds two more (Perl and Ruby). All of those are interpreters. Most compilers seem to be implemented in the language they are compiling. It appears that C++ is the most popular implementation language, although C is number two - but neither constitute a majority.
Re:Wisp: A light Lisp written in C++ by coliveira on Monday December 28, 2020 @02:47PM (#25562505)
However my note is about Lisp in particular. Apart from a few cases, Lisp is little used to implement compilers for other languages.