Re:Lumen – Elixir and Erlang in the Browser
by bitwalker on Friday January 24, 2020 @07:20PM
(#22143615)
Sure, I can't imagine any particular reason why that wouldn't work. That said, we don't have distribution implemented yet, since we are focused on a single node in the browser initially; so it depends on which comes first - SharedArrayBuffer being stabilized again in the browsers so we can enable multiple schedulers, or getting distribution implemented thoroughly enough to support the approach you mentioned as a workaround.
1. run multiple nodes on one machine (i.e. manually create Web Workers each with their own copy of Lumen); and then
2. write an erl_dist alternative-carrier protocol driver that uses worker.postMessage()?