Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: If i had a hammer...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <mottl@m...>
Subject: Re: If i had a hammer...
> - Define a standard for documentation (very important for free software
>   development) -- we can simply use an existing one such as 'info'
>   or 'perldoc', or simply define a directory structure for html-pages

Good documentation is certainly a necessity!

> - Define a standard how to compile and install projects such that they
>   can be used together
> 
> For the latter, I think a meta-makefile mechanism would be appropriate.
> As Ocaml links always statically, there should be a tool
> 
> - that has as input a descriptive request what modules should be linked in
> 
> - that outputs a perfect Makefile that knows the linking order and automatically
>   calls ocamlc/ocamlopt/ocamlmktop -- whatever meets the given requests best

Although certainly not perfect (improvement suggestions welcome),
you might want to download my Makefiles which automate a great part
of the building process: it handles ocamllex- and ocamlyacc-files,
threads-library, automatic dependency calculation, building of byte code
and native code, as executable or as library.

Link: http://miss.wu-wien.ac.at/~mottl/ocaml_sources/intro.html

The distribution comes with an example.

[snip]
> read manuals very carefully to get the modules working. It should not be
> necessary to study and configure makefiles to do a simple thing like a
> software installation (people often think that installation is a simple
> process and a more or less an unproductive task).

What I really like about the distribution of OCAML and its tools: they
compile out-of-the-box (at least on all the machines I've tested).
Whoever has tried to compile or correctly install e.g. Mercury or (my
god!!) GHC, is certainly able to honour this...

Best regards,
Markus

-- 
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl