#17920: Reimplement IntegerLists using Polyhedron.integral_points()
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_review
Priority: blocker | Milestone: sage-6.6
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/17920 | b0a04aa5a4454766ed9802d8e99abcd7fb3e105b
Dependencies: #17937 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by ncohen):
> In general, I don't like the "X is slow, therefore let's not use X"
mentality. My idea is: "let's use X and then optimize X".
Well, for the sqrt problem we were only computing on floats, and sqrt(5)
in Sage is not a float. Having this symbolic value in the code we compared
it with floats and this had a cost we had no reason to pay, so `from math
import sqrt` made total sense, and there was nothing in Sage's sqrt that
we could have wanted to change.
As per Sage's Infinity... Well, it also seems to have been designed with a
different aim in mind. I usually want speed, and I do not want to pay for
pointless abstraction. In infinity.py you will find parents, elements,
rings and generators, while the feature I need is already provided by the
constant LONG_MAX.
This Sage object is called 'infinity', but it turns out that one
definition of "infinity" cannot cover all uses that we have for infinity
on a computer. And I don't think that we could beat a single CPU
instruction while dealing with parents and elements in a .py file.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/17920#comment:47>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.