[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ocaml do hash-based dependency



Hi,

Am Mittwoch, den 22.07.2009, 10:37 -0700 schrieb Don Stewart:
> nomeata:
> > Hi,
> > 
> > Just FYI: Today at lunch I listened to some Ocaml maintainer dicussions.
> > They are going to implement a hash-based dependency system: Library
> > packages calculate a (short, 5-letter) hash over their interface. This
> > is appended to the library name and put in the Provides. Depending
> > libraries then Depend on that virtual package.
> 
> GHC computes such a hash in its interface files!
> 
>     $ cat A.hs
>     module M (f) where
> 
>     f = 10
> 
> 
>     $ ghc --show-iface A.hi
> 
>     interface main:M 6103
>       interface hash:   347ebd883561c2573459cb79ce49e598
>       ABI hash:         c4d50865aafadb9b103e54bd49948429
>       export-list hash: 380b973aee72b0a3dba58233eac02964
>       orphan hash:      693e9af84d3dfcc71e640e005bdc5e2e
> 
>     export main:M f

I knew that it did, but thanks for pointing out the exact location to
look for. Of course, for a Debian provides, we’d need to hash these four
hashes together and shorten them considerably, but yes, using that is
the basic idea.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: