Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Fernando Alegre <fernando@cc.gatech.edu>
To: Kenneth Knowles <kknowles@berkeley.edu>
Cc: caml-list@pauillac.inria.fr
Subject: Re: OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library)
Date: Thu, 18 Mar 2004 17:32:43 -0500	[thread overview]
Message-ID: <20040318223243.GA26776@gaia.cc.gatech.edu> (raw)
In-Reply-To: <20040318211615.GA6024@kefka.frap.net>

On Thu, Mar 18, 2004 at 01:16:15PM -0800, Kenneth Knowles wrote:

> > it'll get worse. High on my wish-list for the core ocaml system is
> > namespaces or something similiar to help resolve this problem.
> 
> For ocaml, since modules are not first-class, wouldn't it just be a compilation
> frontend issue to do this merging (in addition to some syntax to declare module
> X.Y)?  I'm just pondering, but it seems possible and remarkably useful in order
> to move towards a CPAN-like module repository.  Dependencies between modules
> would naturally cause compile-time failure if they were not present, which is
> desirable.  This seems like one simple step which would enormously increase the
> ability of the community to more effectively contribute libraries and modules,
> and halt a lot of complaints to the INRIA team.


I also think a few more switches in the compiler would mostly put an end to
most complaints and give the community the necessary tools to extend/replace
the libraries. In particular, I feel this is needed:

1) A -pre_open switch that opens a given module (searched along the -I path)
   This would allow people to replace Pervasives with a custom module.

2) -stdlib switches that change the path for the standard library so that
   subsequent -I +path is searched under the current standard library path.
  Several -stdlib switches should be allowed in the same compilation.

3) A firm commitment by the Ocaml team to maintain camlp4 in the future in
   the same terms as the rest of the ocaml core. This would be essential
   for extensions that depend on syntactic manipulation (such regexps) to
   become widespread.

The -pre_open switch seems powerful enough to allow namespace management, since
an extLib module could then be something like this:

extLib.ml:

module List = ExtList
module Array = ExtArray
...

Then, users would be able to switch between the standard library and extLib
without modifying their code by compiling like this:

ocamlc -pre_open extLib.cmo mycode.ml

Fernando

-------------------
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


  reply	other threads:[~2004-03-18 22:32 UTC|newest]

Thread overview: 127+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09 17:30 [Caml-list] Completeness of "Unix" run-time library Vasili Galchin
2004-03-09 17:55 ` Richard Jones
2004-03-09 18:11   ` Shawn Wagner
2004-03-15 19:44     ` Eric Stokes
2004-03-16  5:32       ` Vasili Galchin
2004-03-17 15:52         ` Eric Stokes
2004-03-18  0:19           ` Vasili Galchin
2004-03-18  8:56             ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Matt Gushee
2004-03-18 10:31               ` Richard Jones
2004-03-18 11:22                 ` Nicolas Cannasse
2004-03-18 11:18                   ` Wolfgang Müller
2004-03-18 11:55                   ` Diego Olivier Fernandez Pons
2004-03-18 12:42                     ` Benjamin Geer
2004-03-18 14:12                       ` Xavier Leroy
2004-03-18 17:18                         ` Benjamin Geer
2004-03-18 17:56                           ` Alex Baretta
2004-03-18 18:33                             ` Markus Mottl
2004-03-19 10:58                               ` [Caml-list] Structuring the Caml community Christophe TROESTLER
2004-03-19 18:29                                 ` Yamagata Yoriyuki
2004-03-18 23:44                             ` [Caml-list] Structuring the Caml community (Re: OCaml's Cathedral & Bazaar) Alain.Frisch
2004-03-19  8:36                               ` Oliver Bandel
2004-03-19 19:03                               ` Eric Stokes
2004-03-19 22:34                                 ` Benjamin Geer
2004-03-19 22:58                                   ` Matthew O'Connor
2004-03-19 23:15                                   ` Eric Stokes
2004-03-19 23:23                                     ` Karl Zilles
2004-03-20 10:10                                 ` ocaml.org (was: Re: [Caml-list] Structuring the Caml community (Re: OCaml's Cathedral & Bazaar)) Richard Jones
     [not found]                                   ` <Pine.LNX.4.44.0403201143290.2678-100000@lcmpc4.epfl.ch>
2004-03-20 10:47                                     ` Richard Jones
2004-03-18 23:41                         ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Gerd Stolpmann
2004-03-19  0:47                           ` Kenneth Knowles
2004-03-19  8:54                             ` Richard Jones
2004-03-19 12:29                             ` Gerd Stolpmann
2004-03-19 12:44                           ` [Caml-list] Proposed community structure (was Re: OCaml's Cathedral & Bazaar) Benjamin Geer
2004-03-19 17:30                             ` [Caml-list] " Gerd Stolpmann
2004-03-20  6:30                               ` Matt Gushee
2004-03-20  6:49                                 ` Vasili Galchin
2004-03-20 13:19                                   ` Ville-Pertti Keinonen
2004-03-20 19:03                                     ` Vasili Galchin
2004-03-20 11:23                               ` Benjamin Geer
2004-03-20 16:46                                 ` Gerd Stolpmann
2004-03-20 13:07                           ` [Caml-list] Re: OCaml's Cathedral & Bazaar Dmitry Bely
2004-03-20 15:55                             ` Gerd Stolpmann
2004-03-20 20:09                               ` brogoff
2004-03-18 12:55                     ` Alex Baretta
2004-03-19  8:54                     ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Sven Luther
2004-03-19  9:12                       ` Sven Luther
2004-03-18 13:12                   ` John Carr
2004-03-18 13:56                     ` Richard Jones
2004-03-18 18:41                       ` Oliver Bandel
2004-03-18 20:10                         ` John Carr
2004-03-18 23:20                           ` Richard Jones
2004-03-19  1:30                             ` Jacques Garrigue
2004-03-19  5:10                               ` skaller
2004-03-19  8:41                               ` Sven Luther
2004-03-19  8:58                               ` Richard Jones
2004-03-19  9:13                                 ` Sven Luther
2004-03-19 10:03                                   ` Alex Baretta
2004-03-19 10:17                                     ` Sven Luther
2004-03-19 11:49                                       ` Benjamin Geer
2004-03-19 12:20                                         ` Gerd Stolpmann
2004-03-19 12:31                                         ` Sven Luther
2004-03-19 12:34                                         ` Issac Trotts
2004-03-21  9:13                                           ` skaller
2004-03-21 20:05                                             ` Issac Trotts
     [not found]                                               ` <1079927683.3165.73.camel@pelican.wigram>
2004-03-22  6:51                                                 ` Issac Trotts
2004-03-23 19:48                                                   ` skaller
2004-03-23 22:16                                                     ` Gerd Stolpmann
2004-04-03  6:36                                                     ` Dustin Sallings
2004-04-03  7:43                                                       ` Kenneth Knowles
2004-04-05  7:50                                                         ` Dustin Sallings
2004-04-06  4:20                                                           ` Vasili Galchin
2004-04-06  7:24                                                             ` skaller
2004-04-06 17:24                                                               ` Benjamin Geer
2004-04-06 17:38                                                                 ` Kip Macy
2004-04-07 23:11                                                                   ` Vasili Galchin
2004-04-07 23:08                                                                 ` Vasili Galchin
2004-04-07 23:31                                                                   ` Dustin Sallings
2004-04-08 13:57                                                                     ` John Goerzen
2004-04-13 11:15                                                                       ` Keith Wansbrough
2004-04-08 13:48                                                                   ` John Goerzen
2004-04-08 14:06                                                                     ` Richard Jones
2004-04-08 14:53                                                                       ` John Goerzen
2004-04-08 19:56                                                                         ` [Caml-list] Re: OCaml's Cathedral & Bazaar Christophe TROESTLER
2004-04-08 20:47                                                                       ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Evan Martin
2004-04-08 21:20                                                                         ` Kenneth Knowles
2004-04-07 23:03                                                               ` Vasili Galchin
2004-04-08  7:03                                                                 ` james woodyatt
2004-04-08  7:15                                                                   ` Stijn De Saeger
2004-04-08  8:25                                                                 ` skaller
2004-04-08  9:35                                                                   ` Andreas Rossberg
2004-04-08 11:05                                                                     ` Florian Hars
2004-04-08 11:31                                                                       ` Andreas Rossberg
2004-04-08 13:39                                                                         ` Jacques Garrigue
2004-04-08 12:33                                                                     ` Richard Jones
2004-03-19 12:17                                       ` Alex Baretta
2004-03-19 12:37                                         ` Sven Luther
2004-03-19 12:44                                         ` Issac Trotts
2004-03-18 23:31                           ` Benjamin Geer
2004-03-19  1:08                           ` Michael Vanier
2004-03-19  8:51                           ` Sven Luther
2004-03-19 13:20                             ` John Carr
2004-03-19 15:12                               ` Sven Luther
2004-03-21 21:11                                 ` John Carr
2004-03-22  6:46                                   ` Sven Luther
2004-03-19  8:48                         ` Sven Luther
2004-03-18 18:57               ` Shawn Wagner
2004-03-18 21:16                 ` Kenneth Knowles
2004-03-18 22:32                   ` Fernando Alegre [this message]
2004-03-19  0:03                     ` [Caml-list] Re: OCaml's Cathedral & Bazaar Remi Vanicat
2004-03-19  8:50                 ` [Caml-list] Demande clarification nomenclature ocaml* Diego Olivier Fernandez Pons
2004-03-19  9:49                   ` [Caml-list] Suggestion (was: Demande clarification nomenclature ocaml*) Wolfgang Müller
2004-03-19 10:19                     ` [Caml-list] Modules and namespaces Richard Jones
2004-03-19 10:42                       ` Wolfgang Müller
2004-03-19 10:45                       ` Sven Luther
2004-03-19 13:56                         ` Fernando Alegre
2004-03-19 15:15                           ` Sven Luther
2004-03-19 11:45                   ` [Caml-list] Demande clarification nomenclature ocaml* Benjamin Geer
2004-03-20  6:12                 ` OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library) Matt Gushee
2004-03-20 11:29                   ` Benjamin Geer
2004-03-20  6:23               ` Vasili Galchin
2004-03-20  6:23               ` Vasili Galchin
2004-03-09 17:59 ` [Caml-list] Completeness of "Unix" run-time library james woodyatt
2004-03-19 10:19   ` Sven Luther
2004-03-20  6:15     ` Vasili Galchin
2004-03-20  6:40       ` Sven Luther
2004-03-20  6:45     ` Vasili Galchin
2004-03-09 18:04 ` Stefano Zacchiroli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040318223243.GA26776@gaia.cc.gatech.edu \
    --to=fernando@cc.gatech.edu \
    --cc=caml-list@pauillac.inria.fr \
    --cc=kknowles@berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox