2. ocaml-bert


ocaml-bert / README

* types matter

erlang terms - support in ocaml
  integer  o- ok in ocaml
  float    o- ok in ocaml
  atom     x- static, or polymorphic variant?
  list     o- list with polymorphic variant ... maybe supported.
  tuple    o- tuple. maybe supported. difficult problem of types.
  pid      x- not supported or libei supported?!
  ref      x- not supported or translated to some binary
  fun      x- not supported 
  binary   o- just an string, maybe
  port     x- 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