3 ms·
Why isn't anyone doing languages that compile to a trampolined form of JS? It would kill two birds with one stone: you get to write recursive code without wasti
by anaphor 13y ago
Why isn't anyone doing languages that compile to a trampolined form of JS? It would kill two birds with one stone: you get to write recursive code without wasting memory, and you can easily implement a lightweight thread scheduler. It seems like people are just picking the low hanging fruit, i.e. "JS syntax is ugly, let's implement a desugarer". I haven't seen many people try to change the semantics of JS much. maybe Whalesong or something, but nobody is using that.
- kevingadd 13y agoOne reason is that performance would be miserable. Most current JS runtimes aren't very good at optimizing that kind of code, and it actually uses quite a bit of extra memory.