Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


> 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?


“Pretty clear” is good, “guaranteed by language specifications” is better.

Why reverse-engineer each JS implementation if you can just target a non-GC runtime instead?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: