Previous week Up Next week


Here is the latest Caml Weekly News, for the week of November 28 to December 05, 2006.

  1. Cameleon 1.9.17
  2. Inotify binding
  3. json-wheel 1.0.0
  4. reading audio

Cameleon 1.9.17


Maxence Guesdon announced:
I'm pleased to announce the release 1.9.17 of Cameleon. 

*** What is Cameleon ? 

Cameleon is a set of libraries and tools aiming to become an integrated 
development environment for OCaml. The libraries included are used by the 
tools but can be used for other projects. 
The interface is based on Lablgtk2. A description of each tool and library 
is available on the site. 

*** What's new ? 

A source code editor, called Chamo, was added. It can be fully configured 
and extended using OCaml code evaluated at run time (same as lisp for 
The FAQ about Chamo contains useful information: 

*** Where is it available ? 

From the Cameleon web site:

Inotify binding


Continuing the thread from last week, Aleksey Nogin said:
Vincent Hanquez wrote: 
> Richard Jones wrote: 
> > Vincent Hanquez wrote: 
> > > I've made a small bindings for inotify, aka linux file system notification 
> > > new subsystem. 
> > I think OMake includes bindings for gamin. 
> it seems to be talking FAM. 

Actually, in our LibMojave (which is what OMake uses) we have bindings for: 
 - FAM 
 - Gamin (using either the generic FAM interface, or taking advantage of 
Gamin extensions) 
 - kqueue (FreeBSD, OS X) 
 - inotify (Linux) 
 - ??? (Win32) - not sure what exactly is used there 
In all five cases, we provide the _same_ fam-style interface on the 
OCaml side. We also have OMake autoconf-style scripts that can detect 
which of the fours notification mechanisms is present on a specific 
machine and use the appropriate one. 

> Sounds more like a bad thing than a good thing to me. 
> Direct inotify binding are much smaller/simpler anyway. 

That might be true, but only if you happen to be on a machine that 
provides inotify. We do utilize inotify if it is present, but we also 
have an option of using one of the other four when there is no inotify.

json-wheel 1.0.0


Martin Jambon announced:
json-wheel is an OCaml implementation of the JSON data interchange format, 
which can be considered as a lightweight alternative to XML. 

Authors: Mika Illouz, Martin Jambon 
License: BSD 
GODI package: godi-json-wheel 

Understanding the origin of the name of this library is left as an 
exercise for the reader.

reading audio


Vu Ngoc San asked and Eric Cooper answered:
> is there a library available for reading wav files in ocaml and, say,
> convert it to a bigarray or something equivalent ?

I wrote one a few years ago as part of a little application to display
WAV files graphically:

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