elixirscript / elixirscript

Converts Elixir to JavaScript
https://elixirscript.github.io/
MIT License
1.56k stars 67 forks source link

Term Serialization between Elixir and JavaScript #373

Open bryanjos opened 7 years ago

bryanjos commented 7 years ago

I think this can be accomplished by implementing

These are listed in #306 but I think they are big enough to have their own issue

Documentation on the Erlang Term Format is here

I have seen libraries in npm that do encoding and decoding, but ElixirScript needs implementations that resolve to the classes it has for Tuples, PIDs, Bitstrings, etc

OvermindDL1 commented 7 years ago

Adding map support would not be hard. The Erlang Term Format is very well documented and easy to parse.

OvermindDL1 commented 7 years ago

Could just use the ETF straight.

bryanjos commented 7 years ago

I agree ETF is probably best. Is this the documentation? http://erlang.org/doc/apps/erts/erl_ext_dist.html

OvermindDL1 commented 7 years ago

That is it precisely. :-)

There are a couple javascript libraries around that parse it too of various completion.