4 ms·
I wish the WebAssembly page sizes wouldn't be fixed at 64kb, so even microcontrollers with very limited memory could use it
by 7373737373 6y ago
I wish the WebAssembly page sizes wouldn't be fixed at 64kb, so even microcontrollers with very limited memory could use it
- kbumsik 6y agoI agree. 64kb is so small for modern PCs and browsers but it's still so big for microcontrollers that most of them can't afford it and is wasteful cosidering their application size.
- vshymanskyy 6y agoAuthor here. In Wasm3, we have implemented some workarounds for that. We can easily run on Nordic nRF51 with just 16 KB of RAM!
- MaxBarraclough 6y agoIs WebAssembly a good fit for microcontrollers? Does it stack up well against Forth or its derivatives like [0]? [0] https://www.complang.tuwien.ac.at/anton/euroforth/ef13/papers/ertl-paf.pdf https://www.complang.tuwien.ac.at/anton/euroforth/ef13/paper...
- vshymanskyy 6y agoThe question is too generic. Wasm3 has some quirks when used directly on micro-controllers, and this is exactly why we're doing Wasm3 - to find if/how we can use it. For example, Linux uses eBPF for similar purposes. PAF could be used, as far as I can see. However WebAssembly will have some benefits: well-developed infrastracture, toolchains, language and tool support. Ability to run in browsers, etc.