[sage-devel] Re: Possible bug with sys.path interaction?

2008-06-09 Thread mabshoff
On Jun 8, 1:57 pm, Mats [EMAIL PROTECTED] wrote: Hello, Hi, I just installed a package using easy_install. I can import said package in a python interactive shell, but I cannot import the package in sage. Closer inspection reveals that: import sys print sys.path # -- FYI, sys.path is

[sage-devel] Re: Build for optimal performance, or compromise to run on any system?

2008-06-09 Thread mabshoff
On Jun 8, 10:59 pm, Dr. David Kirkby [EMAIL PROTECTED] wrote: Hi Dave, Is there a general policy on whether compiler flags should give the best performance on a particular machine, or should the binaries work on any similar system? I can see advantages in each. Right now we pick up SSE2

[sage-devel] Re: Summary of issues on Solaris 10 (SPARC) for Sage 3.0.3.alpha1

2008-06-09 Thread Dr. David Kirkby
On Jun 8, 11:05 pm, Alexander Dreyer [EMAIL PROTECTED] wrote: Hello, 3) Next failure is polybori-0.3.1.p3 Michael suggested the change: #!bin/sh - #!/usr/bin/env bash but that does NOT work for me. Numerous errors still appear but they are in C++ code and I don't know C++. I hope

[sage-devel] Re: Build for optimal performance, or compromise to run on any system?

2008-06-09 Thread Dr. David Kirkby
On Jun 9, 9:09 am, mabshoff [EMAIL PROTECTED] wrote: On Jun 8, 10:59 pm, Dr. David Kirkby [EMAIL PROTECTED] wrote: Hi Dave, Is there a general policy on whether compiler flags should give the best performance on a particular machine, or should the binaries work on any similar system? I

[sage-devel] Compilation BUG for sage packages on Ubuntu 8.04 i386

2008-06-09 Thread IzI
I would prefer to submit the bug as a Trac issue, but was not able to subscribe. Steps to reproduce the problem: 1.) download and install SAGE to a 32bit (P4) Ubuntu 8.04 2.) wget http://www.sagemath.org/packages/experimental/PIL-1.1.5.spkg 3.) ./sage -i PIL-1.1.5.spkg 4.) check the first

[sage-devel] Fwd: [sympy] Re: sympify and matrices

2008-06-09 Thread Ondrej Certik
CCing to sage-devel, could be interesting for Gary's symbolic code speed comparisons. Ondrej On Jun 9, 9:18 am, Ondrej Certik [EMAIL PROTECTED] wrote: On Mon, Jun 9, 2008 at 10:40 AM, Pearu Peterson [EMAIL PROTECTED] wrote: Hi, Just a quick note that could be relevant to the

[sage-devel] Re: Possible bug with sys.path interaction?

2008-06-09 Thread Mats
I tried to do sudo easy_install feedparser, which worked. I can import feedparser from the python shell, but not from sage unless I explicitly add it to my path. I also did exactly as you did and compared the paths; as per request: sage: import sys sage: sys.path

[sage-devel] Re: Possible bug with sys.path interaction?

2008-06-09 Thread William Stein
On Mon, Jun 9, 2008 at 8:13 AM, Mats [EMAIL PROTECTED] wrote: I tried to do sudo easy_install feedparser, which worked. I can import feedparser from the python shell, but not from sage unless I explicitly add it to my path. You might want to try: (1) Download feedparser from here:

[sage-devel] Re: Possible bug with sys.path interaction?

2008-06-09 Thread William Stein
On Mon, Jun 9, 2008 at 8:46 AM, William Stein [EMAIL PROTECTED] wrote: On Mon, Jun 9, 2008 at 8:13 AM, Mats [EMAIL PROTECTED] wrote: I tried to do sudo easy_install feedparser, which worked. I can import feedparser from the python shell, but not from sage unless I explicitly add it to my

[sage-devel] lite.sagemath.org

2008-06-09 Thread William Stein
Hi, So we're going to switch lite.sagemath.org to be the official sage website soon. Could you take a quick glance at it and see if there is anything that is *horribly totally wrong* in your humble opinion. If not, we'll be good to go. I'm not trying to solicit little nitpicks with this email,

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread David Joyner
Has anyone yet tested to see how well the new site mirrors? I haven't looked at the source html but just just ask since I think 10 or so non-functioning mirrors would be a bad thing. On Mon, Jun 9, 2008 at 12:25 PM, William Stein [EMAIL PROTECTED] wrote: Hi, So we're going to switch

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread mabshoff
On Jun 9, 9:42 am, David Joyner [EMAIL PROTECTED] wrote: Has anyone yet tested to see how well the new site mirrors? I haven't looked at the source html but just just ask since I think 10 or so non-functioning mirrors would be a bad thing. Hi, I think this is a definite issue since it

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread John Cremona
On page http://lite.sagemath.org/development.html at the bottom it looks to me as if the meter diagram is saying that the quality of Sage is 51.5%. I know that this page is for developers but if more casual enquirers look here they might get the impression that only 51.5% of the code is tested.

[sage-devel] Re: Possible bug with sys.path interaction?

2008-06-09 Thread mabshoff
I tried to do sudo easy_install feedparser, which worked. I can import feedparser from the python shell, but not from sage unless I explicitly add it to my path. As sys.path shows by sudoing you are installing into the system wide python. As William has pointed out that is not the way to

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread Nick Alexander
On 9-Jun-08, at 9:25 AM, William Stein wrote: Hi, So we're going to switch lite.sagemath.org to be the official sage website soon. Could you take a quick glance at it and see if there is anything that is *horribly totally wrong* in your humble opinion. Do broken links count? From

[sage-devel] Re: Compilation BUG for sage packages on Ubuntu 8.04 i386

2008-06-09 Thread mabshoff
On Jun 9, 2:43 am, IzI [EMAIL PROTECTED] wrote: Hi, I would prefer to submit the bug as a Trac issue, but was not able to subscribe. Steps to reproduce the problem: 1.) download and install SAGE to a 32bit (P4) Ubuntu 8.04 2.)

[sage-devel] pari slowness

2008-06-09 Thread David Harvey
Hi, This is on an 8-core 2GHz xeon running debian. (Tom Boothby's machine.) In a clean build of sage-3.0.2: sage: time x = bernoulli(4) CPU times: user 4.19 s, sys: 0.01 s, total: 4.20 s Wall time: 4.20 s sage: time x = bernoulli(4) CPU times: user 3.18 s, sys: 0.01 s, total: 3.18 s

[sage-devel] Re: Build for optimal performance, or compromise to run on any system?

2008-06-09 Thread mabshoff
On Jun 9, 1:45 am, Dr. David Kirkby [EMAIL PROTECTED] wrote: On Jun 9, 9:09 am, mabshoff [EMAIL PROTECTED] wrote: On Jun 8, 10:59 pm, Dr. David Kirkby [EMAIL PROTECTED] wrote: Hi Dave, Is there a general policy on whether compiler flags should give the best performance on a

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread Harald Schilly
On Jun 9, 6:42 pm, David Joyner [EMAIL PROTECTED] wrote: Has anyone yet tested to see how well the new site mirrors? I should comment out the mirror thing until it is populated everywhere. Then add only those which work! H --~--~-~--~~~---~--~~ To post to this

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread Timothy Clemans
Horribly wrong: each page's title seems to be the same because the part that is on each one is so long, Sage Open Source Mathematics Software. Please, pretty please put the name of the page first or shorten the Sage Open ... blah part to say Sage. I have 5 tabs open right now and I'm not sure

[sage-devel] Re: pari slowness

2008-06-09 Thread boothby
FYI, when I computed bernoulli(10^7+4), I did so from sage -gp -- not from the sage interface to gp. On Mon, 9 Jun 2008, David Harvey wrote: Hi, This is on an 8-core 2GHz xeon running debian. (Tom Boothby's machine.) In a clean build of sage-3.0.2: sage: time x = bernoulli(4) CPU

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread Harald Schilly
On Jun 9, 6:51 pm, John Cremona [EMAIL PROTECTED] wrote: On pagehttp://lite.sagemath.org/development.htmlat the bottom it looks to me as if the meter diagram is saying that the quality of Sage is 51.5%. ... This section is something that must be exapanded in the near future - e.g. I want

[sage-devel] Re: pari slowness

2008-06-09 Thread David Harvey
On Jun 9, 2008, at 1:19 PM, mabshoff wrote: On Jun 9, 10:05 am, David Harvey [EMAIL PROTECTED] wrote: Hi, Hi David, This is on an 8-core 2GHz xeon running debian. (Tom Boothby's machine.) In a clean build of sage-3.0.2: sage: time x = bernoulli(4) CPU times: user 4.19 s,

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread didier deshommes
Why are sage developers missing from http://lite.sagemath.org/development-ack.html ? Oh I see.. they're on the dev map. Could there be an explicit link to this page from http://lite.sagemath.org/development-ack.html ? On Mon, Jun 9, 2008 at 12:25 PM, William Stein [EMAIL PROTECTED] wrote: Hi,

[sage-devel] Re: coercing of sqrt(2)

2008-06-09 Thread Robert Bradshaw
On Jun 6, 2008, at 10:00 AM, John Cremona wrote: 2008/6/6 Nick Alexander [EMAIL PROTECTED]: This thread got slightly off topic to the original question though: where should sqrt(2) belong? Z[sqrt(2)], SR, or somewhere else? I always want my data to start as close to the initial object as

[sage-devel] Re: Summary of issues on Solaris 10 (SPARC) for Sage 3.0.3.alpha1

2008-06-09 Thread Dr. David Kirkby
On Jun 9, 9:23 am, Dr. David Kirkby [EMAIL PROTECTED] wrote: The R manual says R fails tests if built with gcc 4 (where 4.00 or 4.x is not specified) on Solaris x86. I will try a build on Solaris x86 as some time with both Forge and gcc, but not today. Dave The official source of R (ver

[sage-devel] Re: Build for optimal performance, or compromise to run on any system?

2008-06-09 Thread Dr. David Kirkby
On Jun 9, 6:15 pm, mabshoff [EMAIL PROTECTED] wrote: As is I tested R 2.6.1 on OSX, Linux and Solaris and the test suite failed on every platform I tested. You can draw your own conclusion what I called R afterwards. There is already a ticket for that and I hope that the 2.7 upgrade will fix

[sage-devel] Re: lite.sagemath.org

2008-06-09 Thread IzI
there is no link to Standard and Optional Packages http://www.sagemath.org/packages.html Iztok On Jun 9, 6:25 pm, William Stein [EMAIL PROTECTED] wrote: Hi, So we're going to switch lite.sagemath.org to be the official sage website soon.  Could you take a quick glance at it and see if

[sage-devel] Re: Compilation BUG for sage packages on Ubuntu 8.04 i386

2008-06-09 Thread IzI
I will post the log tomorrow (I used a borrowed PC with P4 and Ubuntu 8.04 for a trial installation), so I will try to write some other details today. The bug is not related to the PIL package, it was used only as an example for repeating the bug. I got the same error (limits.h line 122) while

[sage-devel] Re: pari slowness

2008-06-09 Thread Jonathan Bober
On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary from Sage directly with the timings from your self builid binary to eliminate the problem that libPari is involved here? If the gp binary in Sage is slower by a factor of three compared

[sage-devel] Re: pari slowness

2008-06-09 Thread David Harvey
On Jun 9, 2008, at 5:17 PM, Jonathan Bober wrote: On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary from Sage directly with the timings from your self builid binary to eliminate the problem that libPari is involved here? If the gp

[sage-devel] Re: pari slowness

2008-06-09 Thread Michael Abshoff
On Mon, Jun 9, 2008 at 2:27 PM, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:17 PM, Jonathan Bober wrote: On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary from Sage directly with the timings from your self

[sage-devel] Re: pari slowness

2008-06-09 Thread David Harvey
On Jun 9, 2008, at 5:35 PM, Michael Abshoff wrote: I wonder if we are just building GMP incorrectly. That bernfrac() routine should depend mainly on the speed of long integer multiplication and division. I am not a GP expert --- how does one generate large random integers in GP? I could try

[sage-devel] Re: pari slowness

2008-06-09 Thread William Stein
On Mon, Jun 9, 2008 at 2:43 PM, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:35 PM, Michael Abshoff wrote: I wonder if we are just building GMP incorrectly. That bernfrac() routine should depend mainly on the speed of long integer multiplication and division. I am not a GP

[sage-devel] Signal Handling

2008-06-09 Thread [EMAIL PROTECTED]
Hi, I have been revisiting some process control code in Knoboo, and realized how well Sage responds to SIG-INT compared to standard Python. It basically works too good... ;) Can somebody point me to the most relevant pieces of code/ documentation concerning signal handling in Sage so I can learn

[sage-devel] Re: pari slowness

2008-06-09 Thread Bill Hart
Doesn't gmp 4.2.1 build on cygwin? Do you happen to recall what the issues were, as it'll be a problem for mpir too (though I did manage one build on cygwin already). Bill. On 9 Jun, 22:58, William Stein [EMAIL PROTECTED] wrote: On Mon, Jun 9, 2008 at 2:43 PM, David Harvey [EMAIL PROTECTED]

[sage-devel] Re: pari slowness

2008-06-09 Thread mabshoff
Hi Bill, On Jun 9, 3:07 pm, Bill Hart [EMAIL PROTECTED] wrote: Doesn't gmp 4.2.1 build on cygwin? Do you happen to recall what the issues were, as it'll be a problem for mpir too (though I did manage one build on cygwin already). Bill. At some point after a recent Cygwin update gmp 4.2.1

[sage-devel] Re: pari slowness

2008-06-09 Thread David Harvey
On Jun 9, 2008, at 5:17 PM, Jonathan Bober wrote: On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary from Sage directly with the timings from your self builid binary to eliminate the problem that libPari is involved here? If the gp

[sage-devel] Re: pari slowness

2008-06-09 Thread mabshoff
On Jun 9, 3:20 pm, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:17 PM, Jonathan Bober wrote: On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary from Sage directly with the timings from your self builid binary to

[sage-devel] Re: [Knoboo-devel] Signal Handling

2008-06-09 Thread William Stein
On Mon, Jun 9, 2008 at 3:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have been revisiting some process control code in Knoboo, and realized how well Sage responds to SIG-INT compared to standard Python. It basically works too good... ;) Could you please make this question much

[sage-devel] Re: pari slowness

2008-06-09 Thread William Stein
On Mon, Jun 9, 2008 at 3:31 PM, mabshoff [EMAIL PROTECTED] wrote: On Jun 9, 3:20 pm, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:17 PM, Jonathan Bober wrote: On Mon, 2008-06-09 at 10:19 -0700, mabshoff wrote: [...] No clue. Can you actually compare the gp binary

[sage-devel] Re: [Knoboo-devel] Re: Signal Handling

2008-06-09 Thread Dorian Raymer
In knoboo.kernel.engine.server.py, the method serve_forever has an exception handler for KeyboardInterrupt; this is to prevent the server from being shutdown by accident. When the interrupt button in the notebook is pressed, knoboo.kernel.process.EngineProcessControl sends INT signals to the

[sage-devel] [important] www.sagenb.com's SSL certificate updated

2008-06-09 Thread mabshoff
Hello folks, I *just* replaced the current SSL certificate of www.sagenb.com that was only valid for another couple weeks with one that expires five years from now. So your browser will likely complain about the new certificate, but that is expected If you are using a FireFox 3 based browser you

[sage-devel] Re: Jehanne's code

2008-06-09 Thread David Joyner
I think the person involved with coordinating the modular q-expansion code is William Stein himself, so I'm cc'ing the sage-devel list for others interested in this info. My guess is that, if William doesn't know about this Pari code already then he will want to know what license it is released

[sage-devel] Re: pari slowness

2008-06-09 Thread David Harvey
On Jun 9, 2008, at 5:58 PM, William Stein wrote: On Mon, Jun 9, 2008 at 2:43 PM, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:35 PM, Michael Abshoff wrote: I wonder if we are just building GMP incorrectly. That bernfrac() routine should depend mainly on the speed of long

[sage-devel] Re: pari slowness

2008-06-09 Thread mabshoff
On Jun 9, 7:01 pm, David Harvey [EMAIL PROTECTED] wrote: On Jun 9, 2008, at 5:58 PM, William Stein wrote: SNIP The last version, so that we could build on cygwin, and also it was   needed for OS X 10.5 64-bit.   We will switch to mpir soon, as soon as   there is a release :-)