Re: [sage-devel] Re: Website Feature Request: Public Examples Webpage / Workbook

2010-11-12 Thread David Kirkby
On 12 November 2010 21:48, Chris Swierczewski wrote: >> I really believe Sage needs to ship with a number of decent "published" >> examples. If one looks on any Sage server, one sees a list of published >> worksheets, many of which are either error messages, sometimes spam, and >> generally of ver

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Dima Pasechnik
-- | Sage Version 4.6, Release Date: 2010-10-30 | | Type notebook() for the GUI, and license() for information.| -- sage: for r in

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Maxim
Robert Bradshaw wrote: > [...] For almost > any kind of linear algebra, you're better off using RDF, or even numpy > directly. Thanks for that! Using numpy arrays just gave a new breath of life to my 8GB ram! Now the example in my first post takes... 277KB instead of 4.5GB, which is closer to my

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Dima Pasechnik
It's not only division (both on Sage 4.5* and on 4.6, with minor differences in memory usage figures): sage: get_memory_usage() 811.38671875 sage: A=vector(range(0,7000))*(1/2) sage: get_memory_usage() 3059.31640625 On Nov 13, 12:30 pm, Robert Bradshaw wrote: > On Fri, Nov 12, 2010 at 7:10 PM, J

[sage-devel] Re: self.sum() method on vector made of int is not defined

2010-11-12 Thread Dima Pasechnik
I don't think sum() method is needed. It's certainly a code bloat. Could you check that sum() in vector_double_dense can be removed? (remove it there, do sage -b, run testsuite, see if there were any errors caused by it) On Nov 13, 12:59 pm, Maxim wrote: > If I try to find the sum of a vector of

[sage-devel] self.sum() method on vector made of int is not defined

2010-11-12 Thread Maxim
If I try to find the sum of a vector of floats that way, it works as expected: sage: vector([1,float(2),3]).sum() -> 6.0 However, applying the same logic on a vector made of integers: sage: vector([1,2,3]).sum() -> Traceback (click to the left of this block for traceback) ... AttributeErro

Re: [sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Robert Bradshaw
On Fri, Nov 12, 2010 at 10:18 AM, rjf wrote: > > > On Nov 12, 8:46 am, "Dr. David Kirkby" > wrote: >> On 11/12/10 04:13 PM, rjf wrote: > . >> >> > It seems to me the obvious first point for "Why Sage"  is >> > that Sage provides access to mathematical software. >> >> Well, there are lots of m

Re: [sage-devel] spkg policy: which files to track in "patches" directory?

2010-11-12 Thread Robert Bradshaw
On Fri, Nov 12, 2010 at 6:14 PM, Minh Nguyen wrote: > Hi John, > > On Sat, Nov 13, 2010 at 10:49 AM, John H Palmieri > wrote: >> (Personally, I think it should be tracked, but this is not a strongly >> held opinion.  One argument the other way: if it's in .hgignore, then >> the spkg will be small

Re: [sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Robert Bradshaw
On Fri, Nov 12, 2010 at 7:10 PM, Jason Grout wrote: > On 11/12/10 8:48 PM, Jason Grout wrote: >> >> On 11/12/10 6:22 PM, Maxim wrote: >>> >>> I get very high memory usage when I do something like: >>> sage: get_memory_usage() >>> -> 809.9453125 >>> sage: A=vector(range(0,1))/1 >>> sage: get_me

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Jason Grout
On 11/12/10 8:48 PM, Jason Grout wrote: On 11/12/10 6:22 PM, Maxim wrote: I get very high memory usage when I do something like: sage: get_memory_usage() -> 809.9453125 sage: A=vector(range(0,1))/1 sage: get_memory_usage() -> 5393.2734375 Which is a whooping 4.5GB+ of memory to hold a 1

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Jason Grout
On 11/12/10 6:22 PM, Maxim wrote: I get very high memory usage when I do something like: sage: get_memory_usage() -> 809.9453125 sage: A=vector(range(0,1))/1 sage: get_memory_usage() -> 5393.2734375 Which is a whooping 4.5GB+ of memory to hold a 1 float vector... I would have thought

Re: [sage-devel] spkg policy: which files to track in "patches" directory?

2010-11-12 Thread Minh Nguyen
Hi John, On Sat, Nov 13, 2010 at 10:49 AM, John H Palmieri wrote: > (Personally, I think it should be tracked, but this is not a strongly > held opinion. One argument the other way: if it's in .hgignore, then > the spkg will be smaller, and besides, the relevant information is > already availabl

Re: [sage-devel] Website Feature Request: Public Examples Webpage / Workbook

2010-11-12 Thread Minh Nguyen
Hi Chris, On Fri, Nov 12, 2010 at 5:26 PM, Chris Swierczewski wrote: > Q: Does this sound like a good thing to have on the Sage website? Yes. Absolutely. > Q: How would such a service be implemented? I was thinking about a > public Sage Notebook of some sort. That way people can play with the

[sage-devel] Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Maxim
I get very high memory usage when I do something like: sage: get_memory_usage() -> 809.9453125 sage: A=vector(range(0,1))/1 sage: get_memory_usage() -> 5393.2734375 Which is a whooping 4.5GB+ of memory to hold a 1 float vector... I would have thought more of something along the lines of 2

[sage-devel] spkg policy: which files to track in "patches" directory?

2010-11-12 Thread John H Palmieri
This question came up on a trac ticket recently: when working on an spkg, in the patches directory there might be files like file.py file.py.patch Then the spkg-install file copies file.py to the appropriate place in src, while file.py.patch documents the changes. Certainly file.py.patch s

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Eviatar
Thank you. On Nov 12, 3:10 pm, David Joyner wrote: > On Fri, Nov 12, 2010 at 9:04 AM, Johan S. R. Nielsen > > wrote: > > A little C-procrastination and relocation to my own site, and Google > > is ok: > > >http://www.student.dtu.dk/~jsrn/whysage.jpg > > +1 > > > > ... > > > > > > > > > > > --> T

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Eviatar
All good points. Also, it is probably the most readable of any mainstream language (Mathematica is awful in that department). I think it appeals to researchers in fields other than mathematics computer science since it can be learned quickly. On Nov 12, 3:02 pm, v...@ukr.net wrote: > On Fri, 12 No

Re: [sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread David Joyner
On Fri, Nov 12, 2010 at 9:04 AM, Johan S. R. Nielsen wrote: > A little C-procrastination and relocation to my own site, and Google > is ok: > > http://www.student.dtu.dk/~jsrn/whysage.jpg +1 > ... > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe f

Re: [sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread v_2e
On Fri, 12 Nov 2010 10:46:37 -0800 (PST) kcrisman wrote: > But now it's a moot point. Maxima uses Lisp; Sage has Python; XYZ has > WTQ; etc. For some people Python is a selling point; let it be a > selling point, then. > Python is definitely a selling point since - there already ARE many pe

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread rjf
On Nov 12, 10:46 am, kcrisman wrote: > > My view is that there has been excessive boosterism for Python, > Perhaps. > > So having packages in Python doesn't matter, and therefore it is not > > really a selling point and > > maybe should not be mentioned prominently because users don't care?? > >

[sage-devel] Re: Website Feature Request: Public Examples Webpage / Workbook

2010-11-12 Thread Chris Swierczewski
> I really believe Sage needs to ship with a number of decent "published" > examples. If one looks on any Sage server, one sees a list of published > worksheets, many of which are either error messages, sometimes spam, and > generally of very low quality. Or worksheets related to mere homework pro

Re: [sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Geoff Ehrman
> > Perhaps the "free" and "open-source" boxes should be merged, since the > latter implies the former. However, I did mention that the user can > verify and contribute to the algorithms he/she uses, which I think is > an important point. If you're using free in the FSF/GNU sense of the word, ope

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Eviatar
On Nov 12, 6:04 am, "Johan S. R. Nielsen" wrote: > A little C-procrastination and relocation to my own site, and Google > is ok: > > http://www.student.dtu.dk/~jsrn/whysage.jpg Thank you. On Nov 12, 8:13 am, rjf wrote: > It seems to me that being free and open source, the first couple of > poin

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread kcrisman
> My view is that there has been excessive boosterism for Python, Perhaps. > So having packages in Python doesn't matter, and therefore it is not > really a selling point and > maybe should not be mentioned prominently because users don't care?? At least pedagogical users care. It is possible Pyt

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread rjf
On Nov 12, 8:46 am, "Dr. David Kirkby" wrote: > On 11/12/10 04:13 PM, rjf wrote: . > > > It seems to me the obvious first point for "Why Sage"  is > > that Sage provides access to mathematical software. > > Well, there are lots of mathematical software too. True, but at least it gets you in

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Bill Hart
On Nov 12, 4:46 pm, "Dr. David Kirkby" wrote: > On 11/12/10 04:13 PM, rjf wrote: > > > It seems to me that being free and open source, the first couple of > > points, > > hardly describes the salient features of Sage, simply because there > > are > > tens of thousands of other programs, includin

Re: [sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Dr. David Kirkby
On 11/12/10 04:13 PM, rjf wrote: It seems to me that being free and open source, the first couple of points, hardly describes the salient features of Sage, simply because there are tens of thousands of other programs, including many many losers, which are also free and open source. It doesn't gr

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread rjf
It seems to me that being free and open source, the first couple of points, hardly describes the salient features of Sage, simply because there are tens of thousands of other programs, including many many losers, which are also free and open source. It doesn't grab me. Wouldn't you describe GIMP,

Re: [sage-devel] How to profile I/O?

2010-11-12 Thread Dr. David Kirkby
On 11/12/10 03:10 PM, Dr. David Kirkby wrote: On 11/12/10 02:56 PM, Simon King wrote: Hi! On certain machines, I encounter the problem that the wall time for my computations is *much* more than the CPU time. For example, on one Sage is the place to look - use tools supplied with the opera

Re: [sage-devel] How to profile I/O?

2010-11-12 Thread Dr. David Kirkby
On 11/12/10 02:56 PM, Simon King wrote: Hi! On certain machines, I encounter the problem that the wall time for my computations is *much* more than the CPU time. For example, on one machine, the CPU time is 60 minutes, but the wall time is 330 minutes. On a different machine, the CPU time is 13

Re: [sage-devel] How to profile I/O?

2010-11-12 Thread Jeroen Demeyer
On 2010-11-12 15:56, Simon King wrote: > Hi! > > On certain machines, I encounter the problem that the wall time for my > computations is *much* more than the CPU time. For example, on one > machine, the CPU time is 60 minutes, but the wall time is 330 minutes. > On a different machine, the CPU ti

[sage-devel] How to profile I/O?

2010-11-12 Thread Simon King
Hi! On certain machines, I encounter the problem that the wall time for my computations is *much* more than the CPU time. For example, on one machine, the CPU time is 60 minutes, but the wall time is 330 minutes. On a different machine, the CPU time is 13 minutes but the wall time 19 minutes. So,

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Johan S. R. Nielsen
A little C-procrastination and relocation to my own site, and Google is ok: http://www.student.dtu.dk/~jsrn/whysage.jpg On Nov 12, 12:16 pm, Minh Nguyen wrote: > Hi Eviatar, > > On Fri, Nov 12, 2010 at 7:15 PM, Eviatar wrote: > > I made a quick mockup of a possible page, let me know what you th

Re: [sage-devel] Website Feature Request: Public Examples Webpage / Workbook

2010-11-12 Thread Dr. David Kirkby
On 11/12/10 06:26 AM, Chris Swierczewski wrote: A nifty service provided by some of the Ma* folks are webspaces where users could upload some powerful research-level. For example: * Mathematica: http://library.wolfram.com/ * Matlab: http://www.mathworks.com/matlabcentral/fileexchange/ * Maple:

Re: [sage-devel] "Why Sage?" Website Section

2010-11-12 Thread Minh Nguyen
Hi Eviatar, On Fri, Nov 12, 2010 at 7:15 PM, Eviatar wrote: > I made a quick mockup of a possible page, let me know what you think > please: Where is the mockup you're talking about. Please provide a URL to that mockup page you created? -- Regards Minh Van Nguyen -- To post to this group, se

[sage-devel] Re: interacts from the wiki in the library

2010-11-12 Thread pang
> 4. The scipy dev team is currently having a thread about setting up a > snippet web database for scipy. It's just in the planning stages now; maybe > we could work together with them on a system we both could use. That was a long thread! Let me sum it up: Many people liked gist, but many others

[sage-devel] Re: interacts from the wiki in the library

2010-11-12 Thread pang
On Nov 10, 11:45 am, pang wrote: > I searched for "wikiinteract" on trac, and came up with patches with > no testing at all: 9737, 9729, 9728 and 9623. I couldn't find an > example that is nicely tested. On second thought, these are not trivial to split and test. Roughly every line consists of on

Re: [sage-devel] Re: Base Conversion

2010-11-12 Thread Minh Nguyen
Hi Nick, On Fri, Nov 12, 2010 at 5:56 AM, Nick Alexander wrote: > sage: ZZ([1, 2], base=3) > 7 > sage: ZZ([1, 2], base=3).digits(2) > [1, 1, 1] > > My opinion is that this is short and already well supported, and much > more general than the special function OP suggests. Base conversion is an im

[sage-devel] Re: Does ECL need readline or termcap ?

2010-11-12 Thread cschwan
On Nov 12, 9:39 am, I wrote: > Hi, > > On Nov 11, 5:05 pm, "Dr. David Kirkby" > wrote: > > > I was just looking at a file in Sage, which lists the dependencies for > > ECL:. It has: > > > $(INST)/$(ECL): $(BASE) $(INST)/$(MPIR) $(INST)/$(TERMCAP) \ > >                  $(INST)/$(READLINE) $(IN

[sage-devel] Re: Sylvester matrix

2010-11-12 Thread luisfe
On Nov 11, 8:54 pm, Tom Boothby wrote: > > However I disagree a little here about the degree of zero polynomial. > > I would expect SylvesterMatrix(x^2, 0) > > > To be > > > [0 0] > > [0 0] > > Why do you expect that? What definition are you using for the Sylvester > Matrix? Well, it seems th

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread luisfe
On Nov 12, 9:17 am, Eviatar wrote: > Gah, it won't let me post links. Here it is in binary: > > 0110111101000111010001110011101000100010011010010110110101100111001100010011001100110010001011100110100101101101011101100111011001010111001101101111011000110110101100101110

[sage-devel] Re: Does ECL need readline or termcap ?

2010-11-12 Thread cschwan
Hi, On Nov 11, 5:05 pm, "Dr. David Kirkby" wrote: > I was just looking at a file in Sage, which lists the dependencies for ECL:. > It has: > > $(INST)/$(ECL): $(BASE) $(INST)/$(MPIR) $(INST)/$(TERMCAP) \ >                  $(INST)/$(READLINE) $(INST)/$(BOEHM_GC) > > which means ECL does not star

[sage-devel] Re: "Why Sage?" Website Section

2010-11-12 Thread Eviatar
Gah, it won't let me post links. Here it is in binary: 0110111101000111010001110011101000100010011010010110110101100111001100010011001100110010001011100110100101101101011101100111011001010111001101101111011000110110101100101110011101010111001100100110100101101101011

[sage-devel] "Why Sage?" Website Section

2010-11-12 Thread Eviatar
I think that the Sage website needs to communicate better the advantages of Sage, in an approachable and concise manner. There are some pages discussing this, but they are hidden in the library and are too text-heavy. I made a quick mockup of a possible page, let me know what you think please: In