Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Batteries Included 1.0.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-01-22 (23:13)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] Batteries Included 1.0.0
On 01/22/2010 03:40 AM, Tiphaine Turpin wrote:
> Thank you for your work on batteries. Here are a few comments that I
> have, having "migrated" my source code to this new version.
I appreciate your taking the time to give feedback.
> First, I appreciate the reduction of dependencies. This makes it much
> more reasonable to share code using batteries.
Thank you.
> On the negative side, my greatest concern is about outdated
> documentation : I found it very difficult to know what had changed, and
> how to adapt my code. These changes range from the deletion of some
> features
I'm glad you were able to wade through the new codebase and adapt.
> (batteries/ocaml* tools,, "open in" syntax
> extension, implicit "open Batteries") to minor API changes
I'm not convinced that the batteries/ocaml* tools were useful - can 
people weigh in on this?

Ocamlbuild should have a global directory for packages to install their 
own tag extensions, allowing most users to omit files 
from their directory.

"Open in" should be replaced soon in ocaml proper, implicit "open 
batteries" seems a bad idea IMHO.
> (naming of
> Standard, Data, Shell modules,
Intentional - flattened structure
> no more Different_list_size exception,
Intentional - too many exceptions.
> no more Queue.enum...).
Should be fixed now, a point release should come out within the week.
> Also, there seems to be a packaging bug which
> requires using -thread in the ocamlfind command.
Needs fixing.  Added to issues tracker.
> So, I spent a significant time replacing my old 1-line ocamlbuild
> command by a real Makefile (also because of a strange and probably
> unrelated linking bug which I still don't fully understand). I believe
> that an updated compiling howto is really needed, as well as a list of
> the main deleted features with respect to the last release, allowing
> users to estimate how much change their code will need.
I still use ocamlbuild with the old to compile my projects.

<*>: pkg_batteries, thread

is the main line in my _tags file I need.

Would it help to use a wiki to keep track of these things?  All my code 
is already adapted to the new system, so I don't find regressions 
anymore to record.
> Other than that, I have not found any regression or other problems in
> this new release of the library, and I'm looking forward to see its
> further development.
> Tiphaine
I'm happy to push this forward, and there's a lot of good to add.  
Patches welcome.