GeezerVison is showing github.com — Elixir + Wasm · Issue #454 · elixirscript/elixirscript
DescriptionHey @bryanjos! I've been interested in your work here. What are your thoughts on WebAssembly? I began elixir-wasm to start this, and I've thought about using ElixirScript for creating JavaScript host bindings. I have some thoughts to share:
-
WebAssembly compilers typically create JavaScript "host bindings", because the user would have to write their own to execute the WebAssembly program meaningfully. For example, see Emscripten's preamble.js and Rust's wasm-bindgen. This means the JS code generation is still useful for WebAssembly. Its also useful for an asm.js fallback.
-
Standalone WebAssembly (without host bindings) is still important for environments that aren't JavaScript. People asked me about Elixir WASM with distributed platforms more than regular web apps (for example ewasm).
-
I think an option for HTML output would be good to have 0 extra steps for running the code (whether its WebAssembly or JavaScript)
Reacted by niulai6, Mikael Sand, Carina, Damien Bezborodov, pannous and Lars Gyrup Brink Nielsen Activitybryanjos commented on Aug 12, 2018 Hey @jamen, I can agree with mostly all of what you have said. I've peeked at your project a couple of times this year. I think one of the bigger issues is the lack of garbage collection in wasm currently. Any plans around that?
I'm down to help in any way I can towards the goal. jamen commented on Aug 13, 2018 WebAssembly has a garbage collection proposal, but in the meantime it would need its own garbage collection. I dont know what the odds and ends of the WebAssembly output will be yet, but for now I was seeing if its okay to start that here. I'll return with more technical discussion and pull requests. This might take a while for me to wrap my head around. Reacted by Bryan Joseph and niulai6 fazibear commented on Dec 31, 2018 Reacted by Lars Gyrup Brink Nielsen bryanjos commented on Dec 31, 2018 Definitely something to do some research on lahwran commented on Jul 5, 2019 Have any of yall learned anything new about this project since then? jamen commented on Jul 6, 2019 @lahwran I haven't been able to put much time into this. I played with ElixirScript's code a bit, but nothing worth showing yet. My focus has shifted away from WebAssembly lately, but I'm still interested in this, and any help is appreciated. 😄 lahwran commented on Jul 6, 2019 Oh man! I misunderstood from the readme at https://github.com/jamen/elixir-wasm that this whole github project was under initial development with this issue tracking it. I didn't realize that this would be a v2! My bad. I'd still love to have a webassembly upgrade, but knowing that it already compiles to JS clarifies a few things.
I'm new to elixir, but now that I've figured out what's going on, I think I actually don't need wasm support since the performance sensitive code will be in rust, which separately can compile to wasm. It'd definitely be cool to see elixir produce nice fast wasm code though :D foucist commented on Sep 18, 2019 Reacted by ionas Reacted by ionas bryanjos commented on Sep 30, 2019 Since Lumen exists now, I think this can be closed
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|