[sage-devel] cysignals/sig_on...sig_off

2023-04-30 Thread 'jonatha...@googlemail.com' via sage-devel
Hi, it's been over a year since the last activity on https://github.com/sagemath/cysignals. This could well be, because it is a good shape, but looking at the issues, I'm not too sure about that. Here are some issues, I know of: - sig_on/sig_off is poorly maintained and not thread safe - cysig

[sage-devel] Re: Parallelization of Boruvka's Algorithm

2022-04-12 Thread 'jonatha...@googlemail.com' via sage-devel
Sure. Since this is written in cython, using https://cython.readthedocs.io/en/latest/src/userguide/parallelism.html might be a good choice. This is also used in `src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx`. Note the first two lines of the file. With those lines, yo

[sage-devel] Re: patchbot owners, please update to 3.0.3

2022-01-21 Thread 'jonatha...@googlemail.com' via sage-devel
Hi Frédéric, due to https://trac.sagemath.org/ticket/33027 I have given up on running my patchbot. Jonathan Frédéric Chapoton schrieb am Montag, 17. Januar 2022 um 21:31:31 UTC+1: > and to fix the remaining doc-cleaning issue, please upgrade again to the > master branch of github (aka tag 3.0

Re: [sage-devel] Whats the plan for random doctests with floating point numbers?

2022-01-05 Thread 'jonatha...@googlemail.com' via sage-devel
Sorry for being late to the party. To save Volker the headache, I would propose setting the environment variable SAGE_DOCTEST_RANDOM_SEED to zero for buildbots (see https://trac.sagemath.org/ticket/32761). It's not the job of buildbots to discover random test failures (patchbots on the other ha

[sage-devel] Re: random doctest failure in BinaryQF.solve_integer

2022-01-05 Thread 'jonatha...@googlemail.com' via sage-devel
Dear Vincent, this has been resolved in https://trac.sagemath.org/ticket/33026 (positive review, but not closed). Jonathan vdelecroix schrieb am Mittwoch, 5. Januar 2022 um 09:04:13 UTC+1: > Dear all, > > In the following patchbot report > > > https://patchbot.sagemath.org/log/32553/Linux/1_SM

[sage-devel] patchbots open maxima threads and don't close them

2021-12-13 Thread 'jonatha...@googlemail.com' via sage-devel
Hi there, I run a patchbot (panke), which completely slowed down because of maxima threads that ate away my memory. There were like 10 of them. Is this a bug? Killing those threads the patchbot keeps on running just fine. So apparently, they were really lost. Jonathan -- You received this me

Re: [sage-devel] Constructor of a very large matrix doesn't copy entries correctly

2021-12-02 Thread 'jonatha...@googlemail.com' via sage-devel
FF = GF(next_prime(100)) M = Matrix(FF, [[1, 2], [3, 4]]) M.__init__?? reveals that the indices are casted into a long. This might be the problem. Using Py_ssize_t or size_t might have been a better choice. Jonathan dim...@gmail.com schrieb am Mittwoch, 1. Dezember 2021 um 20:56:16 UTC+1: >

Re: [sage-devel] Failed to build cysignals-1.10.3 and pyzmq-22.2.1 on a Fedora 35 (x86_64)

2021-11-21 Thread 'jonatha...@googlemail.com' via sage-devel
Thanks for the report. For cysignals we have the ticket https://trac.sagemath.org/ticket/32576 and github issue https://github.com/sagemath/cysignals/issues/150. furutaka@gmail.com schrieb am Montag, 22. November 2021 um 04:17:55 UTC+1: > Forgot to attach this... > > 2021年11月22日(月) 11:31 K

[sage-devel] Re: Flint 2.8.4 Released

2021-11-18 Thread 'jonatha...@googlemail.com' via sage-devel
See https://trac.sagemath.org/ticket/32211 for package upgrade. Bill Hart schrieb am Mittwoch, 17. November 2021 um 19:44:30 UTC+1: > Hi all, > > I just tagged Flint-2.8.4. This is a critical bug fix release and so > we strongly recommend upgrading. > > * Fix a serious bug in fmpz_mod_poly_xgcd fo

[sage-devel] Re: Error compiling cysignals-1.10.3 / gcc 11.2.0

2021-09-28 Thread 'jonatha...@googlemail.com' via sage-devel
I have have found a fix elsewhere and copy/pasted it in https://github.com/sagemath/cysignals/pull/151, this might already solve the issue. Fixes this and possibly upgrading cysignals is now https://trac.sagemath.org/ticket/32576. Manuel González schrieb am Samstag, 25. September 2021 um 23:52:

[sage-devel] Re: Error compiling cysignals-1.10.3 / gcc 11.2.0

2021-09-25 Thread 'jonatha...@googlemail.com' via sage-devel
Sorry for the wrong reference, I guess the following reference is better: https://lists.gnu.org/archive/html/info-gnu/2021-08/msg1.html Maybe compiling cysignals without march native is also and option until this problem is resolved for cysignals. jonatha...@googlemail.com schrieb am Samstag

[sage-devel] Re: Error compiling cysignals-1.10.3 / gcc 11.2.0

2021-09-25 Thread 'jonatha...@googlemail.com' via sage-devel
https://github.com/openbsd/src/commit/ea0d1f1fdbdc98dc215aafd8869e67812566a636#diff-abef93fb3c734d17f027b68052e70aac7e9949432392fb4910c1578ca087534a MINSIGSTKSZ is no longer a constant, which causes this problem. Does it compile, when you add `--std=c11` to your `CFLAGS`. E.g. do `sage -sh` and

Re: [sage-devel] Re: Registering NumberField as numbers.Number

2021-07-16 Thread 'jonatha...@googlemail.com' via sage-devel
Thanks for the answers. I didn't realize this whole issue was this involved. It's certainly interesting. For now I think there is nothing wrong with registering `NumberFieldElement` as `numbers.Numbers`, see https://trac.sagemath.org/ticket/32206. Jonathan mathzeta2 schrieb am Donnerstag, 1

[sage-devel] Registering NumberField as numbers.Number

2021-07-15 Thread 'jonatha...@googlemail.com' via sage-devel
Hi, I was looking into typing a bit and realized that our number field elements are not registered as numbers. So the following will not evaluate to true: sage: import numbers sage: K. = QuadraticField(2) sage: isinstance(a, numbers.Number) Is there a reason, we do not register number fields in

[sage-devel] implicitly fuzz RNG-dependent doctests

2021-07-03 Thread 'jonatha...@googlemail.com' via sage-devel
Dear all, most of sage's doctest are independent of random seeds by now. It would be nice if you could not add new doctests that depend on the random seed of the doctester. Usually one needs to be carefull when adding doctests with `random_element` and `some_elements`. If you not sure on how t

Re: [sage-devel] Re: proposal - remove gcc, gfortran, python building/spkgs

2021-06-25 Thread 'jonatha...@googlemail.com' via sage-devel
resolution: Get conda running (if not already installed). There is plenty of help out there for this. Once you got conda running, we can help you. dim...@gmail.com schrieb am Freitag, 25. Juni 2021 um 08:29:51 UTC+2: > On Fri, 25 Jun 2021 at 07:12, 'jonatha...@googlemail.com&#

Re: [sage-devel] Re: proposal - remove gcc, gfortran, python building/spkgs

2021-06-24 Thread 'jonatha...@googlemail.com' via sage-devel
I did a large computation on a redhat application server 1 1/2 years ago and I was very happy that I could just compile gcc to replace the version 4.x. There where a couple of problems though, but all of them could be resolved. I can't reproduce this however, as those people have thankfully pro

Re: [sage-devel] Re: Move MemoryAllocator to PyPI?

2021-05-26 Thread 'jonatha...@googlemail.com' via sage-devel
Are there objections of adding this new standard package, which consists of the code from `ext/memory_allocator.*`? This is now https://trac.sagemath.org/ticket/31591. I would like to put it on `github.com/sagemath` but need either help or permissions to do so. The new package does not depend

Re: [sage-devel] Re: Memory leak with matrices and finite fields

2021-05-14 Thread 'jonatha...@googlemail.com' via sage-devel
> read that bug in detail. > > Thanks for the feedback. > > Best > Freddie > On Wednesday, May 5, 2021 at 1:01:39 AM UTC-7 dim...@gmail.com wrote: > >> we've fixed a memory leak in matrices recently (this fix will be in >> 9.3), not sure if this is

Re: [sage-devel] Re: Minimum Python version to 3.8

2021-05-13 Thread 'jonatha...@googlemail.com' via sage-devel
It looks to me as if all of this ticket can be "fixed" to work with python 3.7 by just trying to import shared_memory. `start_worker_pool` should probably raise a proper error message, if the import of shared_memory failed previosly. The few doctests that explicitly call `start_worker_pool` can

[sage-devel] Re: Memory leak with matrices and finite fields

2021-05-05 Thread 'jonatha...@googlemail.com' via sage-devel
Dear Freddie, thank you for the report. Fortunatly or unfortunately, I can't reproduce this on sage 9.2 or on the develop branch (on ubuntu focal with libflint-2.5.2 and debian buster with sage's flint 2.6.3). This might be a bug with flint. What flint are you using? You can go into detail, t

[sage-devel] Re: tab-completions crashes sage 9.3.rc2

2021-04-10 Thread 'jonatha...@googlemail.com' via sage-devel
+1 In addition to the above arguments, there are two other advantages (but which do not justify deactivating jedi tab completion for sage-9.3): - It's noticably faster without jedi. - Keywords of functions appear first in the list, where they belong and not somewhere hidden. (Deactivating jedi

Re: [sage-devel] Re: Move MemoryAllocator to PyPI?

2021-03-29 Thread 'jonatha...@googlemail.com' via sage-devel
https://github.com/kliem/memory_allocator I started MemoryAllocator as a seperate project. I think it is almost ready to push to PyPI. Any opinions? Do I need permission to publish it like this? Should this be moved into a different repository? (E.g. https://github.com/sagemath/memory_allocator

Re: [sage-devel] Linking libraries with spkg-install.in

2021-03-19 Thread 'jonatha...@googlemail.com' via sage-devel
: > On 19.03.21 11:13, François Bissey wrote: > > > > >> On 19/03/2021, at 23:05, 'jonatha...@googlemail.com' via sage-devel < > sage-...@googlegroups.com> wrote: > >> > >> We configure libaries with e.g. `--with-zlib="$SAGE_LOCAL"

[sage-devel] Linking libraries with spkg-install.in

2021-03-19 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Hi, I think I made a mistake in https://trac.sagemath.org/ticket/31482, which might cause latte_int to fail building, if you use your systems cdd (which almost no one does, because the headers in cdd/ and cddlib/ are rejected currently). However, it appears that we make this mistake all over s

Re: [sage-devel] Re: Move MemoryAllocator to PyPI?

2021-03-11 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
This approach might not be pretty, but it seems to work fine. I can use cysignals on cygwin, linux, mac and not use it on windows without cygwin. However, it would be much nicer to allow pip installing cysignals on windows without cygwin in the first place. This would simplify this a lot. jona

[sage-devel] Move MemoryAllocator to PyPI?

2021-02-10 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Dear all, I have two little projects that I want to put onto PyPI soon. Both of them use MemoryAllocator, because I find it very nice to just allocate memory and let pythons garbage collector take care of it. MemoryAllocator only depends on cysignals, so it would make sense to make it pip insta

Re: [sage-devel] AttributeError: module 'sage.sandpiles.all' has no attribute 'absolute_import'

2021-02-09 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
> On Tuesday, February 9, 2021 at 6:52:51 AM UTC-8 Dima Pasechnik wrote: >>> >>>> it looks like https://github.com/davidhalter/jedi/issues/1615 >>>> and our version of jedi is older than the fix there. >>>> Upgrade jedi (if this is possible

Re: [sage-devel] AttributeError: module 'sage.sandpiles.all' has no attribute 'absolute_import'

2021-02-09 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
ython/jupyter >>> upgrade, don't know) ? >>> >>> On Tue, Feb 9, 2021 at 1:56 PM 'jonatha...@googlemail.com' via >>> sage-devel wrote: >>> > >>> > >>> > Dear all, >>> > >>> > sage c

Re: [sage-devel] AttributeError: module 'sage.sandpiles.all' has no attribute 'absolute_import'

2021-02-09 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
jedi (if this is possible without a full ipython/jupyter >> upgrade, don't know) ? >> >> On Tue, Feb 9, 2021 at 1:56 PM 'jonatha...@googlemail.com' via >> sage-devel wrote: >> > >> > >> > Dear all, >> > >> > sage cr

[sage-devel] AttributeError: module 'sage.sandpiles.all' has no attribute 'absolute_import'

2021-02-09 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Dear all, sage crashes once in a while hard with some strange error. Does anyone know what is going on? This is somewhat new. Not reproducible. Happened to me maybe 3 or 4 times now at various occasions. Jonathan -- You received this message because you are subscribed to the Google Groups "

[sage-devel] Re: Unable to build develop branch

2021-01-23 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
For `sage -b` not working see https://trac.sagemath.org/ticket/31263 (on positive review). Sorry about that (I positively review the ticket that broke it). dwb...@gmail.com schrieb am Samstag, 23. Januar 2021 um 14:28:00 UTC+1: > I cannot build the documentation. It actually crashes python. I'm

[sage-devel] 31036 needs review

2021-01-23 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Hi, could someone please review https://trac.sagemath.org/ticket/31036 I appreciate `sage --fixdoctests` and it made my life easier in the past. However, it does not work for multiline tests or testing error raising. This ticket is an attempt to fix this. And it's not a big ticket: 1 files chan

Re: [sage-devel] How to review a ticket?

2021-01-19 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
You need to login somehow. You have previously logged in with your github account `gh-bollu`. This works as well. After you log in, the edit options will appear. Of course you can also create a sage account, which also lets you edit https://wiki.sagemath.org/ and maybe you prefer not to link yo

[sage-devel] Re: How to compile sparse graph backend with c++

2021-01-12 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
I tried to compile more things with C++ and things just got worse. But maybe I did it wrong, that is also possible. Anyway, using sets as an alternative wasn't really sucessfull. It is a bit slower. Turns out the data structure is pretty good. David Coudert schrieb am Dienstag, 12. Januar 2021

[sage-devel] Re: How to compile sparse graph backend with c++

2021-01-11 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Super weird. I think it is a cython bug, but I'm not sure. The problem seems to be that the parent class has the same method. I need to enforce the correct method by self.foo(u) -> SparseGraph.foo(self, u) This seems to work (compiles and the doctests pass). jonatha...@googlemail.com schrieb a

[sage-devel] How to compile sparse graph backend with c++

2021-01-08 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Prepending # distutils: language = c++ to src/sage/graphs/base/sparse_graph.pyx makes my compilation crash. Does anyone know, how to fix it. I'm on develop and I'm getting the following compilation error. Does anyone know how to resolve this? Thank you. Jonathan (I want to see whether cpp set

Re: [sage-devel] Jupyter notebook crashes with multiusers

2020-11-13 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
13, 2020 at 11:55 AM 'jonatha...@googlemail.com' via > sage-devel wrote: > > > > Thank you François. > > > > I was doubtful that your answer would help, but it did finally after > some googling. > > > > I had to run > > > >

Re: [sage-devel] Jupyter notebook crashes with multiusers

2020-11-13 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
pen_Args_l+0x22b)[0x7fa87edda23b] > /srv/public/shared/DGI-sage/local/lib/python3.8/site-packages/matplotlib/ > ft2font.cpython-38-x86_64-linux-gnu.so(+0xd35f)[0x7fa87eddc35f] > > > I’d say it is trying to open a font file to which it has no right. > > François > > >

Re: [sage-devel] Obtain a lattice basis of a linear rational subspace

2020-11-11 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
> > [10 0 0 0 1] > [-1 1 0 0 0] > [-1 0 1 0 0] > [-1 0 0 1 0] > > David > > On Wed, Nov 11, 2020 at 7:19 AM 'jonatha...@googlemail.com' via > sage-devel wrote: > >> >> Given rational v

[sage-devel] Obtain a lattice basis of a linear rational subspace

2020-11-11 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Given rational vectors and consider their linear span. How do I obtain a basis of the ZZ^d-submodule (a basis for the contained lattice points). E.g. given [ (1, 0, 0, 0, 1/10), (0, 1, 0, 0, 1/10), (0, 0, 1, 0, 1/10), (0, 0, 0, 1, 1/10) ] How do I obtain this or something equivalent: [[1, 0,

Re: [sage-devel] Error installing sage on ubuntu focal

2020-10-26 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
trap-clean > ./bootstrap > ./configure > make > > > > > > > On Mon, Oct 26, 2020 at 9:16 AM 'jonatha...@googlemail.com' via > sage-devel wrote: > >> I freshly updated to ubuntu focal and wanted to remake sage and failed. >> See attached log. >&

[sage-devel] Error installing sage on ubuntu focal

2020-10-26 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
I freshly updated to ubuntu focal and wanted to remake sage and failed. See attached log. I ran `make dist-clean` and `make clean` and `./configure` various times and I have no clue why it tries to uninstall gmpy and why it fails. The claim is that it could not find python, but I'm using system

[sage-devel] Trouble creating a branch on trac

2020-10-09 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
We are not able to create a branch on https://trac.sagemath.org/ticket/30402: $ git push --set-upstream trac public/30402 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "de_DE.UTF-8", LC_ADDRESS = "d

Re: [sage-devel] Changes to bitset.pxi

2020-09-22 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Thanks. I still can only guess, if people care about large bitsets like this. I can try to make it available with the same syntax and then however likes it, can just use it. Sébastien Labbé schrieb am Dienstag, 22. September 2020 um 16:07:15 UTC+2: > Am I the only one using larger bitsets? >>

Re: [sage-devel] Changes to bitset.pxi

2020-09-22 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
emtation >>>> > detail. With this ticket I can pretty much tell the face-structure >>>> that it >>>> > consists of a roaring bitmap of atoms and coatoms and adapt a few >>>> basic >>>> > functions to the name scheme of that (I also need

Re: [sage-devel] Changes to bitset.pxi

2020-09-18 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
;> About 2: the C library CRoaring seems a good match but does not >>> seem to contain any assembler or advanced CPU instructions. Does it? >>> It is hard to figure out how well is implemented and maintained the >>> Python interface PyRoaringBitMap. >>> >>&g

Re: [sage-devel] Changes to bitset.pxi

2020-09-17 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
ng seems a good match but does not >> seem to contain any assembler or advanced CPU instructions. Does it? >> It is hard to figure out how well is implemented and maintained the >> Python interface PyRoaringBitMap. >> >> Le 16/09/2020 à 17:18, 'jonatha...@goo

Re: [sage-devel] Changes to bitset.pxi

2020-09-17 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
maintained the > Python interface PyRoaringBitMap. > > Le 16/09/2020 à 17:18, 'jonatha...@googlemail.com' via sage-devel a > écrit : > > Dear Vincent, thanks for your reply. > > > > To sum up my reply: Should I try to replace bitsets completely by >

Re: [sage-devel] Changes to bitset.pxi

2020-09-16 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
e bitsets. Sparse > could be implemented as sets via has tables or binary trees, > etc > > [1] > > https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html?highlight=pxi#cython-file-types > > Le 16/09/2020 à 11:59, 'jonatha...@googlemail.com' v

[sage-devel] Changes to bitset.pxi

2020-09-16 Thread &#x27;jonatha...@googlemail.com&#x27; via sage-devel
Dear all, I want to redesign the bitset structure of combinatorial polyhedron and move it to `data_structures/bitset.pxi`. This includes some changes to bitset.pxi. Please comment, whether the proposed design changes on the ticket are ok. Mostly they are the following: 1. Define most of the fun