This PR adds the first bit of Rust (compiled to wasm) to Glimmer. All tests pass in Chrome and Firefox, investigating Edge and Safari.
https://github.com/glimmerjs/glimmer-vm/pull/752 …
It uses https://github.com/glimmerjs/broccoli-rust2wasm … -- which can be used in any Broccoli/EmberCLI project! #itshappening
-
-
Replying to @wycats
If the body of every function has to be unsafe, is it really an improvement? I want to see us get there but it still seems immature for real use to me
1 reply 0 retweets 6 likes -
Replying to @sgrif
1. wasm is safe, so there is no such thing an unsafe-rust-in-wasm 2. the first time anyone writes production FFI, it involves "unsafe" code. This is true of virtually all production FFI systems. 3. All tests pass, integration included. It's for real.
2 replies 0 retweets 14 likes
Additionally, this is particularly low-level code that tries to avoid using the allocator. But most uses are fine with an allocator, which adds ~4k gzipped to wasm code.
6:46 PM - 1 Dec 2017
0 replies
0 retweets
7 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.