Re: [sage-devel] Doctest quesiton

2010-12-16 Thread Dan Drake
On Thu, 16 Dec 2010 at 09:12PM -0800, Justin C. Walker wrote: > I have a doctest that results in a long (400-byte) string of output. > Is there a simple way to tell the doctest code to ignore whitespace > (in particular, newlines) when comparing output? I don't think putting > that output in the fi

Re: [sage-devel] CHomP: make it an optional package (instead of experimental)?

2010-12-16 Thread Robert Goss
+1 On 17 December 2010 08:52, John H Palmieri wrote: > Right now, CHomP is an experimental spkg for Sage.  I propose that it > be optional instead. > > Description: CHomP stands for "Computational Homology Project," and it > is a collection of software for homology computation.  It includes > bot

[sage-devel] Doctest quesiton

2010-12-16 Thread Justin C. Walker
Hi, all, I have a doctest that results in a long (400-byte) string of output. Is there a simple way to tell the doctest code to ignore whitespace (in particular, newlines) when comparing output? I don't think putting that output in the file is a reasonable thing to do, but I don't want to jum

[sage-devel] Re: please help review #8442: Lie algebras in Sage

2010-12-16 Thread Dima Pasechnik
I've given it positive review. On Dec 17, 4:43 am, John Cremona wrote: > Fancy reviewing some Sage? > > John > > > > > > > > -- Forwarded message -- > From: John H Palmieri > Date: Wed, Dec 15, 2010 at 6:51 PM > Subject: [sage-devel] please help review #8442: Lie algebras in Sag

[sage-devel] Re: one page per method or function

2010-12-16 Thread Andrey Novoseltsev
On Dec 16, 9:45 am, Minh Nguyen wrote: > Hi folks, > > I have converted the whole reference manual use one page per method or > function. The resulting HTML version of the reference manual is up [1] > at Google code for your viewing pleasure. The script that I used in > the conversion process is u

Re: [sage-devel] CHomP: make it an optional package (instead of experimental)?

2010-12-16 Thread William Stein
+1 On Thursday, December 16, 2010, mhampton wrote: > +1 > > I haven't had any trouble compiling CHomP on a variety of linux and OS > X machines.  It seems like high quality code that easily qualifies for > optional status. > > -Marshall > > On Dec 16, 6:52 pm, John H Palmieri wrote: >> Right now

RE: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Francois Bissey
-Original Message- From: sage-devel@googlegroups.com on behalf of Georg S. Weber Sent: Fri 12/17/2010 11:30 AM To: sage-devel Subject: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball. P.S.: Francois, I thought you were "on leave" moving to a

[sage-devel] Re: CHomP: make it an optional package (instead of experimental)?

2010-12-16 Thread mhampton
+1 I haven't had any trouble compiling CHomP on a variety of linux and OS X machines. It seems like high quality code that easily qualifies for optional status. -Marshall On Dec 16, 6:52 pm, John H Palmieri wrote: > Right now, CHomP is an experimental spkg for Sage.  I propose that it > be opt

[sage-devel] CHomP: make it an optional package (instead of experimental)?

2010-12-16 Thread John H Palmieri
Right now, CHomP is an experimental spkg for Sage. I propose that it be optional instead. Description: CHomP stands for "Computational Homology Project," and it is a collection of software for homology computation. It includes both command-line functions and a C++ library. Note that it computes

[sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Georg S. Weber
On 16 Dez., 14:56, leif wrote: > On 16 Dez., 13:11, Volker Braun wrote: > > > Gentoo-prefix uses rpath instead of the LD_LIBRARY_PATH kludge, very good! > > But this also means that there won't be any binary distributions (even in > > their current broken state) until we work out the rpath-rewr

[sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Georg S. Weber
> > I think you really know what you're talking about. I agree with your > remarks above, especially points 1 and 2 above, and your remarks about > the difficulty of building GCC itself and having different coexisting > GCC's at once are exactly right. > > Shall we start taking some genuine steps

Re: RE: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Volker Braun
For the record, PatchELF can grow an ELF executable to accommodate a larger RPATH than what it was originally linked with. But at least initially we should probably go with Leif's variable-rpath option. By the time this works all distributions probably come with a dloader that supports it ;-)

Re: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Volker Braun
You can bootstrap gcc with Sun studio, say, but you cannot compile gcc with another compiler. If gcc 4.0.1 did not bootstrap with Sun's compiler then it was a regression and fixed in later versions. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this

RE: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Francois Bissey
-Original Message- From: sage-devel@googlegroups.com on behalf of Volker Braun Sent: Fri 12/17/2010 1:11 AM To: sage-devel@googlegroups.com Subject: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball. Gentoo-prefix uses rpath instead of the LD_L

Re: [sage-devel] please help review #8442: Lie algebras in Sage

2010-12-16 Thread John Cremona
Fancy reviewing some Sage? John -- Forwarded message -- From: John H Palmieri Date: Wed, Dec 15, 2010 at 6:51 PM Subject: [sage-devel] please help review #8442: Lie algebras in Sage To: sage-devel Ticket #8442 (http://trac.sagemath.org/sage_trac/ticket/8442) adds a tutorial a

[sage-devel] Re: Preventing misuse of symbolic variables?

2010-12-16 Thread Simon King
Hi Luis, On 16 Dez., 20:12, luisfe wrote: > What does it mean 'deprecation'? Will this mean that at some point > > sage: var('x') > sage: QQ[x] > > will be invalid code? I think it should be invalid code. Or, at least PolynomialRing(QQ,[singular]) should be invalid. Currently, it yields a polyn

[sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread leif
On 16 Dez., 18:09, David Kirkby wrote: > On 14 December 2010 05:30, leif wrote: > > > (Btw., I failed in trying to compile some older versions of GCC with > > newer ones, e.g. 4.0.x with 4.3.3, 4.4.3 and 4.5.1.) > > -Leif > > At one point one could build gcc with a C compiler. Then it became > ne

[sage-devel] Re: Preventing misuse of symbolic variables?

2010-12-16 Thread luisfe
On Dec 16, 6:32 pm, Simon King wrote: > Hi all! > > On 15 Dez., 15:39, Simon King wrote: > > > This is why I suggest the scenario "the ring constructor prints a > > warning if the variable name is not a string": QQ[x] or > > PolynomialRing(QQ,[singular],1) would result in a warning, but the > > *

[sage-devel] toggling a weighted graph to be unweighted

2010-12-16 Thread Minh Nguyen
Hi folks, Say I have a weighted graph G, but I now want G to be unweighted. So I try using G.weighted(False) to toggle G to be unweighted. This doesn't work as I expected, as demonstrated in the following transcript: sage: version() 'Sage Version 4.6.1.alpha3, Release Date: 2010-12-05' sage: G =

Re: [sage-devel] Re: 4.6 build - Atlas fails on Ubuntu 10.10 on amd turion X2 laptop

2010-12-16 Thread Jan Groenewald
Hi I had ATLAS fail to build from sage-3.6 running Ubuntu 10.04.1 on an HP Probook 4515s with and AMD CPU (yesterday). Due to time pressure I installed a prebuilt binary instead. Sorry, no more info. regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- To p

Re: [sage-devel] Re: 4.6 build - Atlas fails on Ubuntu 10.10 on amd turion X2 laptop

2010-12-16 Thread David Kirkby
Ignore what appears to be an empty message from me. I got a message "Your message has been sent," but I don't recall pressing the "Send" button. On 21 November 2010 17:17, RegB <2regburg...@earthlink.net> wrote: > In the Virtual box it SEEMS to be necessary to give the virtual > machine > more tha

Re: [sage-devel] Re: Deprecation question

2010-12-16 Thread Justin C. Walker
On Dec 16, 2010, at 08:50 , Robert Bradshaw wrote: > On Thu, Dec 16, 2010 at 7:59 AM, Justin C. Walker wrote: >> >> On Dec 16, 2010, at 02:55 , Volker Braun wrote: >> >>> Works for me: >>> >>> sage: X=Integer(54) >>> sage: sqrt(X,prec=100) >>> 7.3484692283495342945918522241 >>> sage: X=RDF('3

Re: [sage-devel] Re: 4.6 build - Atlas fails on Ubuntu 10.10 on amd turion X2 laptop

2010-12-16 Thread David Kirkby
On 21 November 2010 17:17, RegB <2regburg...@earthlink.net> wrote: > Update: > Since my last update; > The Atlas problem seemed to have been fixed with the atlas-3.8.3.p17 > spkg, however I ran into more trouble later with matplotlib-1.0.0 > and that sent me off on a course of enquiry that led me t

[sage-devel] Re: Preventing misuse of symbolic variables?

2010-12-16 Thread Simon King
Hi all! On 15 Dez., 15:39, Simon King wrote: > This is why I suggest the scenario "the ring constructor prints a > warning if the variable name is not a string": QQ[x] or > PolynomialRing(QQ,[singular],1) would result in a warning, but the > *intended* use QQ['x'] or R.=QQ[] would be OK. I sugge

Re: [sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread David Kirkby
On 14 December 2010 05:30, leif wrote: > (Btw., I failed in trying to compile some older versions of GCC with > newer ones, e.g. 4.0.x with 4.3.3, 4.4.3 and 4.5.1.) > -Leif At one point one could build gcc with a C compiler. Then it became necessary to use gcc to build gcc. Now as you say, you

Re: [sage-devel] Re: Deprecation question

2010-12-16 Thread Robert Bradshaw
On Thu, Dec 16, 2010 at 7:59 AM, Justin C. Walker wrote: > > On Dec 16, 2010, at 02:55 , Volker Braun wrote: > >> Works for me: >> >> sage: X=Integer(54) >> sage: sqrt(X,prec=100) >> 7.3484692283495342945918522241 >> sage: X=RDF('3.14') >> sage: sqrt(X,prec=100) >> 1.7720045146669350752850780727 >

[sage-devel] Re: one page per method or function

2010-12-16 Thread Minh Nguyen
Hi folks, I have converted the whole reference manual use one page per method or function. The resulting HTML version of the reference manual is up [1] at Google code for your viewing pleasure. The script that I used in the conversion process is up at bitbucket [2], from where you should also find

Re: [sage-devel] Re: Deprecation question

2010-12-16 Thread Justin C. Walker
On Dec 16, 2010, at 02:55 , Volker Braun wrote: > Works for me: > > sage: X=Integer(54) > sage: sqrt(X,prec=100) > 7.3484692283495342945918522241 > sage: X=RDF('3.14') > sage: sqrt(X,prec=100) > 1.7720045146669350752850780727 That works for me as well. After posting, I checked further, and fou

[sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread leif
On 16 Dez., 13:11, Volker Braun wrote: > Gentoo-prefix uses rpath instead of the LD_LIBRARY_PATH kludge, very good! > But this also means that there won't be any binary distributions (even in > their current broken state) until we work out the rpath-rewriting. At least newer GNU / Linux loaders s

[sage-devel] easy review: fix encoding declarations in scripts

2010-12-16 Thread Dan Drake
Right now, Sage does not follow PEP 263 [1] very well when looking for encoding declarations in scripts. You could review #10440 and fix that: http://trac.sagemath.org/sage_trac/ticket/10440 This affects things like SageTeX, in which we can't particularly guarantee that the first line will ma

Re: [sage-devel] Re: Is sage -f sagenb-VERSION supposed to update devel/sagenb-main?

2010-12-16 Thread Jeroen Demeyer
On 2010-12-15 21:25, leif wrote: > I'm currently preparing a SageNB 0.8.9.p1 with the changes from #10176 > (patches only rebased w.r.t. the version number in setup.py) and some > further minor additions. > > If this doesn't fix the issue, it should at least give error messages > which allow to tr

[sage-devel] Re: Should Sage include its own gcc ? It would add <= 1.6 MB to the Sage tarball.

2010-12-16 Thread Volker Braun
I'm all in favor of splitting off the non-mathematical parts into sage-os. I think Gentoo prefix is the most widely-used "hosted distribution" and probably the way to go. Some observations: Gentoo-prefix uses rpath instead of the LD_LIBRARY_PATH kludge, very good! But this also means that there

[sage-devel] Re: Deprecation question

2010-12-16 Thread Volker Braun
Works for me: sage: X=Integer(54) sage: sqrt(X,prec=100) 7.3484692283495342945918522241 sage: X=RDF('3.14') sage: sqrt(X,prec=100) 1.7720045146669350752850780727 -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+un

[sage-devel] Why does alarm() raise KeyboardInterrupt (and not a more specific exception)

2010-12-16 Thread Jeroen Demeyer
The command alarm(n) raises a KeyboardInterrupt after n seconds. Is there a specific reason to raise *KeyboardInterrupt* and not a new exception, say AlarmTimeout? (slightly related: #9163, #9678) Jeroen. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe fro

[sage-devel] Re: Implementation of Weisfeiler-Leman algorithm

2010-12-16 Thread Keshav Kini
Thanks, Dima! I have done so. I've also added a feature, a bugfix for it, and a doctest for it. Here is the new patch: http://www1.spms.ntu.edu.sg/~krkini/temp/sage-wlrefine.patch Same URL, new file. If you would like to see the old patch, stick a ".old" on the end of the URL. Is this patch abou