3 ms·
(In Guile Scheme). Also, probably other languages. Very cool to read about these kinds of compiler optimizations. The "scheme class" I've taken was more about
by kough 11y ago
(In Guile Scheme). Also, probably other languages.
Very cool to read about these kinds of compiler optimizations. The "scheme class" I've taken was more about programming techniques that scheme encourages (tail recursion, continuation passing) than specific details about the language itself. Im going to have to go read more about the partial evaluation the Guile compiler is performing, I'm curious what heuristics it uses for the definition of "evaluateable".
- dang 11y agoThis goes into it a bit: https://wingolog.org/archives/2011/10/11/partial-evaluation-in-guile https://wingolog.org/archives/2011/10/11/partial-evaluation-.... It's linked from the OP.
- kough 11y agoAh great pointer. Interesting digression in there about limits of applying these techniques to Javascript - in short, isn't done by current implementations of the language (not sure which engines the author has looked at) but nothing about the spec forbids it with regards to strict-mode code. (Does anyone write non-strict JS these days? Why?)