Re: [sage-devel] Timing doctests

2012-01-18 Thread Robert Bradshaw
In general we would like to avoid writing doctests that are large only to take a measurable amount of time, but you could look into using cputime() with the first invocation and then making sure the second call is < 0.0x * (first call time). On Wed, Jan 18, 2012 at 8:05 AM, Michael Orlitzky wrote

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Volker Braun
I don't see anything special with interacts in the Java client. It takes a little bit over 1s to get the interact prepare, and getting the update after changing the value (here to n=7) again takes about 1s. But when I use the web interface the interacts feel slower (I'd say about 3s to update a

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Jason Grout
On 1/18/12 10:54 PM, William Stein wrote: So I'm reporting a bug which is that interacts are slow. Tracked here: https://github.com/jasongrout/simple-python-db-compute/issues/227 Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 8:51 PM, Volker Braun wrote: > My Java client for the single cell server that is at the core of the Android > app pretty consistently gets a reply in about 1s. And I have ping times of > about 150ms. Here is the log for a sample session for "1+1": Very interesting! So the

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Volker Braun
My Java client for the single cell server that is at the core of the Android app pretty consistently gets a reply in about 1s. And I have ping times of about 150ms. Here is the log for a sample session for "1+1": << (32ms) Request to execute >> (871ms) Python output SageOutput { "content":{

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Dan Drake
On Wed, 18 Jan 2012 at 06:42PM -0800, William Stein wrote: > I just did a little test of http://aleph.sagemath.org. I made this > interact in aleph and also in sagenb.org: > > @interact > def f(n=(1..10)): > print n*n > > > With aleph, I can easily count to 4 from when I let go of the slide

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Jason Grout
On 1/18/12 9:55 PM, William Stein wrote: On Wed, Jan 18, 2012 at 7:34 PM, Jason Grout wrote: On 1/18/12 8:42 PM, William Stein wrote: On Wed, Jan 18, 2012 at 6:38 PM, William Steinwrote: On Wed, Jan 18, 2012 at 3:40 PM, Ivan Andrus wrote: On Jan 18, 2012, at 11:23 PM, William Stein

Re: [sage-devel] aleph vs. singlecell and internal server error

2012-01-18 Thread Dan Drake
On Wed, 18 Jan 2012 at 02:05PM -0800, Volker Braun wrote: > Since I am once again at an institution that blocks ports != 80 on > wifi it would be helpful if there were a way to connect to the single > cell server. Do they block port 22? If not, I'd use an ssh tunnel. Otherwise, I would use tor, wh

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 7:34 PM, Jason Grout wrote: > On 1/18/12 8:42 PM, William Stein wrote: >> >> On Wed, Jan 18, 2012 at 6:38 PM, William Stein  wrote: >>> >>> On Wed, Jan 18, 2012 at 3:40 PM, Ivan Andrus >>>  wrote: On Jan 18, 2012, at 11:23 PM, William Stein wrote: > > On W

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread John Travis
FYI, just converted all my WebWork problems that call the single-cell and all is well. Response times appear to be very good except for an occasional hiccup (which could be anything.) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an e

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Jason Grout
On 1/18/12 8:42 PM, William Stein wrote: On Wed, Jan 18, 2012 at 6:38 PM, William Stein wrote: On Wed, Jan 18, 2012 at 3:40 PM, Ivan Andrus wrote: On Jan 18, 2012, at 11:23 PM, William Stein wrote: On Wed, Jan 18, 2012 at 2:20 PM, Jason Grout wrote: On 1/18/12 4:05 PM, Volker Braun wrote:

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Keshav Kini
They seem about equally fast to me, both around a count of 1. Connecting from Singapore. -Keshav Join us in #sagemath on irc.freenode.net ! -- 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...@googl

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 6:38 PM, William Stein wrote: > On Wed, Jan 18, 2012 at 3:40 PM, Ivan Andrus wrote: >> On Jan 18, 2012, at 11:23 PM, William Stein wrote: >>> On Wed, Jan 18, 2012 at 2:20 PM, Jason Grout >>> wrote: On 1/18/12 4:05 PM, Volker Braun wrote: > > In the recent thr

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 3:40 PM, Ivan Andrus wrote: > On Jan 18, 2012, at 11:23 PM, William Stein wrote: >> On Wed, Jan 18, 2012 at 2:20 PM, Jason Grout >> wrote: >>> On 1/18/12 4:05 PM, Volker Braun wrote: In the recent thread about running the singlecell server on port 80, Willia

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Ivan Andrus
On Jan 18, 2012, at 11:23 PM, William Stein wrote: > On Wed, Jan 18, 2012 at 2:20 PM, Jason Grout > wrote: >> On 1/18/12 4:05 PM, Volker Braun wrote: >>> >>> In the recent thread about running the singlecell server on port 80, >>> William hinted that aleph is supposed to be that. But I can't get

[sage-devel] Re: Two articles of interest to Sage in latest Notices

2012-01-18 Thread Jason Grout
On 1/18/12 4:45 PM, Burcin Erocal wrote: On Wed, 18 Jan 2012 12:26:33 -0800 (PST) kcrisman wrote: Publishing Computational Mathematics, by Tim Daly (of Axiom, a frequent contributor on sage-devel) http://www.ams.org/notices/201202/rtx120200320p.pdf Literate programming is not just adding com

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Volker Braun
Thanks, works! -- 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 For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org

Re: [sage-devel] Two articles of interest to Sage in latest Notices

2012-01-18 Thread Burcin Erocal
On Wed, 18 Jan 2012 12:26:33 -0800 (PST) kcrisman wrote: > Publishing Computational Mathematics, by Tim Daly (of Axiom, a > frequent contributor on sage-devel) > http://www.ams.org/notices/201202/rtx120200320p.pdf Literate programming is not just adding comments to code, but here are a few numb

Re: [sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 2:20 PM, Jason Grout wrote: > On 1/18/12 4:05 PM, Volker Braun wrote: >> >> In the recent thread about running the singlecell server on port 80, >> William hinted that aleph is supposed to be that. But I can't get it do >> do anything but throw HTTP-500 internal server erro

[sage-devel] Re: aleph vs. singlecell and internal server error

2012-01-18 Thread Jason Grout
On 1/18/12 4:05 PM, Volker Braun wrote: In the recent thread about running the singlecell server on port 80, William hinted that aleph is supposed to be that. But I can't get it do do anything but throw HTTP-500 internal server errors. Since I am once again at an institution that blocks ports !=

Re: [sage-devel] aleph vs. singlecell and internal server error

2012-01-18 Thread William Stein
On Wed, Jan 18, 2012 at 2:05 PM, Volker Braun wrote: > In the recent thread about running the singlecell server on port 80, William > hinted that aleph is supposed to be that. But I can't get it do do anything > but throw HTTP-500 internal server errors. Since I am once again at an > institution t

[sage-devel] aleph vs. singlecell and internal server error

2012-01-18 Thread Volker Braun
In the recent thread about running the singlecell server on port 80, William hinted that aleph is supposed to be that. But I can't get it do do anything but throw HTTP-500 internal server errors. Since I am once again at an institution that blocks ports != 80 on wifi it would be helpful if ther

[sage-devel] Re: Sage iPhone app

2012-01-18 Thread kcrisman
> The single-cell server (right now) doesn't delete the input and output > for the session (even though the actual running sage session which > produced the output is long gone). I see! Thanks, that clarifies the distinction between what is saved and what is not. Sorry for the lack of comprehe

[sage-devel] Re: Graphics3dGroup addition side effect

2012-01-18 Thread Jason Grout
On 1/18/12 1:42 PM, Sébastien Labbé wrote: Hi, On sage-4.7.2, the third line of the following shows two cubes + one sphere in jmol : sage: a = cube((1,0,0), color='red') + cube((0,0,3), color='green') sage: b = a + sphere((0,0,0), color='yellow') sage: a I was expecting only two cubes, but the

[sage-devel] Re: Sage iPhone app

2012-01-18 Thread Jason Grout
On 1/18/12 8:07 AM, kcrisman wrote: Of course any bug reports or suggestions are very welcome. In particular checking my initial examples would be helpful. Some screen shots are available athttp://boxen.math.washington.edu/home/iandrus/ Nice! As a question from someone who does not ow

[sage-devel] Re: Graphics3dGroup addition side effect

2012-01-18 Thread kcrisman
On Jan 18, 2:42 pm, Sébastien Labbé wrote: > Hi, > > On sage-4.7.2, the third line of the following shows two cubes + one > sphere in jmol : > > sage: a = cube((1,0,0), color='red') + cube((0,0,3), color='green') > sage: b = a + sphere((0,0,0), color='yellow') > sage: a > > I was expecting only

[sage-devel] Re: Using "set -e" in scripts

2012-01-18 Thread Volker Braun
The only reason against set -e is if you want to capture the error and then print a human-readable error message. But all command sequences that don't check the status should be in set -e brackets. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this g

[sage-devel] Two articles of interest to Sage in latest Notices

2012-01-18 Thread kcrisman
The Feb. 2012 Notices of the American Mathematical Society have two articles which, while not directly about Sage, are certainly of interest. Publishing Computational Mathematics, by Tim Daly (of Axiom, a frequent contributor on sage-devel) http://www.ams.org/notices/201202/rtx120200320p.pdf Math

[sage-devel] Using "set -e" in scripts

2012-01-18 Thread Jeroen Demeyer
The command "set -e" in a bash script makes it such that any error quits the shell. So if you do: set -e cd mydir rm -rf * and "mydir" doesn't exist, the script will stop after "cd mydir". I seem to remember an opinion within Sage that using "set -e" is bad but never heard an argument for this.

[sage-devel] Graphics3dGroup addition side effect

2012-01-18 Thread Sébastien Labbé
Hi, On sage-4.7.2, the third line of the following shows two cubes + one sphere in jmol : sage: a = cube((1,0,0), color='red') + cube((0,0,3), color='green') sage: b = a + sphere((0,0,0), color='yellow') sage: a I was expecting only two cubes, but the addition changed a. Is this a normal behavio

Re: [sage-devel] Re: WIKI connection problem

2012-01-18 Thread Florent Hivert
On Tue, Jan 17, 2012 at 08:37:00PM -0500, Michael Orlitzky wrote: > On 01/17/2012 05:37 PM, Florent Hivert wrote: > > > >Unfortunately, that's not the problem. As I already said, I tried from 6 > >different computers using windows and linux OSes, Firefox, IE, Opera, > >Konqueror as browser... All s

[sage-devel] Re: Sage iPhone app

2012-01-18 Thread kcrisman
> > Or is something else what happens? > > > +++ > > > The reason I ask is that I had multiple requests about the single-cell > > at the Joint Meetings table, and in particular this issue of > > persistence came up for one gentleman (Jason, I think you spoke with > > him too).   I strongly suspect

Re: [sage-devel] AISC 2012

2012-01-18 Thread William Stein
On Jan 18, 2012 5:05 AM, "Jacques Carette" wrote: > > On 17/01/2012 10:05 PM, William Stein wrote: >> >> (2) The copyright rule for papers is: "Each contribution must be >> accompanied by a Springer copyright form, a so-called 'Consent to >> Publish' form. Modified forms are not acceptable. Auth

[sage-devel] Timing doctests

2012-01-18 Thread Michael Orlitzky
Is there an existing way to doctest for performance regressions? I have in mind: http://trac.sagemath.org/sage_trac/ticket/12292 If I create a big enough matrix, I can make charpoly() take, say, N seconds. The second call should take around 0 seconds. I would like to test that 0http://groups.go

Re: [sage-devel] Re: Sage iPhone app

2012-01-18 Thread Ivan Andrus
On Jan 18, 2012, at 3:07 PM, kcrisman wrote: >>> Of course any bug reports or suggestions are very welcome. In >>> particular checking my initial examples would be helpful. Some screen >>> shots are available athttp://boxen.math.washington.edu/home/iandrus/ >> >> Nice! >> >>>

[sage-devel] Re: How strong should weak references be?

2012-01-18 Thread Jean-Pierre Flori
By the way, the "small" regression in my timings you posted above is actually non-existent. Those are the first one I ran (and posted on #715). Afterward, I ran other "make ptestlong" and the the variance was big enough for the above difference to be meaningless. I mean I sometimes got more than th

Re: [sage-devel] Re: Checking all but Python self-tests

2012-01-18 Thread Dan Drake
On Wed, 18 Jan 2012 at 11:17PM +0900, Dan Drake wrote: > Fortunately, upon digging in the makefile, I see that it's easy to avoid > the few tests that we know won't work: in spkg-check, just change > > make test > > to > > make EXTRATESTOPTS="-x test_tcl -x test_dbm -x test_gdbm -x test_bsddb" t

[sage-devel] Re: Checking all but Python self-tests

2012-01-18 Thread daveloeffler
On Jan 18, 2:17 pm, Dan Drake wrote: > On Tue, 17 Jan 2012 at 10:19AM -0800, Volker Braun wrote: > > I consider it a bug that Python's testsuite fails on many systems even > > though the resulting python install is perfectly usable for our purposes. > > The Python spkg-check should be changed to

Re: [sage-devel] Sage pay electric for build slaves

2012-01-18 Thread Serge A. Salamanka
In EGI grid ( egi.eu ) there are lots of x86_64 cores available under ScientifiLinux (RedHat) v.4 - v.6 Is it an option to utilize this infrastructure for build tasks? #Serge -- 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] Re: Checking all but Python self-tests

2012-01-18 Thread Dan Drake
On Tue, 17 Jan 2012 at 10:19AM -0800, Volker Braun wrote: > I consider it a bug that Python's testsuite fails on many systems even > though the resulting python install is perfectly usable for our purposes. > The Python spkg-check should be changed to not call the whole python > testsuite blindl

[sage-devel] Re: Sage iPhone app

2012-01-18 Thread kcrisman
> > Of course any bug reports or suggestions are very welcome.  In > > particular checking my initial examples would be helpful.  Some screen > > shots are available athttp://boxen.math.washington.edu/home/iandrus/ > > Nice! > > As a question from someone who does not own a

Re: [sage-devel] AISC 2012

2012-01-18 Thread Jacques Carette
On 17/01/2012 10:05 PM, William Stein wrote: (2) The copyright rule for papers is: "Each contribution must be accompanied by a Springer copyright form, a so-called 'Consent to Publish' form. Modified forms are not acceptable. Authors will be asked to transfer the copyright of the paper to the

Re: [sage-devel] Changes in supported platforms

2012-01-18 Thread David Kirkby
On 17 January 2012 14:03, Jeroen Demeyer wrote: > I have edited the supported platforms page to reflect the following, see > http://wiki.sagemath.org/SupportedPlatforms > > > * Sage on Solaris SPARC moved to untested. In practice it's actually > broken on the Skynet machine "mark". I have perso

[sage-devel] Re: How strong should weak references be?

2012-01-18 Thread Simon King
Hi Robert, Hooray! On 18 Jan., 00:20, Robert Bradshaw wrote: > Both, but primarily the latter. It's a microbenchmark, but loop like > > a = Integer(10) > b = QQ(20) > s = RDF(30) > for x in range(10**n): >     s += a*b*x > > should give us an upper bound on how expensive any changes could be. I

Re: [sage-devel] Re: add a graph for US states?

2012-01-18 Thread Julien Puydt
Le 18/01/2012 12:35, Nathann Cohen a écrit : No strings please. Use something which is TAB-completion-friendly. HMmm... In this case it would make sense, but for #11880 the database is really huge O_o I'd like to find a smooth trick for that one :-/ What about a tree instead of a whole l

Re: [sage-devel] Re: add a graph for US states?

2012-01-18 Thread Nathann Cohen
> > No strings please. Use something which is TAB-completion-friendly. > HMmm... In this case it would make sense, but for #11880 the database is really huge O_o I'd like to find a smooth trick for that one :-/ Nathann -- To post to this group, send an email to sage-devel@googlegroups.com

Re: [sage-devel] Re: add a graph for US states?

2012-01-18 Thread Julien Puydt
Le 18/01/2012 11:36, Jeroen Demeyer a écrit : On 2012-01-18 11:22, Nicolas M. Thiery wrote: On Tue, Jan 17, 2012 at 01:46:27AM -0800, Nathann Cohen wrote: graphs.maps.WorldMap(world = "US") Ahem. No, rather graphs.maps.WorldMap() graphs.maps.USMap() Or just, from the user pers

Re: [sage-devel] Re: add a graph for US states?

2012-01-18 Thread Jeroen Demeyer
On 2012-01-18 11:22, Nicolas M. Thiery wrote: > On Tue, Jan 17, 2012 at 01:46:27AM -0800, Nathann Cohen wrote: >>graphs.maps.WorldMap(world = "US") >>Ahem. No, rather >>graphs.maps.WorldMap() >>graphs.maps.USMap() > > Or just, from the user perspective: > > graphs.WorldMap(

Re: [sage-combinat-devel] Re: [sage-devel] Re: add a graph for US states?

2012-01-18 Thread Nathann Cohen
> Or just, from the user perspective: Hmmm By the way we really should have some generic search engine for such things 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] Re: add a graph for US states?

2012-01-18 Thread Nicolas M. Thiery
On Tue, Jan 17, 2012 at 01:46:27AM -0800, Nathann Cohen wrote: >graphs.maps.WorldMap(world = "US") >Ahem. No, rather >graphs.maps.WorldMap() >graphs.maps.USMap() Or just, from the user perspective: graphs.WorldMap("World countries") graphs.WorldMap("USA states")

Re: [sage-devel] the ARM port - numerical noise

2012-01-18 Thread Dima Pasechnik
On Monday, 16 January 2012 22:48:01 UTC+8, Snark wrote: > > Le 16/01/2012 15:42, Burcin Erocal a �crit : > > On Mon, 16 Jan 2012 04:21:37 -0800 (PST) > > Dima Pasechnik wrote: > > > >> Once again, let me bring up the numerical noise issue on ARM. > >> The problem is that while we pretty much n

Re: [sage-devel] the ARM port - numerical noise

2012-01-18 Thread Dima Pasechnik
OK, I've opened #12320 : make cephes installable on ARMs. -- 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 For more options, visit this group at http://groups.google.com/group/sage-deve

Re: [sage-devel] Re: Sage iPhone app

2012-01-18 Thread Ivan Andrus
On Jan 18, 2012, at 12:56 AM, Jason Grout wrote: > On 1/17/12 5:33 PM, kcrisman wrote: >> > Of course any bug reports or suggestions are very welcome. In particular > checking my initial examples would be helpful. Some screen shots are > available athttp://boxen.math.washington.edu