caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alessandro Baretta <alex@baretta.com>
To: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] module namespace
Date: Wed, 06 Nov 2002 21:36:20 +0100	[thread overview]
Message-ID: <3DC97D44.8020308@baretta.com> (raw)
In-Reply-To: <20021106193013.GC28443@lakeland.eecs.harvard.edu>



Christian Lindig wrote:
> On Wed, Nov 06, 2002 at 06:56:23PM +0200, Yurii A. Rashkovskii wrote:
> 
>>>Finally, a really cool, cool, cool feature would be dynamic linking
>>>of Ocaml modules from their namespace URL, with static typechecking
>>>at compile time against the corresponding .mli files. How do you
>>>like this idea, Yurii?
>>
>>Well, I like and will implement it soon.
> 
> 
> Dynamic linking suggests that you are linking *.cmo files but the
> previous author talked about *.mli files. Anyway, linking binary object
> files and hence libraries is a can of worms: files from different
> compiler versions are incompatible. Any ideas about this?
> 
> -- Christian

This is no big deal really. Compiled modules and compiled 
interfaces are "signed" by the compiler with an MD5 checksum 
and with the compiler's own version number. Here's a brief 
discussion of the topic by Xavier: 
http://caml.inria.fr/archives/200208/msg00004.html.

The runtime system will simply have to throw an exception at 
runtime if it is unable to locate the appropriate module, 
with the correct checksum and version number. Runtime 
exceptions are the price to pay for runtime linking.

Alex

-------------------
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:[~2002-11-06 20:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-02  0:24 Yurii A. Rashkovskii
2002-11-02  8:51 ` Alessandro Baretta
2002-11-02 16:10   ` Yurii A. Rashkovskii
2002-11-02 16:34     ` Alessandro Baretta
2002-11-02 16:57       ` Chris Hecker
2002-11-02 17:20       ` Yurii A. Rashkovskii
2002-11-02 17:40         ` Alessandro Baretta
2002-11-02 19:14           ` Yurii A. Rashkovskii
2002-11-02 22:37       ` Lauri Alanko
2002-11-04  8:07         ` Alessandro Baretta
2002-11-05 16:27           ` Jeffrey Palmer
2002-11-05 22:30             ` Alessandro Baretta
2002-11-06 10:30             ` Andreas Rossberg
2002-11-06 14:17               ` Yurii A. Rashkovskii
2002-11-06 16:27                 ` Alessandro Baretta
2002-11-06 16:56                   ` Yurii A. Rashkovskii
2002-11-06 19:30                     ` Christian Lindig
2002-11-06 20:36                       ` Alessandro Baretta [this message]

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=3DC97D44.8020308@baretta.com \
    --to=alex@baretta.com \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).