4 ms·
I wonder how hard it would be to make JS compile to Erlang like Elixir. I think the big problem would be some kind of actor model in the browser with everything
by stuffihavemade 14y ago
I wonder how hard it would be to make JS compile to Erlang like Elixir. I think the big problem would be some kind of actor model in the browser with everything callback based. Other than that, they're both dynamically typed, functional (Erlang obviously more) languages.
- ebiester 14y agoIt's possible, but you can also end up with monstrosities like GWT in the end. The best bet is to implement some Actor-like layer like https://github.com/Gozala/actor https://github.com/Gozala/actor upon which the "ErlangScript" depends. Oh wait, JS compile to Erlang? Wouldn't it make sense to do it the other way around?
- stuffihavemade 14y agoI think it makes more sense to go JS -> Erlang, because the valuable thing about JS is the language itself (and trying to achieve code sharing), while the valuable thing about Erlang is the vm/concurrency model/OTP.