News for hackers. Stuff that matters.
Re:The Impact of the Lambda Calculus (1997) [pdf] by dreamcompiler on Monday May 06, 2019 @12:20PM (#19840848)
In practice the inner function (the body of a lexical closure) is only compiled once. When a "new function is made" at runtime, a data structure for the new lexical environment is created together with a pointer to the already-compiled closure body. So the executable portion (the actual instructions of the closure) are only allocated once.

There are no comments on this comment yet.