coq-club AT inria.fr
Subject: The Coq mailing list
List archive
[Coq-Club] About the -native-compiler flag and the coq-native opam package (to be released before Coq 8.13+beta1)
Chronological Thread
- From: Erik Martin-Dorel <e.mdorel AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] About the -native-compiler flag and the coq-native opam package (to be released before Coq 8.13+beta1)
- Date: Mon, 7 Dec 2020 02:14:08 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=e.mdorel AT gmail.com; spf=Pass smtp.mailfrom=e.mdorel AT gmail.com; spf=None smtp.helo=postmaster AT mail-ej1-f43.google.com
- Ironport-phdr: 9a23:VbklvRFdmuqltzVTnu2J1p1GYnF86YWxBRYc798ds5kLTJ7yoMuwAkXT6L1XgUPTWs2DsrQY0rWQ6v+7EjZeqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5wIRmssAnctMcbjYR8Jqsw1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrx27pxJ/zYDaY5ybOuRica7GZ9wWWXBMU9xNWyBdAI6xaZYEAeobPeZfqonwv1QArQG/BQmvGejhzSVHhmXq3a071eQtCA/I3As6H90QtHTfsdL4O7kIXeCw0abIyi/DYO1S2Trm54jIdwouofCIXb5qbcXRzkwvGhrDg16NpoPrIymb2f4Rs2iH8eVgT+SvhnYnpgxtrDWi28kih5XXi4wVxF3J9Cp3zJopKNCmR0N2bsKoHZVeuiyEM4Z7TN4uTW91tSg61LEIt5C1cSkXxJg5wRPUdvKJc4+N4h35VeaRJy91i29keLKkmxmy9lWgyvfnVsaqylpKoTBFkt7RtnAVzxDT686HSuF8/ki7wzqP2RrT5vlFIUAyj6rbKoQuzqQqmpodq0TPBiD2mETqjK+Wa0Ur4fKk5PjgYrXjvpOcMpV7ihviMqQvnMyzGPk3Mg8UX2eF/eSwzrrj/Vf2QLhMk/Y4kbHZvYjEKcgHoqO1GQxY34Y55xqhEjur084UkHYJIV9DZRmJlZLmO0vUL/D9Ffq/g0qjkDNsx/3eO73uGJTNLnzanLj/f7Zx9ldQyAQ8wN1R/Z5UBbYBIPX8Wk/1qtPUFAM2Mwuxw+r/CdV90J0RWX6XD6OHLK/ftUWE6+EvLuWWeoMZpTXwJ+Iq6vPglXM5nEUSfait3ZsZcnC4GfFmLl2Hbnb2h9cODGAKvhAgQ+zuk1CCXjtTaGyzX6I4/D00FIWmDYLbSoC3nLOBxDu7HoFRZm1eFl+MFm7oe5yYVPcIdSKdOdRskicEVLikU48uzwuitA78y7p9L+rb4DcUtZz51Is92+qGnhYrsDdwEs610meXTmgykHlbfTIu2LFDphlw0FaAl61xmeBZE5lf4OlEVi83M4WZy/19DZb1QA2SUM2OTQOLWNSlSRQ4VM4wxZoiZFxwH532g1bG0y2wDrs9mLmCBZhy+aXZiSuib/1hwmrLgfFyx2ItRdFCYDX/2/xPsjPLDouMqH230qancaNGgXzI/WaHiGeM5QRWDFU2XqLCUnQSIEDRqIahvx+Qf/qVEb0idzB554uaMKITM4/miFxHQLHoP9GMOzvgyVf1Pg6Bw/a3VKSvfmwc2CvHD01dylIc+H+HMU41ASLz+m8=
[This is a cross-post of the following Discourse thread:
https://coq.discourse.group/t/about-the-native-compiler-flag-and-the-coq-native-opam-package-to-be-released-before-coq-8-13-beta1/1147]
https://coq.discourse.group/t/about-the-native-compiler-flag-and-the-coq-native-opam-package-to-be-released-before-coq-8-13-beta1/1147]
Dear Coq users,
This announcement deals with Coq's native_compute support (which is typically interesting to get increased performance when using reflexive tactics).
It focuses in particular on the -native-compiler flag for both ./configure and coqc binaries, as well as the corresponding packaging in opam-repository.
TL;DR: Following the discussion that took place in the CEP 48 (Coq Enhancement Proposal "Packaging coq-native"), a new virtual package coq-native will be released in opam-repository on this Monday 7 December (before the release of Coq 8.13+beta1).
So if opam proposes you to upgrade an existing switch, or if you create a brand new opam switch with a given version of Coq ≥ 8.5, you may consider installing first (or simultaneously w.r.t. coq) the coq-native package, if you are interested in that native_compute feature.
# Minimal complete example
you could run for instance (when Coq 8.13+beta1 will be released):
```
opam switch create coq-8.13 4.07.1+flambda
eval $(opam env)
opam repository add coq-released https://coq.inria.fr/opam/released
# for beta versions of coq:
opam repository add coq-core-dev https://coq.inria.fr/opam/core-dev
# for beta versions of coq libs:
opam repository add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam update
opam pin add -n -k version coq 8.13+beta1
opam install -y -v -j 2 coq coq-native
```
# Further details, "semantics" of this package
For details on the motivation, the issues that this approach solves, as well as for the implementation itself (which splits into 3 "items"), see:
- The fulltext of the CEP 48:
- or in particular for library developers and package maintainers, this section of the CEP 48 that explains how to make your opam packages aware of the new coq-native package for Coq < 8.13:
Kind regards,
Erik
- [Coq-Club] About the -native-compiler flag and the coq-native opam package (to be released before Coq 8.13+beta1), Erik Martin-Dorel, 12/07/2020
Archive powered by MHonArc 2.6.19+.