Source

ocaml-bert / README

Full commit
* types matter

erlang terms - support in ocaml
  integer  - ok in ocaml
  float    - ok in ocaml
  atom     - static, or polymorphic variant?
  list     - list with polymorphic variant ... 
  tuple    - tuple.
  pid      - not supported or libei supported?!
  ref      - not supported or translated to some binary
  fun      - not supported 
  binary   - just an string, maybe
  port     - not supported


* interface
  ocaml       erlang
  integer <-> integer
  bignum  <-> integer
  float   <-> flost
  string  <-> atom

see http://www.erlang.org/doc/apps/erts/erl_ext_dist.html
for erlang binary term format.

overall term format:
1	1	N
131	Tag	Data

compressed term format:
1	1	4	N
131	80	UncompressedSize	Zlib-compressedData