Previous week Up Next week


Here is the latest Caml Weekly News, for the week of 10 to 17 January, 2006.

  1. Pickling for OCaml?
  2. Marching Tetrahedra
  3. A bunch of ocaml programs

Pickling for OCaml?


Continuing the thread from last week, Jonathan Roewen announced:
Well, in the meantime, we've ported most of the pickling library from
SML.NET to work with O'Caml. Supports most of the basic types
(int,bool,char,string,list,array,unit,pairs->sextuples) and a few
combinators (alttag, wrap, lift,seq).

Fairly easy to define a pickler:

module BytePickle = Pickle.CorePickle(Pickle.ByteCodec)
open BytePickle

let pickler = pair (string list,int)

let data = pickle pickler (["hello";"world"],-1)

let value = unpickle pickler (List.rev data)

Files at &

Marching Tetrahedra


Chris Campbell announced:
I took some of my code for implicit surface drawing from a while back,
tidied it up and decided to release it.  It's based on J. Blooms

I'm working on organising my site, so it's only described in following
blog post.  Hopefully it'll have it's own page soon.

Direct download

A bunch of ocaml programs


Philippe Narbel announced:
just to announce that i made available large samples
of the programs that appear in my text about ocaml:

feel free to experiment and to make comments.

Using folding to read the cwn in vim 6+

Here is a quick trick to help you read this CWN if you are viewing it using vim (version 6 or greater).

:set foldmethod=expr
:set foldexpr=getline(v:lnum)=~'^=\\{78}$'?'<1':1

If you know of a better way, please let me know.

Old cwn

If you happen to miss a CWN, you can send me a message and I'll mail it to you, or go take a look at the archive or the RSS feed of the archives.

If you also wish to receive it every week by mail, you may subscribe online.

Alan Schmitt