4 ms·
Could WebAssembly, at least when fully realized, be used for this kind of "custom data structure" optimization?
by CharlesW 9y ago
Could WebAssembly, at least when fully realized, be used for this kind of "custom data structure" optimization?
- CyberDildonics 9y agoYes, but even faster would be actual native instructions run directly by your CPU.
- bicubic 9y agoSo... webassembly?
- akmittal 9y agoWebassembly run on VM for portability.
- Frizi 9y agoWhich in turn JIT compiles the code down to your specific hardware, possibly doing some extra optimizations along the way as it cares only about a single processor at a time. I do think languages like Rust are really superior to what we have in JS land, but the VMs there are truly a marvel of modern engineering.
- CyberDildonics 9y agoYikes, do you not realize that there is a difference between webassembly and actual native instructions?
- maxbrunsfeld 9y agoWe are already able to run native code in Atom via node's native extensions, so we have no reason to wait for WebAssembly. The only benefit of WebAssembly would be if we wanted to port Atom to work in a regular web browser. We can even already do that without WebAssembly by compiling the superstring library to JS with emscripten. This works today and benchmarks show that it's already quite fast, but I think WebAssembly will make it even more efficient.