Re:Things That Turbo Pascal is Smaller Than
by groovy2shoes on Sunday October 30, 2011 @10:29PM
(#3176128)
I believe that's how the Clojurescript compiler currently works (though I haven't looked at the code in detail). Compilers that don't do it that way usually have optimizations going on in between the parse and codegen phases, not because it's impossible to do with Lisp syntax.
[ Parent
| on HN ]
Re:Things That Turbo Pascal is Smaller Than
by xyzzyz on Monday October 31, 2011 @07:05AM
(#3176995)
"because it's impossible to do with Lisp syntax."
The problem is not with Lisp syntax. The problem is with Lisp's semantics, which makes it much more difficult (if at all possible) to compile in one pass. Things like closures, conditions or macros are absent in Pascal.