4 ms·
I'm working on a toy programming language at the moment, and I was considering using a LISP dialect of some sort as the IR to be compiled down to. Is this a dum
by girvo 13y ago
I'm working on a toy programming language at the moment, and I was considering using a LISP dialect of some sort as the IR to be compiled down to. Is this a dumb idea? I had the same sort of epiphany that the OP had, but then I think LLVM IR is a better choice. The only reason I like the LISP-as-IR idea, is that if a programmer wants to get deep and optimise, the tooling can work with lisp instead, which allows for some neat tricks I have in mind.
- jaggederest 13y agoYou're basically reontologizing the history of Lisp, which is that it was originally S-expressions that were the intermediary language for M-expressions, which were the human representation. They never quite got around to making M-expressions though, people found working in S-expressions to be pretty fine. Dylan is sort of a compromise around this area though: http://en.wikipedia.org/wiki/Dylan_(programming_language)#Syntax http://en.wikipedia.org/wiki/Dylan_(programming_language)#Sy...