[sage-devel] Re: Pickling classes (not class instances)

2009-05-05 Thread Nicolas M. Thiery
Dear Carl, On Thu, Feb 12, 2009 at 03:51:23PM -0800, Carl Witty wrote: > > On Thu, Feb 12, 2009 at 2:42 PM, Nicolas M. Thiery > wrote: > > Is there a specific reason for this restriction? > > No idea... :) > > > Would it be thinkable to move up the copy reg dispatch before the > > met

[sage-devel] Re: Nested classes

2009-05-05 Thread Nicolas M. Thiery
Dear Carl, dear all, This is a call for comments and reviews for the new ticket #5986 whose description is: -- With the python code below:: class A: class B: pass Python 2.6 erroneously set B.__

[sage-devel] Re: Sage 3.4.2.alpha0 failure of clisp on Solaris.

2009-05-05 Thread Dr. David Kirkby
Dr. David Kirkby wrote: > mabshoff wrote: > >> I have a precompiled clisp binary I use. Another option is to use ecl. > > >> Since it is 2:20 am I am about to go to sleep, but in the morning I >> should post a prebuild clisp.spkg. > > cheers. I'll give that a try. Did you post it? I was not

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Dr. David Kirkby
mabshoff wrote: >>> * In 3.4.1 prime_pi() was completely broken for even 2^35 because len >>> (prime_range(2^35)) aborts on sage.math since pari fails to allocate >>> 124 *GB* of memory. >> Em, but a failure to allocate sufficient memory should not cause a seg >> fault - whether or not the memor

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Fredrik Johansson
On Sun, May 3, 2009 at 8:42 AM, Dr. David Kirkby wrote: > The link > http://listserv.nodak.edu/cgi-bin/wa.exe?A2=ind0010&L=nmbrthry&P=2988 > states the algorithm used, but in a way I don't understand. It says: > > "This value has been checked by computing pi(10^21+10^8) with > a different paramet

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread mabshoff
On May 5, 12:44 am, "Dr. David Kirkby" wrote: > mabshoff wrote: Hi Dave, > > We are talking about two different limits here. > > No, we were not - just a confusing way I wrote it. A memory alloction > issue is completely different to limiting an algorithm due to concerns > about it. Well,

[sage-devel] Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread Simon King
Dear Sage-Devel, I have four questions that I couldn't find addressed on "Producing New Sage Packages" at http://modular.math.washington.edu/sage/doc/developer/producing_spkgs.html I can create my spkg with sage -pkg my_package_name-3.1415 so that's not the question. 1. hg When the package

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread mabshoff
On May 5, 4:08 am, Simon King wrote: > Dear Sage-Devel, > > I have four questions that I couldn't find addressed on "Producing New > Sage Packages" > athttp://modular.math.washington.edu/sage/doc/developer/producing_spkgs... > > I can create my spkg with >    sage -pkg my_package_name-3.1415 >

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread Alex Ghitza
Hi Simon, Some of your questions (but not all) have answers at http://wiki.sagemath.org/SPKG_Audit Best, Alex On Tue, May 5, 2009 at 9:08 PM, Simon King wrote: > > Dear Sage-Devel, > > I have four questions that I couldn't find addressed on "Producing New > Sage Packages" at > http://modu

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread simon . king
Hi! On May 5, 1:22 pm, mabshoff wrote: > Yes, everything but src should be under revision control. Everything *but* src? I thought src would be the most interesting part of an spkg... And, Alex, thank you for the pointer to the Wiki page! I am one of those old fashioned people who think that l

[sage-devel] Re: prime_pi

2009-05-05 Thread Michel
I always get /home/sage/sage_install/sage-a/local/bin/sage-sage: line 348: 26501 Segmentation fault python "$@" Connection to localhost closed. when trying prime_pi on www.sagenb.org Regards, Michel On May 5, 4:32 am, William Stein wrote: > This is from the guy who wrote prime_pi: > > --

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread mabshoff
On May 5, 4:40 am, simon.k...@uni-jena.de wrote: > Hi! > > On May 5, 1:22 pm, mabshoff wrote: > > > Yes, everything but src should be under revision control. > > Everything *but* src? I thought src would be the most interesting part > of an spkg... The whoke point is that src contains clean up

[sage-devel] Re: prime_pi

2009-05-05 Thread mabshoff
On May 5, 4:40 am, Michel wrote: > I always get > > /home/sage/sage_install/sage-a/local/bin/sage-sage: line 348: 26501 > Segmentation fault      python "$@" > Connection to localhost closed. > > when trying prime_pi onwww.sagenb.org sagenb.org still runs 3.4.1 which has the bad/inefficient ve

[sage-devel] Sage build log query (clisp)

2009-05-05 Thread John Cremona
Should I be worried about the following seen in the middle of a Sage build: Configure findings: FFI:no (user requested: default) readline: yes (user requested: yes) libsigsegv: no, consider installing GNU libsigsegv As you requested, we will proceed without libsigsegv... ./makemak

[sage-devel] Re: Sage build log query (clisp)

2009-05-05 Thread mabshoff
On May 5, 5:50 am, John Cremona wrote: > Should I be worried about the following seen in the middle of a Sage build: No, it is a just a workaround for a problem if you build Sage with nohup on any operating system *or* on OSX, so no need to worry about anything. > Working around nohup probl

[sage-devel] Re: Sage build log query (clisp)

2009-05-05 Thread John Cremona
Thanks Michael, just making sure. John 2009/5/5 mabshoff : > > > > On May 5, 5:50 am, John Cremona wrote: >> Should I be worried about the following seen in the middle of a Sage build: > > No, it is a just a workaround for a problem if you build Sage with > nohup on any operating system *or* o

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Mon, May 4, 2009 at 11:04 PM, Rado wrote: > > Hello again, > > As promised here is an updated version. > > http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html > > Controls are cleaned up (almost all mouse now). If you see something > buggy email me (or even better fix it :) the code

[sage-devel] sage-3.4.2 notebook -- missing sage favicon

2009-05-05 Thread William Stein
Hi, I just noticed that sage-3.4.2 -- at least on my laptop -- the favicon is missing from the notebook. I.e., when I use the notebook locally on my laptop the firefox tabs don't have a little sage icon next to them. -- William -- William Stein Associate Professor of Mathematics University o

[sage-devel] Re: sage-3.4.2 notebook -- missing sage favicon

2009-05-05 Thread John Cremona
Is that related to the persisting warning on building docs: preparing documents... WARNING: html_favicon is not an .ico file ? John 2009/5/5 William Stein : > > Hi, > > I just noticed that sage-3.4.2 -- at least on my laptop -- the favicon > is missing from the notebook. I.e., when I use the n

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
On May 5, 6:09 am, William Stein wrote: > That's a little disturbing. I think that is intentional. Its like a giant trash-can icon. Easier than doing a right-click and selecting "delete vertex" off a menu. Drag it off the canvas and then let it go. ;-) Rob --~--~-~--~~

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 1:08 AM, Fredrik Johansson wrote: > > On Sun, May 3, 2009 at 8:42 AM, Dr. David Kirkby > wrote: >> The link >> http://listserv.nodak.edu/cgi-bin/wa.exe?A2=ind0010&L=nmbrthry&P=2988 >> states the algorithm used, but in a way I don't understand. It says: >> >> "This value ha

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 6:35 AM, Rob Beezer wrote: > > On May 5, 6:09 am, William Stein wrote: >> That's a little disturbing. > > I think that is intentional.  Its like a giant trash-can icon. > > Easier than doing a right-click and selecting "delete vertex" off a > menu.  Drag it off the canvas

[sage-devel] Re: sage-3.4.2 notebook -- missing sage favicon

2009-05-05 Thread mabshoff
On May 5, 6:35 am, John Cremona wrote: > Is that related to the persisting warning on building docs:  preparing > documents... WARNING: html_favicon is not an .ico file ? No, I doubt it. That warning message has been around since Sage 3.4 and unless William didn't pay attention (or the icon wa

[sage-devel] Re: Nested classes

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 12:30 AM, Nicolas M. Thiery wrote: > >        Dear Carl, dear all, > > This is a call for comments and reviews for the new ticket #5986 whose > description is: > > -- > With the python code below::

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread kcrisman
Just FYI, Bressoud and Wagon's Computational Number Theory book has a more elementary (and very readable) account of this type of formula - starting with Legendre and going through Meissel and Lehmer, from around page 130 to page 140 - including fairly explicit implementation ideas. - kcrisman --

[sage-devel] Re: sage-3.4.2 notebook -- missing sage favicon

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 6:44 AM, mabshoff wrote: > > > > On May 5, 6:35 am, John Cremona wrote: >> Is that related to the persisting warning on building docs:  preparing >> documents... WARNING: html_favicon is not an .ico file ? > > No, I doubt it. That warning message has been around since Sage

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
Well, I'll see your minus 10 and raise you 5. A massive +15 to "drag-and-trash". What if there was an Undo facility available? Rob On May 5, 6:39 am, William Stein wrote: > On Tue, May 5, 2009 at 6:35 AM, Rob Beezer wrote: > > > On May 5, 6:09 am, William Stein wrote: > >> That's a little di

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Fredrik Johansson
On Tue, May 5, 2009 at 3:37 PM, William Stein wrote: > Fredrik, Just out of curiosity, is that the sort of algorithm you like > to implement? > > William Quite possibly, but I'm not familiar with any of these algorithms so I'd need some practice to implement anything even remotely optimized. Pe

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:10 AM, Rob Beezer wrote: > > Well, I'll see your minus 10 and raise you 5. > A massive +15 to "drag-and-trash". > > What if there was an Undo facility available? I still wouldn't like it. The problem is that it is just way too easy to bump the edges by accident when pla

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread simon . king
Hi Michael, > The whole point is that src contains clean upstream sources you can > download from wherever you document in SPKG.txt. OK. So what shall I do if most of the code is original, not from some "upstream"? In src/, I have - mtx2.2.3/, comprising *modified* MeatAxe 2.2.3 - a folder with

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:10 AM, Fredrik Johansson wrote: > > On Tue, May 5, 2009 at 3:37 PM, William Stein wrote: >> Fredrik, Just out of curiosity, is that the sort of algorithm you like >> to implement? >> >> William > > Quite possibly, but I'm not familiar with any of these algorithms so > I'

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:16 AM, wrote: > > Hi Michael, > >> The whole point is that src contains clean upstream sources you can >> download from wherever you document in SPKG.txt. > > OK. So what shall I do if most of the code is original, not from some > "upstream"? You *are* upstream. You ca

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread mabshoff
On May 5, 7:21 am, William Stein wrote: > On Tue, May 5, 2009 at 7:16 AM,   wrote: > > > Hi Michael, > > >> The whole point is that src contains clean upstream sources you can > >> download from wherever you document in SPKG.txt. > > > OK. So what shall I do if most of the code is original, not

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rado
Yeah, it was supposed to be a feature, but I agree that double click to remove is easier and less error-prone. I will give it a few days to see if anybody has good argument why we should keep it and if not I will remove it. I will also make undo for the last erased vertex. Rado On May 5, 9:13 a

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread mabshoff
On May 5, 7:16 am, simon.k...@uni-jena.de wrote: > Hi Michael, > > > The whole point is that src contains clean upstream sources you can > > download from wherever you document in SPKG.txt. > > OK. So what shall I do if most of the code is original, not from some > "upstream"? > In src/, I have

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
The first version of a program like this I wrote with a colleague in the mid-80's. For several years it was an important part of our toolkit as we studied Siemion Fajtlowicz's Graffiti conjectures (automated conjecture creation in graph theory). This version had "drag-and-trash" and I included i

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Mike Hansen
On Tue, May 5, 2009 at 7:20 AM, William Stein wrote: > Does anybody know how to live streaming video broadcasts?  I.e., > something like Skype, but where arbitrarily many people can view the > video live all at once?  If so, we could setup a laptop like that and > have it broadcast live all the S

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Jason Grout
Rob Beezer wrote: > Well, I'll see your minus 10 and raise you 5. > A massive +15 to "drag-and-trash". > > What if there was an Undo facility available? > Why not make it Apple-style? Drag the vertex off the canvas, and the cursor turns to a poof cursor. If you drag it back on, before lettin

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 9:03 AM, Jason Grout wrote: > > Rob Beezer wrote: >> Well, I'll see your minus 10 and raise you 5. >> A massive +15 to "drag-and-trash". >> >> What if there was an Undo facility available? >> > > Why not make it Apple-style?  Drag the vertex off the canvas, and the > cursor

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 7:53 AM, Mike Hansen wrote: > > On Tue, May 5, 2009 at 7:20 AM, William Stein wrote: >> Does anybody know how to live streaming video broadcasts?  I.e., >> something like Skype, but where arbitrarily many people can view the >> video live all at once?  If so, we could setu

[sage-devel] Re: Nested classes

2009-05-05 Thread Nicolas M. Thiery
On Tue, May 05, 2009 at 06:48:06AM -0700, William Stein wrote: > > On Tue, May 5, 2009 at 12:30 AM, Nicolas M. Thiery > wrote: > > > >        Dear Carl, dear all, > > > > This is a call for comments and reviews for the new ticket #5986 whose > > description is: > > > > --

[sage-devel] Prime Pi

2009-05-05 Thread victor miller
Fredrik, I just saw on the SAGE days 15 project list you have the Meissel-Lehmer-Lagarias-Miller-Odlyzko algorithm. I still have my old C code for this, if that would be a good start. I never looked in detail at the variants that were made by Deleglise-Rivat and Gourdon, which knocked a few log f

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Mike Hansen
On Tue, May 5, 2009 at 9:33 AM, William Stein wrote: > That looks really good / easy:  http://www.ustream.tv/get-started > > Can 2 or 3 people who won't be at Sage Days respond and say they would > actually > watch a live video stream from Sage Days, if I post one?  If so, then > I'll do it (if

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Craig Citro
> It'd also be helpful for someone to volunteer to say watch IRC and > relay any questions from there to the live event. > Good point! Thanks for volunteering! :P (Sorry, couldn't resist.) -cc --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Nick Alexander
> Can 2 or 3 people who won't be at Sage Days respond and say they > would actually > watch a live video stream from Sage Days, if I post one? I am unlikely to watch a live stream but have watched several of the posted videos after the fact. Nick --~--~-~--~~~---

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 9:45 AM, Nick Alexander wrote: > >> Can 2 or 3 people who won't be at Sage Days respond and say they >> would actually >> watch a live video stream from Sage Days, if I post one? > > I am unlikely to watch a live stream but have watched several of the > posted videos after

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread rjf
1. Where to publish papers like mine on this graph-input topic? There have occasionally been venues for articles like this, but they have mostly been destroyed by people attempting to "upgrade" the venue. Thus ISSAC, one-time premier conference, has been changed into a dry- as-dust collectio

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Rob Beezer
On May 5, 9:27 am, William Stein wrote: > Now *that* is a good idea.  I would really like the suggestion Jason > makes above. Very nice. Agreed. My implementations always allowed you to drag the vertex back and drop it back on the canvas unmolested wherever you liked. Including a visual cue th

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Rob Beezer
I'd watch Mike Hansen do "Advanced Mercurial" if it happened Sunday morning when I'm pinned at home prior to working our graduation ceremony that afternoon - only so I could ask him a few questions via IRC (which I was going to suggest as a useful adjunct to a live stream). But perhaps better wou

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread Andras Salamon
On Tue, May 05, 2009 at 10:28:21AM -0700, RJF wrote: > 1. Where to publish papers like mine on this graph-input topic? > > There have occasionally been venues for articles like this, but they > have mostly been destroyed by people attempting to "upgrade" the > venue. I thought papers like you

[sage-devel] Re: Nested classes

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 9:34 AM, Nicolas M. Thiery wrote: > (2) My patch does not touch the Python interpreter, but a copy of > cPickle within the Sage source tree. This does not prevent upgrading > python, as long as we keep our copy of cPickle reasonably updated. Of > course this is only accepta

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread John H Palmieri
On May 5, 5:03 am, mabshoff wrote: > On May 5, 4:40 am, simon.k...@uni-jena.de wrote: > > > Hi! > > > On May 5, 1:22 pm, mabshoff wrote: > > > > Yes, everything but src should be under revision control. > > > Everything *but* src? I thought src would be the most interesting part > > of an spkg..

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread VictorMiller
As a comparison I just ran my old C program (implementing the algorithm in my paper with Lagarias and Odlyzko) on my workstation which is a fast Dell '86 box (sorry I don't have more details) running Red Hat: time ./findn 249 n=249_999_999_999_999 pi(249_999_999_999_999)=7_783_516_108

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 11:49 AM, William Stein wrote: > On Tue, May 5, 2009 at 11:43 AM, VictorMiller wrote: >> >> As a comparison I just ran my old C program (implementing the >> algorithm in my paper with Lagarias and Odlyzko) on my workstation >> which is a fast Dell '86 box (sorry I don't ha

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread William Stein
On Tue, May 5, 2009 at 11:43 AM, VictorMiller wrote: > > As a comparison I just ran my old C program (implementing the > algorithm in my paper with Lagarias and Odlyzko) on my workstation > which is a fast Dell '86 box (sorry I don't have more details) running > Red Hat: Wow, I didn't know Dell

[sage-devel] Re: sage-3.4.2 notebook -- missing sage favicon

2009-05-05 Thread John Cremona
I don't get that problem on my ubuntu laptop ruunning either 3.4.2.rc0 or 3.4.2, i.e. the mini icon _does_ appear left of the url box John 2009/5/5 William Stein : > > On Tue, May 5, 2009 at 6:44 AM, mabshoff wrote: >> >> >> >> On May 5, 6:35 am, John Cremona wrote: >>> Is that related to the

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread John Cremona
2009/5/5 mabshoff : > > > > On May 5, 7:21 am, William Stein wrote: >> On Tue, May 5, 2009 at 7:16 AM,   wrote: >> >> > Hi Michael, >> >> >> The whole point is that src contains clean upstream sources you can >> >> download from wherever you document in SPKG.txt. >> >> > OK. So what shall I do if

[sage-devel] Re: JavaScript Graph editor

2009-05-05 Thread rjf
On May 5, 10:53 am, Andras Salamon wrote: . > I thought papers like your >    http://www.eecs.berkeley.edu/~fateman/papers/graphing7.pdf > were highly appropriate for the Graph Drawing symposium? >    http://facweb.cs.depaul.edu/gd2009/gd2009.asp > (Submission deadline is 31 May 2009.) > >

[sage-devel] Re: Wigner 3j, 6j, 9j, Clebsch-Gordan, Racah and Gaunt coefficients

2009-05-05 Thread jyr
Hi Dan, Thanks for reviewing the code. I have included your suggestions and I have done a spell check on the file now and will submit the updated version to trac once I get an account. (Michael?) As a side remark concerning the prec argument, it is passed straight into the sqrt() functions used

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread gsw
> do, but I'm opening another ticket -- #5990 -- which contains only a > patch for the developer's guide, with contributions from #4857, Alex's > wiki page, and my own additions. > > (I think that improving the documentation is important enough that we > shouldn't wait for other issues in #4857 to

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread gsw
> I'm following this thread because it seems close to what I have been > thinking about regarding eclib, which is also its own "upstream" in > the sense that the particular combination of source and Makefiles in > eclib exists only for inclusion in Sage.  When first packaging up > eclib code for S

[sage-devel] Re: Questions on "Producing New Sage Packages" in the devel guide

2009-05-05 Thread John Cremona
2009/5/5 gsw : > >> I'm following this thread because it seems close to what I have been >> thinking about regarding eclib, which is also its own "upstream" in >> the sense that the particular combination of source and Makefiles in >> eclib exists only for inclusion in Sage.  When first packaging

[sage-devel] Re: Final 3.4.2 sources released

2009-05-05 Thread Pablo De Napoli
>> >> On relative slow hardware it looks like a good idea to make >> installation of ATLAS and e.g. FLINT less time consuming. > > Well, for ATLAS we don't even run the test suite, so what you see at > the moment is as close to optimum as it gets. You can reuse a > previously build ATLAS (assuming

[sage-devel] Re: Nested classes

2009-05-05 Thread Nicolas M. Thiery
> Clever. That's actually a very good idea, which mostly negates my > concerns. :-) Credits shared with Carl and Mike! > Nonetheless, I would really like to hear from python-dev about what > *they* thinking about pickling and nested classes. What if there > are some good reasons for the curre

[sage-devel] #5991: Add a standard constructor for dynamic classes

2009-05-05 Thread Nicolas M. Thiery
Dear Franco, dear all, Patch of the day: #5991 Add a standard constructor for dynamic classes Franco, since you are using dynamic classes in Sage-Words, could you review or comment on it? Thanks in advance, Cheers, Nicolas --

[sage-devel] Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
Hi, I have a question about Sage and the GPL. Here is the main question.. IF I write code in a Sage notebook, AND I redistribute the code, do I need to release my code under the GPL? Here is a bit of background... At a conference in the last year, one of the Sage developers was asked this que

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread David Joyner
On Tue, May 5, 2009 at 6:25 PM, Brian Granger wrote: > > Hi, > > I have a question about Sage and the GPL.  Here is the main question.. > > IF I write code in a Sage notebook, AND I redistribute the code, do I > need to release my code under the GPL? > > Here is a bit of background... > > At a co

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
>> At a conference in the last year, one of the Sage developers was asked >> this question, and their answer was... >> >> "You can do whatever you want with your code, you don't have to >> release it under the GPL" > I'm pretty sure that is correct. > http://www.gnu.org/licenses/gpl-faq.html#CanI

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Rob Beezer
On May 5, 3:25 pm, Brian Granger wrote: > IF I write code in a Sage notebook, AND I redistribute the code, do I > need to release my code under the GPL? The Sage worksheet at http://abstract.ups.edu/sage-aata.html contains Sage code that was not written in a notebook. While that could be obv

[sage-devel] strange rounding with SymbolicArithmetic

2009-05-05 Thread Henryk Trappmann
sage: a = 1/(48*sqrt(1)) - 7/(96*1**(3/2)) + 3/(32*1**(5/2)) - 5/ (128*1**(7/2)) sage: a 1/384 sage: for k in range(5): print a.n(digits=10-k) : 0.00260418 0.00260416669 0.0026041665 0.002604164 0.00260419 sage: b = 1/384 sage: for k in range(5): print b.n(digits=10-k); : 0.0026041

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread David Joyner
On Tue, May 5, 2009 at 7:32 PM, Brian Granger wrote: > >>> At a conference in the last year, one of the Sage developers was asked >>> this question, and their answer was... >>> >>> "You can do whatever you want with your code, you don't have to >>> release it under the GPL" > >> I'm pretty sure t

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Jason Grout
William Stein wrote: > On Tue, May 5, 2009 at 7:53 AM, Mike Hansen wrote: >> On Tue, May 5, 2009 at 7:20 AM, William Stein wrote: >>> Does anybody know how to live streaming video broadcasts? I.e., >>> something like Skype, but where arbitrarily many people can view the >>> video live all at on

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Alex Ghitza
On Wed, May 6, 2009 at 2:33 AM, William Stein wrote: > Can 2 or 3 people who won't be at Sage Days respond and say they would > actually > watch a live video stream from Sage Days, if I post one?  If so, then > I'll do it (if not, I > won't waste the time). > I can't work out right now what tim

[sage-devel] Re: strange rounding with SymbolicArithmetic

2009-05-05 Thread Nick Alexander
On 5-May-09, at 5:00 PM, Henryk Trappmann wrote: > > sage: a = 1/(48*sqrt(1)) - 7/(96*1**(3/2)) + 3/(32*1**(5/2)) - 5/ > (128*1**(7/2)) > sage: a > 1/384 > sage: for k in range(5): print a.n(digits=10-k) > : > 0.00260418 > 0.00260416669 > 0.0026041665 > 0.002604164 > 0.00260419 I cannot

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> The Sage worksheet at > > http://abstract.ups.edu/sage-aata.html > > contains Sage code that was not written in a notebook.  While that > could be obvious if you actually looked at the file, technically I > think there is no way to prove just where I wrote it - notebook or > not. Regardless of

[sage-devel] Graph Theory latex(G), global name 'latex' is not defined

2009-05-05 Thread Fidel
Hello, I'm running Sage Version 3.4.1 on ubuntu 8.04. I'm trying to implement latex(G) for a graph G. After creating my own branch to work in I executed the command sage -b to build the library and got no errors. Within the latex(G) procedure I have this fragment of code for u in self:

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Jason Grout
Brian Granger wrote: >> The Sage worksheet at >> >> http://abstract.ups.edu/sage-aata.html >> >> contains Sage code that was not written in a notebook. While that >> could be obvious if you actually looked at the file, technically I >> think there is no way to prove just where I wrote it - notebo

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread David Joyner
On Tue, May 5, 2009 at 9:33 PM, Brian Granger wrote: > >> The Sage worksheet at >> >> http://abstract.ups.edu/sage-aata.html >> >> contains Sage code that was not written in a notebook.  While that >> could be obvious if you actually looked at the file, technically I >> think there is no way to p

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread Dan Drake
On Tue, 05 May 2009 at 09:33AM -0700, William Stein wrote: > Can 2 or 3 people who won't be at Sage Days respond and say they would > actually watch a live video stream from Sage Days, if I post one? If > so, then I'll do it (if not, I won't waste the time). I'd like to watch live (and ask questi

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Robert Bradshaw
On May 5, 2009, at 6:33 PM, Brian Granger wrote: >> The Sage worksheet at >> >> http://abstract.ups.edu/sage-aata.html >> >> contains Sage code that was not written in a notebook. While that >> could be obvious if you actually looked at the file, technically I >> think there is no way to prove j

[sage-devel] Re: Graph Theory latex(G), global name 'latex' is not defined

2009-05-05 Thread Jason Grout
Fidel wrote: > Hello, > > I'm running Sage Version 3.4.1 on ubuntu 8.04. > > I'm trying to implement latex(G) for a graph G. After creating my own > branch to work in I executed the command > > sage -b > > to build the library and got no errors. > > Within the latex(G) procedure I have this f

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> How is it a derived work of Sage?  That argument seems to lead to the > conclusion that my C code would be considered a derived work of GCC. Your GCC compiled code is a derived work and that (in my understanding) is why there exists the so called "runtime exception" to the GPL that covers this

[sage-devel] Re: Graph Theory latex(G), global name 'latex' is not

2009-05-05 Thread Nick Alexander
> So apparently it's: > > from sage.misc.latex import latex Just for the record, it's often easier to do: sage: latex.__module__ 'sage.misc.latex' Nick --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from thi

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
Brian, > A sage worksheet is no more a derived work of Sage than a jpeg would > be a derived work of Photoshop/GIMP or a .doc file would be a derived > work of MS Office or OpenOffice. I disagree. A jpeg or .doc file is not source code in any sense of the word, thus the GPL is completely irrele

[sage-devel] GPL license statements in Sage library files

2009-05-05 Thread Dan Drake
The "Clarification of Sage and GPL" thread reminded me of something I've noticed: in Sage library files, I often see this license statement: #** # Copyright (C) 200x Name # # Distributed under the terms of the GNU General

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Gonzalo Tornaria
On Tue, May 5, 2009 at 10:56 PM, Brian Granger wrote: >> How is it a derived work of Sage?  That argument seems to lead to the >> conclusion that my C code would be considered a derived work of GCC. > > Your GCC compiled code is a derived work and that (in my > understanding) is why there exists

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> Sage functions in a simailr way that GIMP does. If I create an image in > GIMP from scratch then I own the copyright to that image. The license of GIMP, > which functions as an editor,  a viewer, has it's own plugins for > postprocessing, ... > have nothing to do with it. GIMP is written in a p

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Gonzalo Tornaria
On Tue, May 5, 2009 at 11:05 PM, Brian Granger wrote: > The FSF asserts that if I develop code that merely links to GPL > software (static or dynamic), my code is bound by the GPL.  I don't > have to modify the GPL software and I don't even have to distribute > it. When you compile and link agai

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> The runtime exception is to allow the use of the gcc runtime, which is > a library gcc links to your code when you need to produce a program > which runs. AFAICT, if you replaced the gcc runtime with something > else, or you just used the object files compiled by gcc (no linking), > you wouldn't

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Ondrej Certik
On Tue, May 5, 2009 at 7:18 PM, Brian Granger wrote: > >> The runtime exception is to allow the use of the gcc runtime, which is >> a library gcc links to your code when you need to produce a program >> which runs. AFAICT, if you replaced the gcc runtime with something >> else, or you just used t

[sage-devel] Re: Graph Theory latex(G), global name 'latex' is not

2009-05-05 Thread Rob Beezer
Fidel, I needed to handle this for the (experimental) patch at http://trac.sagemath.org/sage_trac/ticket/5975 Someone can correct me on the finer points of this, but there is now a global object named latex, which is an instance of the Latex class. So the construction latex(u) can be changed to

[sage-devel] Re: GPL license statements in Sage library files

2009-05-05 Thread Jason Grout
Dan Drake wrote: > The "Clarification of Sage and GPL" thread reminded me of something I've > noticed: in Sage library files, I often see this license statement: > > #** > # Copyright (C) 200x Name > # > # Distributed und

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Jason Grout
Ondrej Certik wrote: > On Tue, May 5, 2009 at 7:18 PM, Brian Granger wrote: >>> The runtime exception is to allow the use of the gcc runtime, which is >>> a library gcc links to your code when you need to produce a program >>> which runs. AFAICT, if you replaced the gcc runtime with something >>>

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> Obviously everyone understands this differently. But I thought that if > I have a script A: > > --- > from sage.all import x > print x**2 > --- > > Then my script has to be GPL, because it is dynamically loading a GPL > library (without any runtime exception) *and* my script doesn't work

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Rob Beezer
Ondrej, Caveat: my understanding of US copyright law and software licenses. When you create something (book, photo, program) you automatically have a copyright in/on that work. You may control the creation of copies. With a GPL/GFDL license you explicitly grant others further freedoms - someon

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> I claim this is still silly. Then I think you think the GPL is silly and I agree with you :-) > Did you actually load Sage to write the > above two lines?  Or did you just type two lines in your email program? >  (My guess is the latter).  So why in the world would the license for > Sage affec

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Brian Granger
> When you create something (book, photo, program) you automatically > have a copyright in/on that work. Yep. > You may control the creation of > copies.  With a GPL/GFDL license you explicitly grant others further > freedoms - someone may make unlimited copies.  They may make > modifications.  

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread Gonzalo Tornaria
On Tue, May 5, 2009 at 11:48 PM, Brian Granger wrote: > This is all true.  But modifying an original work is not the only way > of creating a derived work.  Ondrej's script *is* a derived work under > the definition that the FSF gives (when run, it dynamically links to > Sage). Well... since Ond

[sage-devel] Re: Fwd: FInally the link to download SAGElwlcd ISO!

2009-05-05 Thread Lucio Lastra
Alfredo, now that I have my space, it would be really nice to cross links between accounts so people can choose the option that fits the best for them. Not to mention is also because we are part of the same. I'm not sure how to post a link to your webpage, otherwise I'll have done it. Greetings

[sage-devel] Re: Clarification of Sage and GPL

2009-05-05 Thread David Joyner
On Tue, May 5, 2009 at 10:48 PM, Brian Granger wrote: > >> When you create something (book, photo, program) you automatically >> have a copyright in/on that work. > > Yep. > >> You may control the creation of >> copies.  With a GPL/GFDL license you explicitly grant others further >> freedoms - so

  1   2   >