logoalt Hacker News

vbezhenarlast Friday at 8:13 AM4 repliesview on HN

You can use javascript as a single cross platform compile target. What's the difference?


Replies

lxgrlast Friday at 8:45 AM

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.

show 1 reply
yencabulatorlast Friday at 10:35 PM

WASM, and asm.js before it, roughly exist because Javascript is such a bad compile target.

hnb2137last Friday at 8:20 AM

WASM allows you to run some parts of the application a bit faster. ;)

merlindrulast Friday at 8:19 AM

WASM works with any language and can be much faster than javascript

show 1 reply