ocaml-bert /

Filename Size Date modified Message
90 B
3.1 KB
1.6 KB
819 B
7.7 KB
1.5 KB
1.2 KB
986 B
168 B
* 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

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