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
Upgrade to pari-2.11 #25567
Comments
Sage input file which causes a pari crash with current Sage/Pari versino |
Commit: |
comment:4
Attachment: pols.sage.gz See the attached file which crashes using 8.1's pari version. Testing suggests that this will be OK in 2.10.0.alpha, and this should be verified before this ticket is merged. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
Replying to @JohnCremona:
I'm not sure whether you would propose to add it as doctest, but I'd rather not since it takes quite a long time. |
comment:7
Replying to @jdemeyer:
No, I agree. But at least we could have an assertion on this ticket that it works, so that whoever reviews the ticket (or me) can test it manually. |
Upstream: Reported upstream. No feedback yet. |
This comment has been minimized.
This comment has been minimized.
comment:8
Thanks to a Sage doctest, I found a genuine bug in the new PARI. So we'll need to wait for this to be fixed before we can proceed. |
comment:9
I could not find pari bug 2055, but 2054 is possibly similar? |
comment:10
Replying to @JohnCremona:
It should be there now. Their bug tracker sometimes takes a few minutes to update. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:16
So I ran all doctests and found 3 independent new bugs in PARI. One was already fixed in master, I reported two and one of those is already fixed. So this ticket is essentially "needs review" modulo the |
This comment has been minimized.
This comment has been minimized.
Changed upstream from Reported upstream. No feedback yet. to Fixed upstream, but not in a stable release. |
comment:62
Replying to @vbraun:
Fixed by adding some doctest tolerance. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:66
Ping? It would be nice to review this again. I recall that it had positive_review before. So this would need reviewing the dependency #26010 and the few added commits. |
comment:68
Rebased to latest version of #26010. |
Changed branch from u/jdemeyer/upgrade_to_pari_2_10_0_alpha to |
Changed commit from |
comment:71
Since the release of 2.11 there have been several bug-fixes which are important for my current work. Some of the new mf* functions crash on 2.11.0 but run fine with the current development commit. What I am currently doing is building this development gp executable outside Sage and manually changing the link SAGE_ROOT/local/bin/gp to point to that. (My code is only using gp.eval(), not Pari library functions.
|
comment:72
Replying to @JohnCremona:
As far as I can say that's quick and slightly dirty but probably not too much. I think the best way would be for your code to look for a variable, say |
comment:73
I thought of something like that but the Gp() constructor for a new gp interpreter does not allow the user to specify the interpreter's path explicitly. It calls Am I missing something? I am using a personal Sage build rather than messing with the system-wide one. |
comment:74
Replying to @JohnCremona:
sage sets its
sage should pick up your gp since it is first in PATH.
I don't think that is a good idea. Development versions are not for "production" use. Instead you could ask upstream for a release or suggest to them to release bugfixes in point releases. |
comment:75
In the long run you may also be interested in #24919. |
comment:76
Thanks for the suggestion in 1 which is certainly cleaner than whan I was doing. As for 2, it is a matter of terminology what is production and what is testing. The work I am doing is effectively a massive test of the new modular forms functionality in Pari/GP, and I am finding bugs which upstream Pari is fixing. But I am doing the testing using calls from Sage since using gp itself is much harder, especially when I get to compare the results with the output of a different package (hint: one of the 3 Ms). Of course that is not to say that Sage should be repeatedly changing to the latest pari commit; however pari releases come around rather too infrequently. |
comment:77
Replying to @JohnCremona:
In that case the current solution or one through #24919 is probably best.
Yes that is true. But if there is something upstream we need, we should at least ask them for a release before deciding to just fetch some unstable commit. |
comment:78
Replying to @timokau:
We can ask, but it probably won't happen just because we ask. |
comment:79
We should still ask. Even if it doesn't happen, they may have good reasons for that and explain them. |
comment:80
Bother @jdemeyer and I are in regular contact with the Pari developers anyway. |
comment:81
Having the reasons public would be better. Some explanation why the state of that particular comment is good enough for sage but not good enough for pari's upstream. All that is hypothetical in the case that pari adds important features that we need in sage and they refuse to make a release including them in reasonable time. As far as I understand, that is not the case yet. |
comment:82
Replying to @timokau:
It's not the case yet, but judging from past experiences, this is likely to happen. |
Tarball: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.11.0.tar.gz
Depends on #26010
Upstream: Fixed upstream, but not in a stable release.
CC: @kiwifb @JohnCremona @timokau @frederichan-IMJPRG
Component: packages: standard
Author: Jeroen Demeyer
Branch:
739f7a6
Reviewer: Timo Kaufmann
Issue created by migration from https://trac.sagemath.org/ticket/25567
The text was updated successfully, but these errors were encountered: