News for hackers. Stuff that matters.
Re:A lambda is not necessarily a closure by kough on Monday February 08, 2016 @11:42PM (#11063119)
(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".

Re:A lambda is not necessarily a closure by dang on Monday February 08, 2016 @11:45PM (#11063138)
This goes into it a bit: https://wingolog.org/archives/2011/10/11/partial-evaluation-.... It's linked from the OP.
Re:A lambda is not necessarily a closure by kough on Monday February 08, 2016 @11:59PM (#11063202)
Ah 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?)