Skip to Content.
Sympa Menu

coq-club - RE: [Coq-Club] How does Int31 "underlying mechanism for hardware-efficient computations" work?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

RE: [Coq-Club] How does Int31 "underlying mechanism for hardware-efficient computations" work?


Chronological Thread 
  • From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: RE: [Coq-Club] How does Int31 "underlying mechanism for hardware-efficient computations" work?
  • Date: Thu, 30 Jun 2016 10:04:36 +0000
  • Accept-language: de-DE, en-US
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga04.intel.com
  • Ironport-phdr: 9a23:yt1sKRPo5xaeX+pU3o4l6mtUPXoX/o7sNwtQ0KIMzox0KPr+rarrMEGX3/hxlliBBdydsKMczbOJ+Pq5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuS9aU1pv8jbn60qaQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxhX7rgq8NcFWqHndYw5S6ZZBXIoKSp9sMbsrFzISRaFznoaSGQf1BRSVVvr9hb/C93KtSb1qvB6wG3SGMz9Tbk5XX7qu6JqQx/hhSNBLDk0/33NjdRYjaRHrRbnrBt6ld2HKLqJPeZzK/uONegRQnBMC55c

Dear Laurent,

as it looks I might need 4 number libraries, one for reasonably efficient
safe computation in Coq, one for fast not so safe computation in Coq, another
one optimized for OCaml export and maybe yet another one which concentrates
on simplicity to help beginners to understand the interface.

E.g. an Int32 type is probably best mapped to an OCaml Int32 and not to a
BigN using Int31.

I guess the easiest way to switch libraries is to have an NumbersSafe,
NumbersFast, NumbersOcaml and NumbersSimpl folder with identical interfaces
and use the -Q option to map one of these to Numbers. I will look into this
and do some experiments.

If someone wants to review results from time to time, please let me know - I
plan to publish this as extension to the standard library.

Best regards,

Michael

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



Archive powered by MHonArc 2.6.18.

Top of Page