Re: [sage-devel] Re: New package creation - advice/help requested

2023-07-06 Thread 'Travis Scrimshaw' via sage-devel
Not so much, but because people working in matroids usually need more speed, it tends to mean more Cython code. Compare how your implementation is done with the matroids in Sage. (For instance, you can have a category (even with Cython), but there are a number of categories that are more meant

[sage-devel] New approach for interfacing with the mpmath library

2023-07-06 Thread Matthias Koeppe
https://github.com/sagemath/sage/pull/35906 Discussions very welcome Matthias -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-devel] Re: Import module error when building documentation

2023-07-06 Thread brettpim
Thanks Matthias! brett On Thursday, July 6, 2023 at 5:14:34 PM UTC-4 Matthias Koeppe wrote: > It's a bug in the CI script. Merge > https://github.com/sagemath/sage/pull/35865, and it will work > > On Thursday, July 6, 2023 at 1:47:06 PM UTC-7 Aaron Dwyer wrote: > >> I am attempting to add a

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Matthias Koeppe
On Thursday, July 6, 2023 at 6:01:02 PM UTC-7 Kwankyu Lee wrote: Proposal 2 simply describes the current practice. PR author proposes and builds the case for the change, and a normal discussion take place on the PR. I want to see, in the wiki page, a summary of what are (or should be)

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Kwankyu Lee
Proposal 2 simply describes the current practice. PR author proposes and builds the case for the change, and a normal discussion take place on the PR. I want to see, in the wiki page, a summary of what are (or should be) considered to "build the case", which could be used as an agenda for a

Re: [sage-devel] Memory leak (quite bad)

2023-07-06 Thread Michael Orlitzky
On 2023-07-06 09:16:46, Nils Bruin wrote: > > On Wednesday, 5 July 2023 at 08:29:44 UTC-7 Edgar Costa wrote: > > > > Hi Gonzalo, > > > > I highly recommend using https://github.com/rfjakob/earlyoom instead of > > waiting for OOM to kick in. > > Wouldn't setting ulimit with -m (memory) or -v

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Matthias Koeppe
On Thursday, July 6, 2023 at 4:51:57 PM UTC-7 Nils Bruin wrote: On Thursday, 6 July 2023 at 14:55:35 UTC-7 Matthias Koeppe wrote: I don't think so; I think there is an effective difference of about 6–9 months. Just O(1), of course, but so are the release cadences of OS distributions and major

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Nils Bruin
On Thursday, 6 July 2023 at 14:55:35 UTC-7 Matthias Koeppe wrote: I don't think so; I think there is an effective difference of about 6–9 months. Just O(1), of course, but so are the release cadences of OS distributions and major packages. In NEP 29 I see a 42 month window; in Proposal 2 I

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Matthias Koeppe
I'm done with editing for today. There are still a number of major "TBD"s there; others are welcome to help with these. Matthias On Thursday, July 6, 2023 at 10:19:15 AM UTC-7 Matthias Koeppe wrote: > Thanks Tobias for creating this wiki page. > > I will edit it today so it presents more than

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Matthias Koeppe
On Thursday, July 6, 2023 at 2:25:12 PM UTC-7 Nils Bruin wrote: On Thursday, 6 July 2023 at 09:36:25 UTC-7 Tobias Diez wrote: Thanks David for your suggestions! I've now created a wiki page at https://github.com/sagemath/sage/wiki/NEP-29:-Python-version-strategy that on the one hand

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Nils Bruin
On Thursday, 6 July 2023 at 09:36:25 UTC-7 Tobias Diez wrote: Thanks David for your suggestions! I've now created a wiki page at https://github.com/sagemath/sage/wiki/NEP-29:-Python-version-strategy that on the one hand clarifies a few questions that were raised before and on the other hand

[sage-devel] Re: Import module error when building documentation

2023-07-06 Thread Matthias Koeppe
It's a bug in the CI script. Merge https://github.com/sagemath/sage/pull/35865, and it will work On Thursday, July 6, 2023 at 1:47:06 PM UTC-7 Aaron Dwyer wrote: > I am attempting to add a module to sage "covering_array.py" for an open > pull request. When building documentation on the pull

[sage-devel] Import module error when building documentation

2023-07-06 Thread Aaron Dwyer
I am attempting to add a module to sage "covering_array.py" for an open pull request. When building documentation on the pull request I get an error "Warning: Could not import sage.combinat.designs.covering_array No module named 'sage.combinat.designs.covering_array' although the file

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-06 Thread David Coudert
@Vincent: yes, the construction of EdgesView is in O(1) and it's nice. Unfortunately, I don't know how to check that sorting may lead to an error at construction without doing it. At least the current behavior is documented. @Nils: I fully agree with you and soon the default value of parameter

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Matthias Koeppe
Thanks Tobias for creating this wiki page. I will edit it today so it presents more than 1 proposal on equal footing. On Thursday, July 6, 2023 at 9:36:25 AM UTC-7 Tobias Diez wrote: > Thanks David for your suggestions! > > I've now created a wiki page at >

Re: [sage-devel] ping - please cast you vote: VOTE: Follow NEP 29: Recommended Python version

2023-07-06 Thread Tobias Diez
Thanks David for your suggestions! I've now created a wiki page at https://github.com/sagemath/sage/wiki/NEP-29:-Python-version-strategy that on the one hand clarifies a few questions that were raised before and on the other hand summarizes the discussion we had so far. I tried to add all

Re: [sage-devel] Memory leak (quite bad)

2023-07-06 Thread Nils Bruin
On Wednesday, 5 July 2023 at 08:29:44 UTC-7 Edgar Costa wrote: Hi Gonzalo, I highly recommend using https://github.com/rfjakob/earlyoom instead of waiting for OOM to kick in. Wouldn't setting ulimit with -m (memory) or -v (virtual memory) for the process that is liable to exceed its memory

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-06 Thread Nils Bruin
On Wednesday, 5 July 2023 at 21:54:03 UTC-7 David Coudert wrote: The current design choice in `EdgesView` is to sort only when asking for the list of edges, that is when calling `__repr__` if `sort=True`. The alternative is to sort at the initialization of the object and to cache the sorted

Re: [sage-devel] Graph([('A','B'),(1,2)]).edges() raises weird traceback

2023-07-06 Thread Vincent Delecroix
I do not like a solution involving a m log(m) cost at initialization. EdgesView is supposed to be O(1) at construction right? On Thu, 6 Jul 2023 at 06:54, David Coudert wrote: > > The current design choice in `EdgesView` is to sort only when asking for the > list of edges, that is when calling