Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] CTAN/CPAN for Caml (COCAN ...?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] CTAN/CPAN for Caml (COCAN ...?)
On Wed, Jul 16, 2003 at 08:43:20AM +0200, BdB wrote:
> ?.02 here: there's a couple of stuff that a CPAN-like website could do
>   1) hosting libs
>   2) cross-referencing & automatic dependency generation
>   3) registry (the business of ensuring non-collision)

Another important point would be:

4) A standard packaging and build process.

For example, you can download any Perl package and type:

	perl Makefile.PL && make && sudo make install

You can use Perl's CPAN module to download, compile and install the
dependent packages with one command. It all works automatically
because all Perl packages follow a few fairly simple rules.

> As for the last point... well, one possible drawback of current O'CaML is
> its module namespace. My fear is that module names are soon enough going to
> look like JoesXMLParser to distinguish it from MikesXMLParser (betting on
> the success of the initiative here). Well, actually there can be modules
> within modules, so that's not exactly a flat module namespace. But if
> someone makes a module called Joe.XMLParser, it has got to be defined in
> joe.ml[i], which is in my opinion a pretty bad name to give to a file
> containing an XML parser. Maybe java-like module namespace partition is
> something worth considering for efficient community management?

I agree this is a problem, but a Java-like module namespace is about
the worst possible solution. Perl has many thousands of packages but
does not require it. Mostly this is because of an informal honour
system: no one names their package "CGI" unless it is absolutely the
best system for writing CGI scripts. Little-used or still-born
packages can also be kicked out of the archive.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
PTHRLIB is a library for writing small, efficient and fast servers in C.
HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners