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
[Caml-list] Hashtbl.keys
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-22 (18:20)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: [Caml-list] OCaml standard library improvement
On Fri, Feb 21, 2003 at 02:47:35PM +0100, Nicolas George wrote:
> (used as namespace units) and compilation units. Supose you have a large
> set of string functions, tu split, search for words, replace, and so on.

Well, my idea was not to collect a new library nor a big-scale one as
someone proposed.

Indeed I would not begin a new sourceforge project, I want simply to
collect _simple_ functions that are missing from the ocaml standard
library and that, I'm sure, every ocaml programmer have written at least
once in his life!
Just to clarify a bit more this point, these are some functions
prototype I've in my "OCAML-whishlist.txt" file (please don't start now
discussing on them, I report some of them only for passing you my idea):

  - val Hashtbl.keys: ('a, 'b) Hashtbl.t -> 'a list
  - val Hashtbl.values: ('a, 'b) Hashtbl.t -> 'b list
  - val String.explode: string -> char list
  - val String.implode: char list -> string
  - val non: ('a -> bool) -> ('a -> bool)
  - val Dbm.fold_left: ...
  - val Sys.copy: ...
  - val List.assoc_all: ...
  - ... and so on ...

The reason I don't want to start a sourceforge project (or a savannah
one, that should be better! :-) is that these functions shoulnd't be
separated from the ocaml distribution, they should be implemented, shown
to the ocaml team for review and integrated in the ocaml standard
distribution. That's all.

We all know that the OCaml team as a lot to do and doing this work could
probably help them in making OCaml standard library more complete.

Regarding license I suppose we should ask the ocaml team what they like
to embed this functions in the standard library, I suppose LGPL could be

Regarding the "dirty" work I suppose that the better we can do is to set
up a web page with some CGI on which ocaml programmer could post
prototype of functions they would like to see in standard library
next-generation and also implementation of functions they are proposing
or proposed by someone else.
 From this page members of the ocaml team could benefit as they like,
they can only see what ocaml programmers feel is missing in the stdlib
and don't care about implementation reimplementing them or take also

I volunteer to set up this kind of web page if we manage to reach an
agreement on this.


Stefano Zacchiroli  -  Undergraduate Student of CS @ Uni. Bologna, Italy
zack@{,,}  -
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: