|
|
|
|
|
by gordonguthrie
4537 days ago
|
|
If you fancy developing your own transpile-to-js language I have written up the actual process in some detail:
http://luvv.ie/toolchain.html Erlang (via Erlang Core) is actually quite a sweet example. Erlang (which is small) is transformed into Erlang Core (a language targetted at machines not humans) which has a very small set of primitives (21 in all). That Language is turned into a compact AST which is then transpiled to a Javascript AST and transformed back up to Javascript using standard JS syntax tools. I have also written up the thinking about how to make an OTP-ish Erlang dialect in the browser work as part of Erlang/OTP's 'span of control' in the server-side cluster:
http://luvv.ie/mission.html |
|
Does it run on BeamJS? :D