You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the same code could be rewritten using Elixir.
Performance is good enough for this example, using several threads (and cores) on the browser. The main slowness in this case is related to DOM manipulation and a better implementation should use HTML5 Canvas for rendering :-)
Interoperation is a different story. Code running in the browser has limited network capabilities (cannot do arbitrary TCP) and AtomVM currently doesn't support disterl. So an Erlang node running in the browser is unlikely. Still, we could use Emscripten fetch API and maybe have the code in the browser interact with an Erlang or Elixir web server. Bindings for FetchAPI are not available but would be very easy to add.
At this point it is just a curiosity. I thought it would be an interesting use case to be able to write Elixir full stack with normal message passing between processes over the network.
Hi, I saw the lightning talk and that led me here.
I was curious what the feasibility of running Elixir GenServers in the browser is using webassembly.
What is the performance like? How large is the VM payload? Is this compatible with OTP meaning it could interoperate with the BEAM?
The text was updated successfully, but these errors were encountered: