From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA02229; Tue, 19 Mar 2002 23:24:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA02508 for ; Tue, 19 Mar 2002 23:24:28 +0100 (MET) Received: from smtp2.home.se (smtp2.home.se [195.66.35.201]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g2JMOOr26682 for ; Tue, 19 Mar 2002 23:24:28 +0100 (MET) Received: from seneca [213.114.140.209] by smtp2.home.se with Novonyx SMTP Server $Revision: 2.74 $; Tue, 19 Mar 2002 23:18:56 +0100 (ECTD) Message-ID: <00d901c1cf94$c5fa7700$f58c72d5@invariant.se> From: =?iso-8859-1?Q?Johan_Georg_Granstr=F6m?= To: "Jacques Garrigue" Cc: References: <9601-Sat16Mar2002094255-0800-tim@fungible.com><20020318101225C.garrigue@kurims.kyoto-u.ac.jp><1191-Sun17Mar2002193326-0800-tim@fungible.com> <20020318142017J.garrigue@kurims.kyoto-u.ac.jp> Subject: Re: [Caml-list] Big executables from ocamlopt; dynamic libraries again Date: Tue, 19 Mar 2002 23:21:02 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > As a fall-back solution, there is MD5 hashing. The problem is that > you're then mixing information for all the contents of a module. > Any change will produce a new incompatible hash value. > For instance, every time you add a function to a library, it becomes > incompatible. And there are new functions in every release of ocaml. > > Note that for C, compatibility policies generally allow adding extra > functions to a library without changing the version number, since the > problem, should it arise, can be detected at link time. IMHO this a perfect research problem: Find a mapping H:S->B where S is the set of module signatures and B is the set of binary (arbitrary length) strings. Such that if and only if s_1 is a subset of s_2 then there is some relation between H(s_1) and H(s_2), thus s_1