Hacker News new | past | comments | ask | show | jobs | submit login

Exception handling is necessary to efficiently support languages that need it without giving them direct control over the stack. I'd prefer if exception handling was provided with a more general abstraction though.

GC is necessary for the same reasons, to prevent each language from bringing it's own GC and to enable cross-language interop.

JIT is already implied by the very nature of Webassembly being an architecture independent stack machine, so every runtime has to already be a JIT compiler anyway (except interpreters). Exposing JITing to Wasm code is a natural progression and very valuable.

Not that the WASM spec work doesn't have problems (looking in as an outsider), but the existence of these features are not my complaints.




If you want to write in a high-level language in the browser, wouldn't it make more sense to compile to JavaScript?

It seems to me like the main value proposition in Web Assembly was to provide a target for languages like C, C++, and Rust.


Compiling to JS is a good option, with the caveat that it will never deliver consistent performance. JS engine vendors place less importance on optimizing for JS transpilers now that the future is WebAssembly.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: