Re: [sage-devel] Strange bug (or "feature") in relative number fields

2013-02-19 Thread Jeroen Demeyer
On 2013-02-19 20:54, David Roe wrote: > I'm fairly sure the problem is that the defining polynomial for the > relative extension is not monic. One solution would be to use an > equivalent monic polynomial and keep track of a simple transformation > allowing one to translate between the internal re

Re: [sage-devel] Strange bug (or "feature") in relative number fields

2013-02-19 Thread David Roe
I'm fairly sure the problem is that the defining polynomial for the relative extension is not monic. One solution would be to use an equivalent monic polynomial and keep track of a simple transformation allowing one to translate between the internal representation of elements on the one hand and p

Re: [sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread Florent Hivert
Dear All, > * A parallel build (using the usual MAKE="make -jN") can speed up the > docbuilding time. Note that the speed-up factor is closer to N/2 than to > N because two passes are needed now. This is not quite true. I don't have precise timing. Put most of the time of the first pass is

Re: [sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread Dan Drake
On Tue, 19 Feb 2013 at 12:13PM +0100, Jeroen Demeyer wrote: > * A parallel build (using the usual MAKE="make -jN") can speed up the > docbuilding time. Note that the speed-up factor is closer to N/2 than to > N because two passes are needed now. I'll take O(N) over O(1) any day! ...and with many

[sage-devel] Re: Improper use of UniqueRepresentation

2013-02-19 Thread Simon King
Hi Nils, On 2013-02-19, Nils Bruin wrote: > __richcmp__ is not a special method for python classes. You need to > implement __eq__ etc for those. I'd hope (and this example > corroborates it) that cython decided to use the same semantics for non- > cdef classes. Your example wouldn't change if yo

[sage-devel] Strange bug (or "feature") in relative number fields

2013-02-19 Thread Charles Bouillaguet
Hi all, Adrien Poteaux reported this bug (http://trac.sagemath.org/sage_trac/ticket/14146) to me. When you create a number field (possibly on top of another number field), what are the restrictions on the defining polynomial ? Currently, strange PARI error occur, that are quite cryptic. Appare

[sage-devel] Re: Improper use of UniqueRepresentation

2013-02-19 Thread Nils Bruin
On Feb 19, 9:38 am, Simon King wrote: > sage: cython(""" > class Bla: >     def __hash__(self): >         return 2 >     def __cmp__(self, other): >         print "cmp" >         return 0 >     def __richcmp__(self, other, m): >         print "calling richcmp" >         if m==2: >             retu

[sage-devel] Re: Improper use of UniqueRepresentation

2013-02-19 Thread Simon King
Hi Nils, On 2013-02-19, Nils Bruin wrote: > On Feb 19, 12:58 am, Simon King wrote: > >> Here I am not sure: Must hash be compatible with cmp or with rich >> comparison? >> Hence, should I overload __cmp__ as well? > > If you look at the C-API rules, inheritance of tp_compare, > tp_richcompare an

[sage-devel] Re: Improper use of UniqueRepresentation

2013-02-19 Thread Nils Bruin
On Feb 19, 12:58 am, Simon King wrote: > Here I am not sure: Must hash be compatible with cmp or with rich > comparison? Neither :-). It's up to the class writer to decide if they want something usable :-) > Hence, should I overload __cmp__ as well? If you look at the C-API rules, inheritance

Re: [sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread kcrisman
On Tuesday, February 19, 2013 8:15:43 AM UTC-5, Volker Braun wrote: > > On Tuesday, February 19, 2013 11:19:05 AM UTC, David Roe wrote: > >> Sounds fantastic! For those of us running with only one core, will these >> two processes increase the buildtime by a factor of two? >> > > Not quite sinc

[sage-devel] Interesting article about LibreOffice

2013-02-19 Thread kcrisman
This link was posted earlier by Robert Dodier on the Maxima list, and interesting food for thought. I don't necessarily agree with everything on here (such as the git emphasis! since most of our new developers are mathematicians, not programmers, by trade), but I think most folks here would ag

[sage-devel] Re: New parallel docbuilder (#6495) ready

2013-02-19 Thread Jean-Pierre Flori
On Tuesday, February 19, 2013 12:13:25 PM UTC+1, Jeroen Demeyer wrote: > > Sage-5.8.beta0 will contain a new driver for the building of the > documentation. This has consequences for all Sage developers: > > * The documentation is built in two passes, similar to how you usually > need to run (l

Re: [sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread Volker Braun
On Tuesday, February 19, 2013 11:19:05 AM UTC, David Roe wrote: > Sounds fantastic! For those of us running with only one core, will these > two processes increase the buildtime by a factor of two? > Not quite since no html is generated on the first pass. Though I doubt that there are many sin

Re: [sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread David Roe
Sounds fantastic! For those of us running with only one core, will these two processes increase the buildtime by a factor of two? Or is there a single process option similar to the old system? David On Tue, Feb 19, 2013 at 4:13 AM, Jeroen Demeyer wrote: > Sage-5.8.beta0 will contain a new driv

[sage-devel] New parallel docbuilder (#6495) ready

2013-02-19 Thread Jeroen Demeyer
Sage-5.8.beta0 will contain a new driver for the building of the documentation. This has consequences for all Sage developers: * The documentation is built in two passes, similar to how you usually need to run (la)tex twice to get all references correct. * Links are possible from other documents

[sage-devel] Re: Improper use of UniqueRepresentation

2013-02-19 Thread Simon King
Hi all, On 2013-02-17, Simon King wrote: > OK. That's indeed an argument to make it possible to override > stuff---users are supposed to know what they do. I just posted a new patch version at #14054. It is more pythonic in the sense that it allows for overloading hash and rich comparison. One

[sage-devel] Re: Spanish speaking reviewer needed

2013-02-19 Thread Javier López Peña
I'll give it a look Cheers, J On Tuesday, February 19, 2013 12:40:16 AM UTC, Keshav Kini wrote: > > Hi, > > If there are any Spanish speaking Sage devs who have a little time, > could you please review this Spanish translation of the sagenb UI? > > https://github.com/sagemath/sagenb/pull/133