Lumen is very cool but Gleam compiling to wasm directly should be able to out-perform Lumen compiled code as it can break Erlang compatibility in that environment and perform much greater optimisations using the type information. I’m interested in making a wasm backend, but we may never get there as the current backends are the focus.
oh my gosh, the new errors are beautiful! my favorite:
Thank you, Greg did a fantastic job there!
Sweet! Any plans for a non-Erlang backend?
I love Erlang, would like Gleam to run in more places. Wasm?
Thanks!
I would like to target wasm in future but no work has been done here. We are currently working on a JavaScript backend.
This has more to do with alternative backends for the BEAM bytecode rather than Gleam itself.
With regards to WASM, the best bet could be Lumen
Lumen is very cool but Gleam compiling to wasm directly should be able to out-perform Lumen compiled code as it can break Erlang compatibility in that environment and perform much greater optimisations using the type information. I’m interested in making a wasm backend, but we may never get there as the current backends are the focus.