Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by piercebot on Wednesday April 04, 2018 @12:29PM
(#16756292)
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
[ Parent
| on HN ]
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by kibwen on Wednesday April 04, 2018 @01:14PM
(#16756794)
At our local Rust meetup we have someone who's gotten WASM running on a microcontroller, so maybe that's not entirely unrealisitic. :P
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by jamesmunns on Wednesday April 04, 2018 @02:04PM
(#16757294)
Wait, who was that?
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by vardump on Wednesday April 04, 2018 @04:59PM
(#16759011)
This 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/
Then there's "WebAssembly interpreter in C":
Looks like it might be good enough for implementing WASM "scripting" support in smallish environments.
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by steveklabnik on Wednesday April 04, 2018 @05:04PM
(#16759067)
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_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.
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale
by muthdra on Wednesday April 04, 2018 @03:14PM
(#16757927)
Maybe it was this guy: https://github.com/pcein/embedded-rust-workshop