logoalt Hacker News

lxgrlast Friday at 8:45 AM1 replyview on HN

Javascript comes with mandatory garbage collection. I suppose you could compile any language to an allocation-free semantic subset of Javascript, but it's probably going to be even less pretty than transpiling to Javascript already is.


Replies

creatalast Friday at 10:08 AM

> it's probably going to be even less pretty than transpiling to Javascript already is.

I don't see how it'd be much different to compiling to JavaScript otherwise. Isn't it usually pretty clear where allocations are happening and how to avoid them?

show 1 reply