Source

ocaml-bert /

Filename Size Date modified Message
102 B
47 B
13.7 KB
26.8 KB
3.2 KB
1.6 KB
1.5 KB
10.6 KB
302 B
1.6 KB
3.9 KB
104.2 KB
1.2 KB
986 B
168 B
1.0 KB
* OCaml-bert

version 0.0.2

see http://www.bert-rpc.org for BERT.
see http://caml.inria.fr/ocaml/ for OCaml

* Licensed under dual-license: LGPL with linking exception, or EPL

* Version

* Installation
 TBF

* Prequieistes

erlang, ocaml, omake

* Instruction

$ omake
$ escript termwriter.erl   .. translates termwriter.eterm -> termwriter.bert
$ ./termreader termwriter.bert
and compare the result with termwriter.eterm!!

* Roadmap (TODO)
  stdin/stdout program demo
  TCP server demo

* Serialization/Deserialization support

erlang terms - support in ocaml
  integer  o- ok in ocaml
  float    o- ok in ocaml
  atom     o- just a string in ocaml
  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.

* Files
 bert.ml        - the very BERT implementation
 tests_bert.ml  - basic test code
 termreader.ml  - simple test code
 tcp_server.ml  - TCP server test code (in progress)
 termwriter.erl - erlang code that generates BERT-formatted file
 termwriter.eterm - term information source file