-
Notifications
You must be signed in to change notification settings - Fork 253
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
Refactor fq_default to use gr generics #1765
Conversation
Unfortunately |
Bad timing, since we just changed everything to use Is the plan to do more incompatible changes or will these slow down at some point? I guess we just stick with 2.10 and wait till things settle down. |
I haven't talked to Fredrik about this, but my hope is that most of the breaking changes are between 3.0 and 3.1. |
|
So can I still pass Edit: Sorry, I was not precise enough with my previous comment. I meant both the elements as well as the context object. |
You can pass a
|
Is there a way to get to the |
Fixed the 32-bit test failure which wasn't actually my fault (there was a missing init in the test code). Seems like nothing tested broke in Nemo, so are there any objections to merging this? |
Yes, With the exception of Of course, we could add a less cryptic interface in the |
The Nemo run has errors: https://github.com/flintlib/flint/actions/runs/7758309026/job/21159771932?pr=1765#step:7:3333 Given that it apparently does not catch all errors, the error might not be related to this PR. |
That error also shows up in the last test run on It is surely a remnant of #1754 since it refers to |
Hopefully I fixed it. I am rerunning the test. |
I don't understand why it is still working, but if it works, it works. |
Added |
Merci |
A start of reimplementing
fq_default
so that it's just syntactic sugar overgr
generics. In particular,fq_default_ctx
is now just an alias forgr_ctx
. This PR also adds some missing functionality fornmod
,fmpz_mod
etc.gr
contexts to make this work.A lot of
fq_default
methods remain as if-statements; everything should be changed togr
method calls eventually, but this will require more work.I've tried to make the documented interface completely backwards compatible, but there is possibly going to be some unanticipated breakage in Nemo, e.g. (there will certainly be breakage if some external code attempts to directly access the internals of the
fq_default
context object).