[sage-combinat-devel] Code duplication versus speed

2011-04-19 Thread Simon King
Hi! Due to #9944, #9138 and #5, it will hopefully soon be possible to move many methods from sage.rings.ring.Ring to sage.categories.rings.Rings.ParentMethods, including cached methods. The benefit of moving the code is that a MatrixSpace, which sometimes is a ring and sometimes isn't, could

Re: [sage-combinat-devel] Big cleanup in partitions and permutations

2011-04-19 Thread Nicolas M. Thiery
On Mon, Apr 11, 2011 at 05:59:25PM +0200, Florent hivert wrote: In the forthcoming days, taking change of my vacation and the sage-days 30, I'll start a big cleanup in Partition and Permutation. The goals of this cleanup are the following: - use a much more compact and memory efficient

[sage-devel] Re: Timings of devel/sage/sage/sandpiles/sandpile.py

2011-04-19 Thread Simon King
Hi Jeroen, On 18 Apr., 21:54, Jeroen Demeyer jdeme...@cage.ugent.be wrote: You don't happen to have more information, i.e. which patch, which kernel? Rob already gave an answer: http://groups.google.com/group/linux.kernel/browse_thread/thread/5a2b00e35b0864a7 The patch cited there is: ---

Re: [sage-devel] buildbot applying to 4.6.2

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 7:38 PM, Robert Miller r...@rlmiller.org wrote: I'm not sure exactly how the buildbot works, but it seems to be automatically testing new patches against sage-4.6.2, even though the latest (dev) sage is 4.7.alpha4. Seems we've moved away from the release early, release

[sage-devel] Re: default __hash__

2011-04-19 Thread Simon King
Hi William, On 19 Apr., 07:24, William Stein wst...@gmail.com wrote: So the main issue I pointed out above, namely that SageObject has a __hash__ defined, is really a non-issue, since that's the standard default convention in Python anyways.   The real issue to consider is whether using the

Re: [sage-devel] buildbot applying to 4.6.2

2011-04-19 Thread David Kirkby
On 19 April 2011 07:40, Robert Bradshaw rober...@math.washington.edu wrote: Seems we've moved away from the release early, release often strategy and now alphas are essentially the new release (except they are allowed to have doctest failures, etc.) I don't think that's a fair comment. We

Re: [sage-devel] State of the Patchbot

2011-04-19 Thread Robert Bradshaw
On Mon, Apr 18, 2011 at 5:52 PM, Rob Beezer goo...@beezer.cotse.net wrote: First, the patchbot is an excellent idea and will be a very useful tool.  Thanks, Robert, for your work on it. Thank you. I haven't gotten to do much with it lately, but hope to get back on it (in particular, get it

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 1:54 AM, Nathann Cohen nathann.co...@gmail.com wrote: Manually run sage -cython -a path/to/devel/sage/... and it will set up the proper include paths and run cython to make the .html (and .c) files. Yea !! Thank you !! I don't remember if this made it into

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Nathann Cohen
will be out, but we just merged generators). When you say generators Does it mean that the promised yield ? O_O Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Robert Bradshaw
On Tue, Apr 19, 2011 at 12:36 AM, Nathann Cohen nathann.co...@gmail.com wrote: will be out, but we just merged generators). When you say generators Does it mean that the promised yield ? Yep, that's the magic keywords. -- To post to this group, send an email to

[sage-devel] Re: Automatically annotate when compiling Cython file

2011-04-19 Thread Simon King
On 19 Apr., 09:37, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Apr 19, 2011 at 12:36 AM, Nathann Cohen nathann.co...@gmail.com wrote: will be out, but we just merged generators). When you say generators Does it mean that the promised yield ? Yep, that's the magic

Re: [sage-devel] Automatically annotate when compiling Cython file

2011-04-19 Thread Nathann Cohen
Yep, that's the magic keywords. Oh my O_O ** looking with a nasty smile as these graph files that are going to be cut in two just because of this yield ** Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

Re: [sage-devel] default __hash__

2011-04-19 Thread Robert Bradshaw
On Mon, Apr 18, 2011 at 10:24 PM, William Stein wst...@gmail.com wrote: On Mon, Apr 18, 2011 at 9:09 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, Apr 18, 2011 at 4:13 PM, William Stein wst...@gmail.com wrote: Hi, I was just explaining to a student in my Sage course how I

Re: [sage-devel] Re: build timing

2011-04-19 Thread Robert Bradshaw
On Sun, Apr 17, 2011 at 10:33 AM, John H Palmieri jhpalmier...@gmail.com wrote: On Sunday, April 17, 2011 3:58:46 AM UTC-7, Samuel Lelievre wrote: Hello, Is it possible to get a timing indication at the end of make, similar to the one at the end of make ptestlong, which looks something

[sage-devel] Fwd: sage-4.7.alpha4 segfaults on MacOSX

2011-04-19 Thread Dima Pasechnik
forwarding here, in case someone has seen this... -- Forwarded message -- From: Dima Pasechnik dimp...@gmail.com Date: Apr 19, 12:18 am Subject: sage-4.7.alpha4 released To: sage-release on MacOSX (x86 64bits) 10.6.7 Sage built with gcc from Xcode 4 segfaults at startup. (and

[sage-devel] Re: Sage videos on Google video

2011-04-19 Thread Keshav Kini
Archiveteam is working on this ( http://archiveteam.org/?title=Google_Video ). Apparently they have 100+ TB of space set aside by the Internet Archive ( http://archive.org/ ). Hopefully they'll be able to save everything anyway. -Keshav Join us in #sagemath on irc.freenode.net ! -- To

[sage-devel] Re: possible memory leak situation with factoring

2011-04-19 Thread Keshav Kini
Interesting. Why can't this be done in memory? Are the files involved huge enough that they won't necessarily fit in memory? And if so, shouldn't this be more widely known, so that people don't fill up their disks? :) -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this

[sage-devel] Re: [solution?] Re: 4.6.2 build on Ubuntu 11.04 alpha 3 fails on crypt.so

2011-04-19 Thread pipedream
Sorry, that patch is not right. I believe the original was #crypt cryptmodule.c #-lcrypt # crypt(3); needs -lcrypt on some systems I had already removed the second # when I made that patch. Jan On Apr 18, 12:21 pm, Jan Groenewald j...@aims.ac.za wrote: Hi python2.6_2.6.6-6ubuntu7.diff.gz

[sage-devel] Re: [solution?] Re: 4.6.2 build on Ubuntu 11.04 alpha 3 fails on crypt.so

2011-04-19 Thread pipedream
Sorry, that patch is not right. I believe the original was #crypt cryptmodule.c #-lcrypt # crypt(3); needs -lcrypt on some systems I had already removed the second # when I made that patch. Jan On Apr 18, 12:21 pm, Jan Groenewald j...@aims.ac.za wrote: Hi python2.6_2.6.6-6ubuntu7.diff.gz

[sage-devel] Re: Windows port status

2011-04-19 Thread Keshav Kini
Perhaps a bit off topic, but is there any possibility of Sage ever being ported to Windows natively, i.e. without cygwin dependencies? We have a couple thousand lines worth of shell scripts currently underpinning Sage, and we'd probably have to convert those to Python or something to make them

[sage-devel] Indented code in terminal

2011-04-19 Thread Fredrik Johansson
Hi all, Maybe it's just me, but I find it terribly annoying that one cannot paste code fragments containing indentation in a Sage terminal session, as one can with the ordinary Python interpreter. Simple example: def f(x): if x == 1: return 2 return 1 def f(x): ... if x ==

Re: [sage-devel] Indented code in terminal

2011-04-19 Thread Jeroen Demeyer
On 2011-04-19 14:40, Fredrik Johansson wrote: Hi all, Maybe it's just me, but I find it terribly annoying that one cannot paste code fragments containing indentation in a Sage terminal session, as one can with the ordinary Python interpreter. Simple example: def f(x): if x == 1:

Re: [sage-devel] Re: Windows port status

2011-04-19 Thread David Kirkby
On 19 April 2011 12:27, Keshav Kini keshav.k...@gmail.com wrote: Perhaps a bit off topic, but is there any possibility of Sage ever being ported to Windows natively, i.e. without cygwin dependencies? We have a couple thousand lines worth of shell scripts currently underpinning Sage, and we'd

[sage-devel] magma interface broken for number fields?

2011-04-19 Thread Marco Streng
Hi all, Is it just me, or is magma(K) broken for number fields K? The following example is in number_field.py (Sage 4.6.2): === sage: R.t = QQ[] sage: K.a = NumberField(t^2 + 1) sage: K._magma_init_(magma)# optional - magma

Re: [sage-devel] magma interface broken for number fields?

2011-04-19 Thread John Cremona
There's a ticket fixing this at #7870, merged in 4.7.alpha4. Which version were you using? On your last point: not enough! John On Tue, Apr 19, 2011 at 2:44 PM, Marco Streng marco.str...@gmail.com wrote: Hi all, Is it just me, or is magma(K) broken for number fields K? The following

[sage-devel] Re: Indented code in terminal

2011-04-19 Thread Kiran Kedlaya
I just tried this in sage -ipython (to get directly to the ipython interpreter) and got a similar error, so I'd call this an ipython issue. And +1 for it being a bug. Kiran On Apr 19, 5:50 am, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2011-04-19 14:40, Fredrik Johansson wrote: Hi all,

[sage-devel] nondescript tracebacks with load and attach

2011-04-19 Thread Marco Streng
Hi sage-devel, When debuggin code that is loaded into or attached to a Sage session, the tracebacks are not very informative: they refer to string instead of to the file name, and give no line numbers or code snippets. This makes it hard to find out where the error is. Can this be changed

[sage-devel] sage on Solaris 10

2011-04-19 Thread Rob McMahon
I think last time this came from my work account, rather than my google account, and got rejected on that basis. I'll try again I've just installed sage on Solaris 10 SPARC, which has taken me some time and effort. I'd like to give some feedback, excerpts from install.log etc., for others

[sage-devel] Re: Automatically annotate when compiling Cython file

2011-04-19 Thread kcrisman
On Apr 19, 3:40 am, Simon King simon.k...@uni-jena.de wrote: On 19 Apr., 09:37, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Apr 19, 2011 at 12:36 AM, Nathann Cohen nathann.co...@gmail.com wrote: will be out, but we just merged generators). When you say

[sage-devel] Re: magma interface broken for number fields?

2011-04-19 Thread Marco Streng
On Apr 19, 2:47 pm, John Cremona john.crem...@gmail.com wrote: There's a ticket fixing this at #7870, merged in 4.7.alpha4. Thanks, that ticket looks good. Which version were you using? Sage 4.6.2, Magma V2.16-7 -- To post to this group, send an email to sage-devel@googlegroups.com To

[sage-devel] Re: Indented code in terminal

2011-04-19 Thread pipedream
sage: %cpaste Pasting code; enter '--' alone on the line to stop. :def f(x): :if x == 1: :return 2 :return 1 :-- sage: f(1) 2 sage: cpaste? String Form:bound method InteractiveShell.magic_cpaste of IPython.iplib.InteractiveShell object at 0x20c5f10 Namespace: IPython

[sage-devel] Re: Indented code in terminal

2011-04-19 Thread Marco Streng
On Apr 19, 3:18 pm, pipedream jan.groenew...@gmail.com wrote: sage: %cpaste Pasting code; enter '--' alone on the line to stop. :def f(x): :    if x == 1: :        return 2 :    return 1 :-- sage: f(1) 2 Thanks! -- To post to this group, send an email to sage-devel@googlegroups.com

[sage-devel] Re: sage on Solaris 10

2011-04-19 Thread Dima Pasechnik
this place is good enough for these purposes... On Apr 19, 10:11 pm, Rob McMahon robmcmaho...@gmail.com wrote: I think last time this came from my work account, rather than my google account, and got rejected on that basis. I'll try again I've just installed sage on Solaris 10 SPARC, which

[sage-devel] Re: Windows port status

2011-04-19 Thread Dima Pasechnik
On Apr 19, 7:27 pm, Keshav Kini keshav.k...@gmail.com wrote: Perhaps a bit off topic, but is there any possibility of Sage ever being ported to Windows natively, i.e. without cygwin dependencies? We have a couple thousand lines worth of shell scripts currently underpinning Sage, and we'd

[sage-devel] Re: possible memory leak situation with factoring

2011-04-19 Thread kcrisman
Thanks for the info, Bill - good to know. - try the same using = sage-4.7.alpha1 -- | Sage Version 4.7.alpha3, Release Date: 2011-03-31 | | Type notebook() for the GUI, and license() for information.|

[sage-devel] Re: Indented code in terminal

2011-04-19 Thread John H Palmieri
On Tuesday, April 19, 2011 5:40:26 AM UTC-7, Fredrik Johansson wrote: Hi all, Maybe it's just me, but I find it terribly annoying that one cannot paste code fragments containing indentation in a Sage terminal session, as one can with the ordinary Python interpreter. Simple example: def

[sage-devel] Re: sage on Solaris 10

2011-04-19 Thread John H Palmieri
On Tuesday, April 19, 2011 7:25:41 AM UTC-7, Dima Pasechnik wrote: this place is good enough for these purposes... On Apr 19, 10:11 pm, Rob McMahon robmcm...@gmail.com wrote: I think last time this came from my work account, rather than my google account, and got rejected on that

Re: [sage-devel] Re: Indented code in terminal

2011-04-19 Thread John Cremona
John, that is an absolutely brilliant feature I had no idea existed. It should be better known -- thanks! John On Tue, Apr 19, 2011 at 3:47 PM, John H Palmieri jhpalmier...@gmail.com wrote: This is not a direct answer, but I would suggest setting the environment variable EDITOR to be

[sage-devel] Re: Windows port status

2011-04-19 Thread Jason Grout
On 4/19/11 9:32 AM, Dima Pasechnik wrote: Similar tasks for Singular, Maxima, etc etc... Maxima appears to already support Windows, at least in some shape or form: http://maxima.sourceforge.net/download.html Jason -- To post to this group, send an email to sage-devel@googlegroups.com To

Re: [sage-devel] Re: Indented code in terminal

2011-04-19 Thread John H Palmieri
On Tuesday, April 19, 2011 8:57:34 AM UTC-7, John Cremona wrote: John, that is an absolutely brilliant feature I had no idea existed. It should be better known -- thanks! I discovered it completely by accident. See http://trac.sagemath.org/sage_trac/ticket/11219 for some advertising for

Re: [sage-devel] default __hash__

2011-04-19 Thread Gonzalo Tornaria
On Mon, Apr 18, 2011 at 10:24 PM, William Stein wst...@gmail.com wrote: ... I think it is worth revisiting this design decision.     I did a little poking, and in Python and Cython, a class by default has a hash, which is the location in memory of the object, e.g., Only so long as the class

[sage-devel] Re: Indented code in terminal

2011-04-19 Thread kcrisman
On Apr 19, 11:57 am, John Cremona john.crem...@gmail.com wrote: John, that is an absolutely brilliant feature I had no idea existed. It should be better known -- thanks! John On Tue, Apr 19, 2011 at 3:47 PM, John H Palmieri jhpalmier...@gmail.com wrote: This is not a direct

Re: [sage-devel] Re: Indented code in terminal

2011-04-19 Thread John Cremona
I have given #11219 a positive review, but also note on that ticket that logstart/load do not work as advertised in that section of the manual. John On Tue, Apr 19, 2011 at 8:34 PM, kcrisman kcris...@gmail.com wrote: On Apr 19, 11:57 am, John Cremona john.crem...@gmail.com wrote: John, that

[sage-devel] R_HOME_DIR is not updated when Sage moves.

2011-04-19 Thread Dr. David Kirkby
It's been point out to me by someone who built Sage on OpenIndiana (a fork of OpenSolaris), that the file local/bin/R has R_HOME_DIR defined: R_HOME_DIR=/export/home/apostolo/sage-4.6.2/local/lib/R I assumed that when Sage was moved, this would be updated. But it is not. After building Sage

[sage-devel] Re: Windows port status

2011-04-19 Thread Georg S. Weber
On 19 Apr., 13:27, Keshav Kini keshav.k...@gmail.com wrote: Perhaps a bit off topic, but is there any possibility of Sage ever being ported to Windows natively, i.e. without cygwin dependencies? We have a couple thousand lines worth of shell scripts currently underpinning Sage, and we'd

Re: [sage-devel] Error message cannot access ...sage-main

2011-04-19 Thread Justin C. Walker
On Apr 18, 2011, at 21:46 , David Kirkby wrote: I've noticed the following error message in one of the log files, which comes from sage-4.7.alpha4.spkg sage-4.7.alpha4.log:mv: cannot access /export/home/drkirkby/sage_src/sage-4.7.alpha4/devel/sage-main I don;t know if this is a new bug

Re: [sage-devel] Timings of devel/sage/sage/sandpiles/sandpile.py

2011-04-19 Thread Justin C. Walker
On Apr 18, 2011, at 09:18 , Jeroen Demeyer wrote: I ran a couple of tests with Mac OS X, 10.6.7, on a Dual 6-Core Xeon processor (2.93GHz) with 24GBytes of RAM. Using a full build of sage-4.7.alpha4, after a couple of tests to get Sage hot, ./sage -t -long

Re: [sage-devel] Timings of devel/sage/sage/sandpiles/sandpile.py

2011-04-19 Thread Justin C. Walker
On Apr 18, 2011, at 09:35 , David Kirkby wrote: On 18 April 2011 17:18, Jeroen Demeyer jdeme...@cage.ugent.be wrote: Hello all, For all those whose installed sage-4.7.alpha2 or later (on a reasonably fast machine): please provide the timing of $ ./sage -t -long

[sage-devel] Units

2011-04-19 Thread Simon
I'm not sure that I understand the logic in the units package. http://www.sagemath.org/doc/reference/sage/symbolic/units.html http://www.sagemath.org/doc/reference/sage/symbolic/units.htmlThe temperature units have their own convert_temperature() function while every other unit is handled

[sage-devel] Re: R_HOME_DIR is not updated when Sage moves.

2011-04-19 Thread kcrisman
On Apr 19, 4:23 pm, Dr. David Kirkby david.kir...@onetel.net wrote: It's been point out to me by someone who built Sage on OpenIndiana (a fork of OpenSolaris), that the file local/bin/R has R_HOME_DIR defined: R_HOME_DIR=/export/home/apostolo/sage-4.6.2/local/lib/R I assumed that when Sage

[sage-devel] p_Delete in libsingular

2011-04-19 Thread Francois Bissey
While working on getting sage to work with python-2.7.1 I encountered a segfault in sage which seems to come from libsingular. In fact the backtrace points to line 127 of kernel/ideals.cc in the singular source code: Program received signal SIGSEGV, Segmentation fault. id_Delete (h=0x509b078,

Re: [sage-devel] Units

2011-04-19 Thread Robert Bradshaw
On Tue, Apr 19, 2011 at 4:39 PM, Simon simonjty...@gmail.com wrote: I'm not sure that I understand the logic in the units package. http://www.sagemath.org/doc/reference/sage/symbolic/units.html The temperature units have their own convert_temperature() function while every other unit is

Re: [sage-devel] Units

2011-04-19 Thread Simon
Hi Robert. Sorry about that - I must have misplaced my brain this morning. Yes - I guess I was implicitly thinking about (delta temperature). But then again most other units are implicitly differences - they don't refer to any absolute origin in space, time or any particular inertial frame

Re: [sage-devel] Re: Windows port status

2011-04-19 Thread William Stein
On Tue, Apr 19, 2011 at 1:36 PM, Georg S. Weber georgswe...@googlemail.com wrote: On 19 Apr., 13:27, Keshav Kini keshav.k...@gmail.com wrote: Perhaps a bit off topic, but is there any possibility of Sage ever being ported to Windows natively, i.e. without cygwin dependencies? We have a

[sage-devel] Octave talk for Sage Days 30

2011-04-19 Thread Jordi Gutiérrez Hermoso
Barring any unfortunate events, I will most likely be attending Sage Days 30 in Nova Scotia in less than a couple of weeks. Given my involvement with Octave, I was considering giving a talk about it, and I wanted to get a feel for how Sage users relate to Octave and what possible topics could be

[sage-devel] Re: Windows port status

2011-04-19 Thread Volker Braun
If you are fine with using a virtual machine then just punch the notebook port through. The only thing running native would be the browser rendering the worksheet. Of course you need admin rights to install a virtual machine, and there can be only one hypervisor on the system. So you'll never