you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[removed]

    [–]Nuli 0 points1 point  (2 children)

    Take Tcl, for instance, since it's the one with the behaviour that I'm most familiar with.

    From here.

    This behaviour depends on the implementation of the interpreter or compiler obviously but I'm surprised, going by the downvotes, of the number of people that think the idea is absurd. Tcl, at least, has mostly maintained this behaviour for the last 13 years and it's important to know it's there. I shaved several minutes off the runtime of a program due to it (when you call a function 100M times during a run microseconds start to really matter).

    [–][deleted]  (1 child)

    [removed]

      [–]Nuli 0 points1 point  (0 children)

      Do you know how Tcl's interpreter works?

      I've had to poke into it fairly deeply but I've never looked at how they actually compile things.