Re: [sage-devel] matrix output strangeness

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 6:26 AM, John Cremona wrote: > Something is not quite right in the cleverness used to output matrices: > > sage: M > 76 x 58 dense matrix over Integer Ring (type 'print M.str()' to see > all of the entries) > sage: M.hermite_form() > 76 x 58 dense matrix over Integer Ring (

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

2010-11-14 Thread rjf
On Nov 14, 11:45 am, "Dr. David Kirkby" wrote: > > I asked RJF what languge he thought the interface should be. As 10 options I > consider might be viable choises where > Whether there should be a single language for implementation and user interface for a computer algebra system has occupied

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

2010-11-14 Thread Tim Daly
On 11/14/2010 10:37 PM, William Stein wrote: On Sun, Nov 14, 2010 at 6:48 PM, Eviatar wrote: I thought Python was strongly typed. Definition from Wikipedia: "Most generally, "strong typing" implies that the programming language places severe restrictions on the intermixing that is permitted

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

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 6:48 PM, Eviatar wrote: > I thought Python was strongly typed. Definition from Wikipedia: > > "Most generally, "strong typing" implies that the programming language > places severe restrictions on the intermixing that is permitted to > occur, preventing the compiling or run

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

2010-11-14 Thread Eviatar
I thought Python was strongly typed. Definition from Wikipedia: "Most generally, "strong typing" implies that the programming language places severe restrictions on the intermixing that is permitted to occur, preventing the compiling or running of source code which uses data in what is considered

Re: [sage-devel] Adding patch as a standard package

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 3:39 PM, Dan Drake wrote: > On Sun, 14 Nov 2010 at 02:00PM +0100, Jeroen Demeyer wrote: >> There is some work being done at #9418 at make GNU patch a standard >> package such that, in the future, spkgs will be able to use "patch" >> instead of "cp" to apply patches. >> >> I

Re: [sage-devel] Adding patch as a standard package

2010-11-14 Thread Dr. David Kirkby
On 11/14/10 11:39 PM, Dan Drake wrote: On Sun, 14 Nov 2010 at 02:00PM +0100, Jeroen Demeyer wrote: There is some work being done at #9418 at make GNU patch a standard package such that, in the future, spkgs will be able to use "patch" instead of "cp" to apply patches. It is a very simple soluti

Re: [sage-devel] Adding patch as a standard package

2010-11-14 Thread Dan Drake
On Sun, 14 Nov 2010 at 02:00PM +0100, Jeroen Demeyer wrote: > There is some work being done at #9418 at make GNU patch a standard > package such that, in the future, spkgs will be able to use "patch" > instead of "cp" to apply patches. > > It is a very simple solution which allows for: > * patchin

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

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 3:17 PM, Tim Daly wrote: > In addition, I believe that a computational mathematics > language has to have a strong connection to the underlying > mathematics. In Axiom's case, abstract algebra provides the > mathematical framework for providing categories around which > the

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

2010-11-14 Thread Tim Daly
I am not the best person to ask as I have a vested interest. I find that mathematical notation is strongly context sensitive which gets translated into types when done as computational mathematics. Thus, I believe that a mathematical language needs to be strongly typed. Python is not strongly ty

Re: [sage-devel] Adding patch as a standard package

2010-11-14 Thread Dr. David Kirkby
On 11/14/10 08:51 PM, William Stein wrote: On Sun, Nov 14, 2010 at 5:00 AM, Jeroen Demeyer wrote: Hello all, There is some work being done at #9418 at make GNU patch a standard package such that, in the future, spkgs will be able to use "patch" instead of "cp" to apply patches. It is a very s

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

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 1:14 PM, wrote: >  Hello! >  Please excuse me if I'm asking a question that has already been > answered somewhere. :) >  Does this service exist for asking the questions on certain > specific problems and algorithms or for some kind of generic questions? >  For example, if

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

2010-11-14 Thread v_2e
Hello! Please excuse me if I'm asking a question that has already been answered somewhere. :) Does this service exist for asking the questions on certain specific problems and algorithms or for some kind of generic questions? For example, if I have some problem to solve, but I do not know h

[sage-devel] ask.sagemath.org

2010-11-14 Thread William Stein
Hi, I just wanted to send a quick update about http://ask.sagemath.org. There are now nearly 200 participants, and also nearly 200 questions have been asked, with most answered. The person with the top karma for answering questions is Mike Hansen. So a big shout out to Mike. Also, Niles Johnson

[sage-devel] Re: experiment with a new version of the SageTeX package

2010-11-14 Thread jyr
Hi, First of all let me say that I am currently writing a math text book where I am using a lot of sagetex and I think it is a great package! Having said that as a "user" I am a bit concerned that the syntax of sagetex is going to change if I want to publish the latex sources or describe examples

Re: [sage-devel] #10263: Headings of Sage library code files should state GPLv2+ instead of GPL without version

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 5:29 AM, Jeroen Demeyer wrote: > In the developer documentation, in the section "Headings of Sage library > code files", there is an example heading stating > #* > #       Copyright (C) 2008 YOUR NA

Re: [sage-devel] Adding patch as a standard package

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 5:00 AM, Jeroen Demeyer wrote: > Hello all, > > There is some work being done at #9418 at make GNU patch a standard > package such that, in the future, spkgs will be able to use "patch" > instead of "cp" to apply patches. > > It is a very simple solution which allows for: >

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

2010-11-14 Thread Dr. David Kirkby
On 11/14/10 07:00 PM, Tim Daly wrote: I find it amusing that mathematicians are being told that a math-specific language is a liability. Mathematics is, after all, a specialized language that took me years to learn. I asked RJF what languge he thought the interface should be. As 10 options I c

Re: [sage-devel] Renaming the debugging function trace() to trace_execution()

2010-11-14 Thread William Stein
On Sat, Nov 13, 2010 at 3:02 PM, Jeroen Demeyer wrote: > At #9704, there is a positively reviewed proposal to rename the > debugging function trace() to trace_execution() and to use trace() in > the mathematical sense. > > I have nothing to do with that ticket, but I would like to point it out > i

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

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 11:00 AM, Tim Daly wrote: >  I find it amusing that mathematicians are being told that > a math-specific language is a liability. Mathematics is, > after all, a specialized language that took me years to > learn. > > In any problem you wish to solve with a program there is

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

2010-11-14 Thread Johan S. R. Nielsen
On Nov 13, 4:13 pm, rjf wrote: > On Nov 13, 6:32 am, "Johan S. R. Nielsen" > wrote: > > > two info boxes on this suggested "Why Sage"-page. > > > I don't think that Python is the perfect language to write mathematics > > software with; I would definitely vote on a much more functional > > languag

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

2010-11-14 Thread Tim Daly
I find it amusing that mathematicians are being told that a math-specific language is a liability. Mathematics is, after all, a specialized language that took me years to learn. In any problem you wish to solve with a program there is always an impedance mismatch (like hooking a soda straw to a

Re: [sage-devel] Re: Renaming the debugging function trace() to trace_execution()

2010-11-14 Thread Francois Maltey
Dear all, Students discover Sage for mathematical computations, and the functions are the most usual way to write mathematics. So I prefer a light interface with the matrix function "trace(...)". The determinant is a function and a method... but trace is only a method. And .methods() aren't ful

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

2010-11-14 Thread William Stein
On Sun, Nov 14, 2010 at 5:31 AM, Dima Pasechnik wrote: > > > On Nov 14, 1:51 pm, William Stein wrote: >> Hi, >> >> This thread is about sum. >> >> 1. Dima said: >> >> > I don't think sum() method is needed. It's certainly a code bloat. >> >> This is a very, very misinformed comment. I want to add

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

2010-11-14 Thread Mathieu Guay-Paquet
On Nov 14, 1:51 am, William Stein wrote: > 1. Dima said: > > I don't think sum() method is needed. It's certainly a code bloat. > > Yes, the two methods accomplish the same thing. Actually, there is also a slight (but sometimes significant) functional difference between the two methods: sage: f

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

2010-11-14 Thread Jonathan
Second +1 Jonathan On Nov 13, 9:07 pm, "Dr. David Kirkby" wrote: > On 11/14/10 02:54 AM, Eviatar wrote: > > > Anyway, I made an updated version (linking seems to work now): > > >http://oi55.tinypic.com/rclh5l.jpg > > I think that's better. At least the maths part is first. > > Dave -- To post t

[sage-devel] matrix output strangeness

2010-11-14 Thread John Cremona
Something is not quite right in the cleverness used to output matrices: sage: M 76 x 58 dense matrix over Integer Ring (type 'print M.str()' to see all of the entries) sage: M.hermite_form() 76 x 58 dense matrix over Integer Ring (type 'print hnf-True-False.str()' to see all of the entries) John

[sage-devel] Re: Adding patch as a standard package

2010-11-14 Thread Dima Pasechnik
On Nov 14, 9:00 pm, Jeroen Demeyer wrote: > Hello all, > > There is some work being done at #9418 at make GNU patch a standard > package such that, in the future, spkgs will be able to use "patch" > instead of "cp" to apply patches. > > It is a very simple solution which allows for: > * patching

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

2010-11-14 Thread Dima Pasechnik
On Nov 14, 1:51 pm, William Stein wrote: > Hi, > > This thread is about sum. > > 1. Dima said: > > > I don't think sum() method is needed. It's certainly a code bloat. > > This is a very, very misinformed comment. I want to address it, > especially the statement "It's certainly a code bloat."  

[sage-devel] #10263: Headings of Sage library code files should state GPLv2+ instead of GPL without version

2010-11-14 Thread Jeroen Demeyer
In the developer documentation, in the section "Headings of Sage library code files", there is an example heading stating #* # Copyright (C) 2008 YOUR NAME # # Distributed under the terms of the GNU General Public L

[sage-devel] Adding patch as a standard package

2010-11-14 Thread Jeroen Demeyer
Hello all, There is some work being done at #9418 at make GNU patch a standard package such that, in the future, spkgs will be able to use "patch" instead of "cp" to apply patches. It is a very simple solution which allows for: * patching files depending on the system (e.g. if a patch needs to be

Re: [sage-devel] Re: Renaming the debugging function trace() to trace_execution()

2010-11-14 Thread Jeroen Demeyer
On 2010-11-14 09:59, François Bissey wrote: > I like your general argument and I like the name backtrace rather than trace > as well. Let me point out that backtrace() usually means something else: it gives the stack of functions called (Python calls it Traceback and prints it when an exception occ

Re: [sage-devel] Re: Renaming the debugging function trace() to trace_execution()

2010-11-14 Thread David Kirkby
On 14 November 2010 08:59, François Bissey wrote: >> Hi Jeroen! >> >> On 14 Nov., 00:02, Jeroen Demeyer wrote: >> > At #9704, there is a positively reviewed proposal to rename the >> > debugging function trace() to trace_execution() and to use trace() in >> > the mathematical sense. >> > >> > I h

Re: [sage-devel] Example worksheets contest

2010-11-14 Thread Tom Boothby
I've offered to make worksheets for publication in the past, and I'll commit to submitting 3 worksheets to this contest. Make it happen! On Sun, Nov 14, 2010 at 1:35 AM, mmarco wrote: > I wrote a message in an old thread about the need of good examples in > the documentation, but, i don't know w

[sage-devel] Example worksheets contest

2010-11-14 Thread mmarco
I wrote a message in an old thread about the need of good examples in the documentation, but, i don't know why, it didn't show up. So i reproduce it here: > Sorry for bringing a thread back to life several months later, but > reading some other threads about publicly available examples this one >

[sage-devel] preparser and from __future__ import problem

2010-11-14 Thread Gennady N. Uraltsev
Hey Guys, Sorry for the repost. I have already posted this some months ago but it received no answer on sage-support. I am afraid this is a bug but the guidelines ask to first post here before reporting something on trac. Could you look into this (I have done the best to illustrate the problem):

Re: [sage-devel] Re: Renaming the debugging function trace() to trace_execution()

2010-11-14 Thread François Bissey
> Hi Jeroen! > > On 14 Nov., 00:02, Jeroen Demeyer wrote: > > At #9704, there is a positively reviewed proposal to rename the > > debugging function trace() to trace_execution() and to use trace() in > > the mathematical sense. > > > > I have nothing to do with that ticket, but I would like to p

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

2010-11-14 Thread Dima Pasechnik
On Nov 13, 12:30 pm, Robert Bradshaw wrote: > 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() > >>>