6 ms·
I was surprised to see the author describe Rust-in-the-browser as "low level". I always took that term to mean "closer to the metal", and not statically typed
by bjt 9y ago
I was surprised to see the author describe Rust-in-the-browser as "low level". I always took that term to mean "closer to the metal", and not statically typed with manual memory management. Rust in this context doesn't seem any more low level than Javascript, to me.
- lmkg 9y agoWeb Assembly (and also asm.js) are "closer to the metal" even though they run in the browser. The execution model is meant to map pretty closely to assembly, not to JavaScript. The browser is supposed to be doing static verification for security purposes, but not much in the way of optimization.
- sp332 9y agoWASM is way lower-level than JS. It doesn't have functions as objects, or really any object system. And the point is for developers to write higher-level web languages that compile down to WASM, so there's no real pressure to add layers of abstraction down at this level. https://medium.com/javascript-scene/what-is-webassembly-the-dawn-of-a-new-era-61256ec5a8f6 https://medium.com/javascript-scene/what-is-webassembly-the-... It seems like you're hung up on the "browser" part, but it's just providing a compiler and a sandbox.
- jononor 9y agoIt's closer to the machine, in this case a virtual machine.