Erlang's External Term Format BIFs seem quite adequate as a way to encode Elixir's built-in data types as binaries. And, given that they are low-level routines, we are unlikely to be able to improve much (if at all) on their speed:

In Erlang, the BIF term_to_binary/1,2 is used to convert a term into the external format. To convert binary data encoding a term, the BIF binary_to_term/1 is used.

The data types which we plan to import from Clojure (Array Map, Seq, Sorted Map, Vector) are all composites, so no low-level encoding will be needed for them.

To be continued...

This wiki page is maintained by Rich Morin, an independent consultant specializing in software design, development, and documentation. Please feel free to email comments, inquiries, suggestions, etc!

Topic revision: r2 - 15 Aug 2015, RichMorin
This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email