[sage-devel] Re: Benchmark in Sage

2013-07-31 Thread Volker Braun
Use timeit to benchmark: sage: timeit('1+1') 625 loops, best of 3: 729 ns per loop "man time" will explain real/user/sys if you want to know: The time command runs the specified program command with the given arguments. When command finishes, time writes a message to standard

[sage-devel] Benchmark in Sage

2013-07-31 Thread VerĂ³nica Suaste
Hi, I want to compare different algorithms in terms of time. When I put %time I get these three data as output CPU times, sys and wall time. Somebody can explain me(or suggest a link) what it means each one, and how should I consider each one for comparisson? Thanks! VerĂ³nica -- You receive

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Volker Braun
On Wednesday, July 31, 2013 8:57:35 PM UTC-4, Travis Scrimshaw wrote: >Suppose you have [...] > Sometimes you might have to check the type in library code, but it shouldn't be necessary for the user. You'll have to know about the factory function pattern if you want to read and understand t

[sage-devel] Re: Trying to build 5.11.beta3 using cygwin64

2013-07-31 Thread Travis Scrimshaw
Hey Jean-Pierre, I have been trying to do it on Cygwin32 and with zlib-1.2.6.p0 (I had to make my own from zlib-1.2.6 since the link on the trac ticket is no longer there) and now python-2.7.5.p1 fails to build (the end portion of the log is below). I'll try the Cygwin64 with your patched MPI

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Travis Scrimshaw
Hey Volker, On Thursday, August 1, 2013 5:45:34 AM UTC+9, Volker Braun wrote: > > On Wednesday, July 31, 2013 1:45:42 AM UTC-4, Travis Scrimshaw wrote: > >> I don't like factory functions since you call Permutations(blah) and get >> an object of type Permutations_class, which make the code more d

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Andrew Mathas
On Tuesday, 30 July 2013 14:18:28 UTC+2, Simon King wrote: > > Hi all, > > On 2013-07-29, Simon King > wrote: > > After all, we have a class, and we call the class as if to create an > > instance---but what we get is in fact not an instance of this class, but > > is instance of a *totally* di

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Andrew Mathas
Hi Simon, > > Partition and PartitionTuple are not closely related. They are in fact > *totally* > different: > There are two quite different and quite valid comparisons here: mathematical and implementation. The main point that I was making is mathematical. Of course, you are saying tht if

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Volker Braun
On Wednesday, July 31, 2013 1:45:42 AM UTC-4, Travis Scrimshaw wrote: > I don't like factory functions since you call Permutations(blah) and get > an object of type Permutations_class, which make the code more difficult to > understand wrt type-checking. > First of all you shouldn't type check.

Re: [fricas-devel] Re: [sage-devel] Ubuntu/Debian packages

2013-07-31 Thread William Stein
On Mon, Jul 29, 2013 at 10:39 AM, Ralf Hemmecke wrote: >> Bill Page made a project on cloud called "Test Aldor in Sage Cloud", >> added me to it, and I've now added you to it. >> I "apt-get install"'ed the packages you mentioned above. There's a >> directory in the project called "fricas" and a

Re: [sage-devel] Re: should bool(x > 0) be False or an exception?

2013-07-31 Thread kroeker
Am Sonntag, 13. April 2008 02:39:24 UTC+2 schrieb William Stein: > On Sat, Apr 12, 2008 at 5:33 PM, Carl Witty wrote: > > > > On Apr 12, 8:58 am, Jason Grout wrote: > > > Carl Witty wrote: > > > > On Apr 10, 1:41 am, Simon King wrote: > > > >> On Apr 10, 4:18 am, Carl Witty wrote: > > > >

[sage-devel] Re: Trying to build 5.11.beta3 using cygwin64

2013-07-31 Thread Jean-Pierre Flori
You can get an MPIR working on Cygwin64 at https://github.com/jpflori/mpir (clone, configure, make dist, craft your own spkg) As a side effect, I broke it on Cygwin32 :) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this grou