Hacker News new | ask | show | jobs
by rurban 1911 days ago
Because you prefer to beaten by a stick after work, right? Helps your swollen hand.

Lisp is one of the best compiler implementation languages. Doing the same in C of C++ is about 3-20x more effort.

1 comments

Extremely beyond the point, but it's not about Lisp, it's about automatic memory management, and to lesser extent lambdas and pattern matching.

There's nothing magical about Lisp that makes it super fit for compiler development.

Right. For compiler development you just need proper tree handling libs, proper generic types and proper macro abstractions. Static langs rarely have these features, besides ocaml and mercury, but most dynamic langs have it. Hence parents comment was being critized.

Javascript is of course torture for other reasons, but lisp, prolog, clojure et al do make sense. Lisp being the language with the most implemented compilers. Prolog probably being the easiest. Prolog compilers are usually much shorter and better than lisp ones. Super fit is only OCaml because it already comes with all the infrastructure, C parsers and such. In lisp you'd need to write 50 lines.