4 ms·
> This has given the impression of slowness and difficulty to grok with fexprs, as dynamic eval foregoes certain optimisations, and scoping the fexpr bindings i
by bsder 4y ago
> This has given the impression of slowness and difficulty to grok with fexprs, as dynamic eval foregoes certain optimisations, and scoping the fexpr bindings is hard (variable capture is a problem).
And yet, Javascript, possibly the most widespread language on the planet, does exactly this and has been optimized for speed to hell and back several times.
The problem wasn't unsolvable. The problem was that there wasn't enough money behind solving it.
- lispm 4y agoJavaScript has Fexprs?
- bsder 4y agoJavaScript has highly dynamic eval with lots of scoping issues very similar to the issues that everybody thought were dealbreakers with fexprs. And, yet, somehow a lot of very clever people made Javascript one of the fastest languages around.
- lispm 4y agoand that "fast" JavaScript code is using eval? OTOH, typically Lisp code uses zillions of macros, incl. most of control flow constructs.