-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Bump COMPILER_EDGE to 4.09.0+flambda #5
Conversation
Is it worth rebasing our image on top of ocaml/opam2? |
No I don't think so. The main motivation of this design choice of And it happens $ docker run --rm -it coqorg/base opam switch
# switch compiler description
-> 4.05.0 ocaml-base-compiler.4.05.0 4.05.0
4.07.1+flambda ocaml-variants.4.07.1+flambda 4.07.1+flambda
$ docker run --rm -it ocaml/opam2 opam switch
# switch compiler description
4.02 ocaml-base-compiler.4.02.3 4.02
4.03 ocaml-base-compiler.4.03.0 4.03
4.04 ocaml-base-compiler.4.04.2 4.04
4.05 ocaml-base-compiler.4.05.0 4.05
4.06 ocaml-base-compiler.4.06.1 4.06
4.07 ocaml-base-compiler.4.07.1 4.07
4.08 ocaml-base-compiler.4.08.1 4.08
4.09 ocaml-base-compiler.4.09.0 4.09
-> 4.10 ocaml-base-compiler.4.10.0 4.10
$ docker images | grep -e ocaml/opam2 -e coqorg/base
ocaml/opam2 latest 04fb66816491 11 days ago 3.55GB
coqorg/base latest 3c4f714b60b9 7 weeks ago 1.04GB |
Hi folks, note that OCaml >= 4.08 did introduce some non-trivial performance regression (c.f. ocaml/ocaml#9326) so indeed I dunno if you should wait a bit before the bump. |
The reason I proposed this bump is that Software Foundations' CI uses coqorg/coq, and a recent change depends on OCaml >= 4.08. If we are to upgrade OCaml eventually, perhaps no need to wait for the performance issue to be fixed. |
Yup, I understand it is very convenient to have 4.09, I dunno; the OCaml problem is really unfortunate, maybe the 3 versions should be kept if moving away from 4.07 is gonna impact some users with heavy developments? |
Good idea. Should we have:
|
@ejgallego @liyishuai I agree with your two concerns (that
|
So I have an alternative proposal, similar to what @liyishuai suggested (
WDYT? |
Size is indeed a concern, on the other hand the issue with OCaml is serious enough as to block the upgrade IMO. We are talking of increased compilation times of 12/15% that we could measure, that seems like a lot to me. I can only think of two choices:
|
looks reasonable to me, except that this will hinder @liyishuai's use case to benefit from BTW @liyishuai could you post a link to the Software Foundations' repo so that this thread is self-contained? Also, can you confirm which versions of Coq you'd like to test with this recent version of OCaml?
this would be a large refactoring, obviously non-backward-compatible for the users of the docker-coq images so I'm a bit split on this; maybe this is the way to go, or maybe we need to think about a similar solution, e.g. preserving all images containing two switches, and adding extra images (I also Cc @Zimmi48 @SkySkimmer in case they have suggestions about that non-trivial choice) |
Software Foundations is maintained in a private repository because the authors haven't decided to publicise solutions to exercises. The changes that require OCaml >= 4.08 are in the tools for building the textbook.
8.8, 8.9, 8.10, dev. |
We can first add some new tags (immediately), and announce that existing tags are subject to changes (that may alias to the added tags) in the future. |
Thanks to @ejgallego's feedback regarding the performance hit with OCaml >=4.08.0, I believe we could close that PR for the moment and continue the discussion in the issue #4 to find some solution |
Resolves #4