pdgonzalez872
- If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing list somewhere, but I didn’t find it.
I think I’m not alone when thinking about the awesome possibility of using Elixir for both backend and frontend work. I honestly think that this would be a massive win for Elixir. It would be awesome!! With that said, here are a couple of questions:
-
What are some of the tradeoffs that we’d make when using Elixir for both (front + back)end development? I don’t know much about WASM to have an opinion/idea of what to expect here. But, I know a lot of folks here do.
-
Is there anything holding the Elixir + WASM effort back? Is it just open source + time to get it working? Is there some technical challenge that makes this a pain? If there are, could you please list them?
-
Is WASM on the roadmap for Elixir at all?
There seems to be a library that started trying to accomplish this:
https://github.com/jamen/elixir-wasm
Thanks! Excited to hear more about this!
Trending in Discussions
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 24 to 15- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
quda
I’m aware of
Firefly. It’s just a work in progress. Not production ready yet.Nicd
Seems that Lumen rebranded into Firefly and offers a WASM runtime (don’t know how complete it is): GitHub - GetFirefly/firefly: An alternative BEAM implementation, designed for WebAssembly · GitHub
quda
So we are in late 2022… what’s the status of Elixir/Webassembly? Is there something consistent, mature, standardized to enable coding Elixir in the browser? I mean without going through Rust, Go etc.
tessi
GitHub - tessi/wasmex: Execute WebAssembly from Elixir · GitHub can execute WASM from elixir. It’s a NIF wrapper around the wasmer.io engine. I know of at least two projects already using it in production and would be interested in your thoughts
pdgonzalez872
https://github.com/lumen/lumen
olafura
It is sort of possible. AtomVM doesn’t have all the features of Erlang/Elixir
I’ve just been too busy to persue this further:
https://github.com/bettio/AtomVM/issues/30
alexdovzhanyn
As far as I can tell that allows reading of wasm binaries into elixir, but doesn’t do any execution. WaspVM both reads and executes webassembly
arso96
GitHub - jamen/elixir-wasm: Encoding the WASM binary format. · GitHub it’s already there, it doesn’t translate Elixir to WASM but enables the possibility !
regards
alexdovzhanyn
From the other perspective (i.e. running Wasm in Elixir), we’ve been working on a virtual machine called WaspVM for the past few weeks at Elixium Network, if anyone is interested in that.
JakeBecker
I made a brief attempt at it but I got inundated with compile errors that look difficult to tackle without solid C experience. For anyone who wants to try, here’s the basics of how I got started. You’ll need emsdk installed and activated first:
At this point, be prepared for a mountain of compiler errors. The exact errors differ when running it on Mac vs Ubuntu. Many of them occur in parts of the code that can be disabled with preprocessor defines, so it’s possible that the right set of defines could get it to work.
There’s a section of the Erlang docs that describes cross-compilation, but I didn’t find anything I knew how to make use of. To anyone at Dockyard or elsewhere giving this a whirl, good luck, and please let us know how it’s going!