3 ms·
As far as optimizing compiler... Maru might not yet qualify as decent, but it's a good start. http://piumarta.com/software/maru/ http://piumarta.com/software
by corysama 14y ago
As far as optimizing compiler... Maru might not yet qualify as decent, but it's a good start.
http://piumarta.com/software/maru/ http://piumarta.com/software/maru/
"The whole thing is 1750 lines of code (about twice what it should be) and includes a garbage collector and user-level implementations of user-defined types and structures, single-dispatch object-oriented "messaging", and generic "multimethods" (all of which are needed by the compiler). The compiled binary code runs at about 30% the speed of aggressively-optimised C."
- kragen 14y agoMaru (a Lisp) looks awesome! However, unoptimized C runs at about 25% the speed of aggressively-optimized C. The current version of Maru seems to be about 9000 lines of code (almost half the entire complexity budget for STEPS!) I think this reinforces army's original point, "Sure, you can define a lisp interpreter in very few lines of code. But to build a decent standard library and optimizing compiler/JIT, that is where the LOCs rack up."