Previous week Up Next week


Here is the latest Caml Weekly News, for the week of October 20 to 27, 2009.

  1. public access to the SVN repository for OCaml
  2. ocaml-gir: automated binding generator
  3. OCaml Meeting 2010 2nd call to answer the poll
  4. Other Caml News

public access to the SVN repository for OCaml


Xavier Leroy announced:
This is an announcement for those of you who track the development of
OCaml between releases.

The OCaml development team recently switched from CVS to Subversion
(SVN) as our version control system.  Public read-only access to our
new SVN repository is now available as described in the following

The old CVS repository on is still accessible but no
longer updated.  It will go away in a few weeks.

ocaml-gir: automated binding generator


Adrien Nader announced:
I'm pleased to announce a preview release of ocaml-gir. ocaml-gir is
an automated binding generator for glib-based libraries.

It works by parsing the output of gobject-introspection[0] which in
turn works by parsing header files. gobject-introspection doesn't work
on preprocessed sources and is able to take advantage of the
glib-style C macros to improve the library interface description.

It is currently in alpha/beta stage and is able to bind most of
WebKit-gtk and DBus-GLib and both are working here. Other libraries
are *partially* supported (i.e. gcc finds errors in the C code). The
description of the libraries is often broken because of
gobject-introspection itself (it strips out GError** paramaters...) or
incomplete because of a lack of annotations.

ocaml-gir is hosted on the ocamlcore forge[1] using git and its
sources are accessible through git-web[2]. A tarball is also

ocaml-gir ships with the .gir/.xml files generated by this tool and
modified to fix various errors, expand annotations or improve the
caml-side api (only once right now). Therefore, trying to use
gobject-introspection to generate the description again is not
There is README explaining quickly how to use ocaml-gir in the source folder.

Compared to camlidl, its main advantage is to work on .h files rather
than on .idl ones. My first motivation for ocaml-gir was to get
webkit-gtk. I knew its API was changing often and I didn't feel like
checking everything every few weeks.
Another difference is that ocaml-gir tries to follow lablgtk's API
style. For example, it uses polymorphic variants to bind C enums.
Moreover, I wasnt't sure how camlidl was going to handle structs named
like WebKitWebView which ocaml type should be web_view.
However ocaml-gir probably has a ton of bugs and isn't complete yet
(the api exposed will change a bit and every "feature" isn't bound).

Also, one has to keep in mind automated binding generation from C
isn't magic. An int* could be an int array or an out-parameter and
int** or int*** would be even more annoying to deal with. It requires
source-code annotations.
A language with an actual array type and richer types, with functions
able to easily return several values and with exceptions may not need


OCaml Meeting 2010 2nd call to answer the poll


Sylvain Le Gall announced:
OCaml Meeting 2010 is the third meeting of OCaml enthusiasts in France.

This year OCaml Meeting in France is back in Paris. We choose to
organize it on 16th or 17th April to avoid any conflicts with JFLA and
other events (including French holiday).

We open a poll to know what attendants want:

You need to login to answer the poll. It will remain open for a week
(ending Wednesday 28th October). It will help us to choose the best date
for the the meeting.

Answering the poll will help organizers to choose the right option that
can meet everyone needs. This is the best way to make OCaml Meeting 2010
a great events.

Other Caml News

From the ocamlcore planet blog:
Thanks to Alp Mestan, we now include in the Caml Weekly News the links to the
recent posts from the ocamlcore planet blog at

T-Mobile Opens Up The US Cell Phone Market:

FP-Syd #20.:

OCaml Users Meeting, April 2010:

OCaml Meeting 2010 poll:

Stranger in a strange land:

The Stupidity of Fat Elf (was OSX Universal Binaries).:

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