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
Make combinatorial_map a no-op by default. #16410
Comments
Commit: |
comment:3
Hi Nicolas, I do not like the fact that in order to use combinatorial maps we need to modify the source code. The decorator is executed when the source code is loaded, hence on startup. Turning it on inside a console would just be a nightmare. This is a killer strategy: you simply removed combinatorial maps from being usable. On the other hand, this ticket can be reviewed quickly compared to #16408 (which needs some design discussions). We can let this one go and then start discussing #16408 but I think we need more opinions on this. Thanks |
comment:4
The description says : "[...] there is a consensus that, at this point, the combinatorial_map decorator should by default return [...]" For the record, there is no consensus that there should be any decorator for this. |
comment:5
Replying to @sagetrac-tmonteil:
As far as I remember, even Nathann agreed that he could see the point of having such a decorator. In any cases, this is orthongonal to this ticket. So let's focus and act. |
comment:6
Replying to @videlec:
I agree, it's unusable from a plain Sage. But it remains usable by Note: if we really care about keeping
Precisely :-)
By the way: how bad is it to merge this on into #16408? I am sorry to Cheers, |
comment:7
Replying to @nthiery:
It would be nothing to adapt #16408 (what I have done is only a draft experimentation). So it is not an argument against this ticket. But, I do not see the emergency of getting rid of Vincent |
comment:8
Replying to @videlec:
There is no emergency - but I do think at this point it would be better to actually completely remove Not having it there anymore opens more possibilities to think of what the right way to proceed is (then using #16408). Christian |
comment:10
This ticket seems a good solution for the time being. It leaves here the semantic information that have been added by many users and fixes the issues of wrapping the methods with the decorator. I think we all agree this is not a long term solution but it will give us time to do things the right way on Vincent's ticket. |
comment:11
Replying to @stumpc5:
I see your point. From a social point we, as a community, screwed up: This does not necessarily mean, though, that this was not the right Anyway, whether Let's move on, focus on the technical solutions, and act together; Cheers! |
comment:12
Sounds like everybody agrees that this is a reasonable short term solution. Can someone review the details, and set a positive review? I am running all long tests now. |
comment:13
For the record: all long tests passed. |
comment:14
Note to self [and other FindStat devs] to make sure to undo this once this is merged (and to cc myself on this). |
comment:15
Replying to @tscrim:
Yup. Note that you just have a single line to change; not the full ticket. |
Reviewer: Christian Stump |
Changed branch from u/nthiery/make_combinatorial_map_a_no_op_by_default_ to |
Changed commit from |
From the discussions of (TODO: add refs to the threads in sage-devel),
there is a consensus that, at this point, the
combinatorial_map
decorator should by default return the decorated method as is, in
order to have no impact on speed. On the other hand, projects built on
top of Sage, like findstat are welcome to customize locally this hook to instrument
the Sage code and exploit the semantic information provided by this
decorator.
This ticket therefore:
combinatorial_map
as a no-opcombinatorial_map
Note: this change is slightly backward incompatible since
combinatorial_maps_in_class
is not functional any more by default.CC: @sagetrac-sage-combinat @nathanncohen @videlec @stumpc5 @VivianePons
Component: combinatorics
Keywords: combinatorial_map, findstat
Author: Nicolas M. Thiéry
Branch:
0cc67e9
Reviewer: Christian Stump
Issue created by migration from https://trac.sagemath.org/ticket/16410
The text was updated successfully, but these errors were encountered: