From: "Johan Georg Granström" <georg.g@home.se>
To: "Jacques Garrigue" <garrigue@kurims.kyoto-u.ac.jp>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] Big executables from ocamlopt; dynamic libraries again
Date: Tue, 19 Mar 2002 23:21:02 +0100 [thread overview]
Message-ID: <00d901c1cf94$c5fa7700$f58c72d5@invariant.se> (raw)
In-Reply-To: <20020318142017J.garrigue@kurims.kyoto-u.ac.jp>
> 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<s_2 iff H(s_1) R H(s_2).
Perhaps you could drop "and only if" and let H(s_1) R H(s_2) imply
s_1 < s_2 with 99.9...% certainty.
Finding an efficient pair H and R would really make life easier for
software maintainers. I guess reasonable demands on H and R are that
H(s) should have a binary length that is a fraction of the size of the
corresponding .cmi and that b_1 R b_2 is big ordo the size of b_1 plus b_2.
In any case R must be significantly faster than big ordo size of b_1 times
b_2.
Does this make since? Is it possible? Is it already done?
Yours,
- Johan Granström
Ps. Using hashes of modules for compability checks is a pain in the
ass. Microsoft .NET framework does it - and it doesn't work in real
life. I know from personal experience...
-------------------
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
next prev parent reply other threads:[~2002-03-19 22:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-16 16:05 Tim Freeman
2002-03-18 1:12 ` Jacques Garrigue
2002-03-18 1:29 ` Tim Freeman
2002-03-18 5:20 ` Jacques Garrigue
2002-03-18 10:10 ` [Caml-list] Big executables from ocamlopt; dynamic librariesagain Warp
2002-03-18 13:14 ` [Caml-list] Big executables from ocamlopt; dynamic libraries again Sven
2002-03-18 15:51 ` [Caml-list] Type-safe backward compatibility for .so's Tim Freeman
2002-03-18 18:46 ` [Caml-list] Big executables from ocamlopt; dynamic libraries again malc
2002-03-19 22:21 ` Johan Georg Granström [this message]
2002-03-20 2:46 ` Hashing research (was Re: [Caml-list] Big executables ...) Tim Freeman
2002-03-18 10:12 ` [Caml-list] Big executables from ocamlopt; dynamic libraries again Nicolas George
2002-03-18 13:11 ` Sven
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='00d901c1cf94$c5fa7700$f58c72d5@invariant.se' \
--to=georg.g@home.se \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
/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