Previous week Up Next week


Here is the latest Caml Weekly News, for the week of July 10 to 17, 2007.

  1. Camlp4s
  2. XmlRpc-Light - XML-RPC client for OCaml
  3. OcaIDE: a new Eclipse plug-in for O'Caml



Daniel de Rauglaudre announced:
I am happy to announce a new release of Camlp4s 4.02. 

Camlp4s is the classical Camlp4 compatible with all versions of OCaml 
from 3.08.1 to 3.11. 

Main page and download at: 

What is new: 

  Pretty print 
    * a new system of pretty print of ocaml programs:  
    * an original library module for pretty printing data and programs:  

    * a full documentation of streams parsers, including 3 new features:  
    * lexers: a short syntax for parsers of streams of type char:  
    * a documentation for purely functional streams and parsers:  

    * a documentation for the extensible functions:  
    * directive "pragma" allowing evaluations at parse time (experimental): 
Stefano Zacchiroli asked and Daniel de Rauglaudre answered:
> If you choose to rename camlp4s executables and libraries however, users 
> will be able to install both camlp4s and the official camlp4. Can you 
> please consider this option? 

Ok, I made a new release : 4.03. 

You can change the name of all commands and libraries by using the 
parameter "-name" of "configure" (default = camlp4). 

For example: 
     ./configure -name camlp5 
would name the commands, files and manual pages: camlp5, camlp5o, camlp5r, 
camlp5r.cma, camlp5.1 and so on, and the library would be installed in 
a subdirectory camlp5 of the ocaml library directory. 

Up to you to choose the name you prefer.
Stefano Zacchiroli then said and Daniel de Rauglaudre answered:
> Well, I think the -name argument is already a useful step. I just asked 
> for a suggested name to avoid a plethora of unknown different names. In 
> Debian, JFYI, I went for "camlp5" as it seems to me it's a name you like 
> and that it's welcome by the community. 

Ok, I made a release (4.04) of camlp5. Download at: 

No fundamental changes, except renamings, in all files.

XmlRpc-Light - XML-RPC client for OCaml


Dave Benjamin announced:
I'm working on an XML-RPC client library for OCaml called XmlRpc-Light. 
It's very small and simple, and it only depends on Xml-Light and 
Ocamlnet so it's easy to compile and install. It's still under early 
development, and currently is only a client, though the pieces are there 
to build a server as well. Any suggestions, contributions, or criticism 
are gladly accepted. 

Project page: 

Main module: 

Simple example: 
     let rpc = new XmlRpc.client "http://localhost:8000" in 
     let result = rpc#call "echo" [`String "hello!"] in 
     print_endline (XmlRpc.dump result) 

Complex example (wrapper for WordPress blog API):

PDF documentation:

The license is LGPL with the special exception for linking, same as 
Xml-Light. Thanks to Nicolas Cannasse for writing Xml-Light and for 
letting me use an adapted version of his Base64 codec from ExtLib. 
Thanks also to Gerd Stolpmann for the amazingly capable Ocamlnet 
library, of which I'm barely beginning to scratch the surface.

OcaIDE: a new Eclipse plug-in for O'Caml


Nicolas Bros announced:
I am happy to announce the release of OcaIDE: a new Eclipse plug-in for 
Please visit this site for more information, screenshots, and to install it:
Later on, Nicolas Bros announced:
Version 1.0.1 of OcaIDE is now available. For a list of changes, see 
the web site:

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