3 ms·
The title "Javascript to Rust and Back Again" had me believing that this would be a tale of how Rust was abandoned in favor of Javascript! I'm so glad to see we
by piercebot 9y ago
The title "Javascript to Rust and Back Again" had me believing that this would be a tale of how Rust was abandoned in favor of Javascript! I'm so glad to see we're actually talking about wasm interop
- kibwen 9y agoAt our local Rust meetup we have someone who's gotten WASM running on a microcontroller, so maybe that's not entirely unrealisitic. :P
- jamesmunns 9y agoWait, who was that?
- muthdra 9y agoMaybe it was this guy: https://github.com/pcein/embedded-rust-workshop https://github.com/pcein/embedded-rust-workshop
- vardump 9y agoThis is somewhat related, although embedded here means embedding interpreted WASM into a CLI application. Similar method might be doable on an MCU. https://fosdem.org/2018/schedule/event/rust_embedding_wasm/ https://fosdem.org/2018/schedule/event/rust_embedding_wasm/ Then there's "WebAssembly interpreter in C": https://github.com/kanaka/wac https://github.com/kanaka/wac Looks like it might be good enough for implementing WASM "scripting" support in smallish environments.
- steveklabnik 9y agohttps://crates.io/crates/parity-wasm https://crates.io/crates/parity-wasm is an interpreter in Rust; there's some really interesting stuff happening with it in various forms. One of the most... extreme is https://www.reddit.com/r/rust/comments/88sxah/nebulet_can_now_call_external_functions_from_wasm/ https://www.reddit.com/r/rust/comments/88sxah/nebulet_can_no... (There are some more production-aimed things as well.) I think this idea has a lot of merit, overall, exactly as you say: kind of like a Lua.