I made a separate processes repo for the js processes library. It does a pretty good job of mimicking erlang processes. This will be included in the elixirscript repo.
https://github.com/bryanjos/processes
This also has an implementation of a GenServer as well.
It works well in JavaScript, but need to figure out a way of making it work for elixirscript. The biggest issue being how should functions be translated now? Also, what does it mean for interoperability with JavaScript (#170)? For example, we could turn all functions into generator functions, but how would that work when passing in a function from elixirscript as a callback to a JavaScript function?
I made a separate processes repo for the js processes library. It does a pretty good job of mimicking erlang processes. This will be included in the elixirscript repo.
https://github.com/bryanjos/processes
This also has an implementation of a GenServer as well.
It works well in JavaScript, but need to figure out a way of making it work for elixirscript. The biggest issue being how should functions be translated now? Also, what does it mean for interoperability with JavaScript (#170)? For example, we could turn all functions into generator functions, but how would that work when passing in a function from elixirscript as a callback to a JavaScript function?