coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Théo Zimmermann <theo.zimmi AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Plugins, type-checking, and universe constraints
- Date: Thu, 12 Apr 2018 22:45:54 +0000
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=theo.zimmi AT gmail.com; spf=Pass smtp.mailfrom=theo.zimmi AT gmail.com; spf=None smtp.helo=postmaster AT mail-vk0-f47.google.com
- Ironport-phdr: 9a23:M3X4Oxdf8dAm9VUqTbjYvHm8lGMj4u6mDksu8pMizoh2WeGdxcu6Zh7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM2/2/Xhc5wgqxVoxyvugJxzJLPbY6PKPZzZLnQcc8GSWdDWMtaSixPApm7b4sKF+cPI+ZYqJP6p1QWrhS+BAysBObxxT9Sg3/5x6s60+I8GgzBwAwgH8wBsHPOoNT0NacSVOW1zKjTwDXMavNZwzb96IzSfh89pvGMWKt9fMzMwkcsDwPIlkucpZDhMj+P1ekAs3KX4/R9We+hkWIqpAN8rz6yzck2kIbJnJgaylXc+CV53ok1Idq4RVZ+YdG+EZtQsziWN5V1Qs8+Wm1otik3x78ctZ60eygKz5snxxrBZPCdb4eI5RfjWP6QITd+mn1lZKqyiwiu/UWk0OHxVcm53ExUoiZYnNTArH8A2h7L5siCUPR9/0Oh2TiV1wDU7+FJOVw0larFJJ4m2LIxl5sTsUHGHi/3g0j2g6qWeV8l+uis8ejofrLmppqEO49ulg7+KrgumtC4AekgLgcOWHGb9f2g273n4E32W65HjuY2k6ncqJDVP94Xpq+/Aw9P04Ys8QyzDzm80IdQoX5SJ1VcPRmDkoLBOlfUIfm+A+3srU6rlWJXx3HBCY/gB5DANH3KlrGpKap95kka2gs2yNF36JddC7VHK/X2DByi/OfEBwM0ZlTni93sD89wg9tHCDC/R5SBOaaXimemo+cmIu2CfogQ4W+vJP0s5vqohng8ywZEIfuZmKAPYXX9JcxIZl2DaCO10NgEGGYO+AE5Sb6y0QDQYXtof3+3GpkEyHQ7BYahV9qRQ4mshPmf33/+EMEJIG9BDV+IHDHjcIDWA/o=
Hi Talia,
But what do you mean by "the new API which is a start"?
Théo
Le jeu. 12 avr. 2018 à 23:32, Talia Ringer <tringer AT cs.washington.edu> a écrit :
Thanks all; calling type inference worked well. Is there any performance overhead to using this over the kernel? If so, do you have an idea of how significant it is?Also, it would be useful I think to have documentation of best practices for plugin developers, beyond the new API which is a start. It can still be difficult as a plugin developer to know which of my many options are better for which situations. I can help by curating things I've been confused about in the past, so you know what questions a plugin developer might have.TaliaOn Wed, Apr 11, 2018, 8:18 AM Emilio Jesús Gallego Arias <e AT x80.org> wrote:Hello Talia,
Talia Ringer <tringer AT cs.washington.edu> writes:
> 1. A way to tell type-checking from within a plugin about the universe
> constraints so that it knows to solve them correctly, or
>
> 2. a way to tell type-checking from within a plugin to just assume all
> universe constraints go through, because this will always be true for me,
> and if it isn't, then the plugin will just fail later anyways
>
> I'm assuming #1 is the proper way to call type-checking from within a
> plugin, but I'm not sure how to do it.
So indeed as others have pointed out, the kernel won't infer constraints
for you anymore so you'll have to manually infer them [very cumbersome]
or call the type inference mechanism.
Coq devs are aware the universe-handling API could certainly take some
usability improvements, please, as an API user don't hesitate to share
thoughts or suggestions about it.
I think that the preferred interface these is to open an issue on
GitHub, but of course mailing list discussion is welcome too [however it
has the downside that, contrary to GH issues, it tends to be harder to
translate to concrete actionable plans].
Best,
E.
- [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Matthieu Sozeau, 04/10/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Emilio Jesús Gallego Arias, 04/11/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Théo Zimmermann, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Emilio Jesús Gallego Arias, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Talia Ringer, 04/13/2018
- Re: [Coq-Club] Plugins, type-checking, and universe constraints, Sylvain Boulmé, 04/10/2018
Archive powered by MHonArc 2.6.18.