edit: funny how I can discuss extremely controversial political topics here and never have any of my comments killed, but having a negative opinion about wasm and JS frameworks is just a step too far lol.
edit: funny how I can discuss extremely controversial political topics here and never have any of my comments killed, but having a negative opinion about wasm and JS frameworks is just a step too far lol.
- Memory management without GC - Unboxed data structures - SIMD - Shared-memory multi-threading - Precompiled snapshots (does not need to be recompiled on page reload)
JS has atomics and shared memory arrays which also basically bypass garbage collection [1]
JS had working simd.js implementations in both Firefox and Chrome until they were pulled in favor of WASM
[0] https://v8.dev/blog/code-caching-for-devs
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[2] https://github.com/tc39/ecmascript_simd
https://blog.mozilla.org/javascript/2015/03/10/state-of-simd...
The `123|0` type hint is also recognized and implemented by most browsers too. It forces a 31-bit integer on most platforms (and can offer a significant performance boosts if you're running a tight algorithm).
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
I'm not surprised. You probably happen to agree with the majority of HN on these topics so the upvotes outweigh the downvotes.