[IronPython] Re: Nice speed

2005-04-26 Thread Michael Spencer
Travis Watkins wrote: Never trust the program you're running to give you accurate time. I thought (and think) that the measurements are sufficiently accurate, and the differences sufficiently marked to support the speed claim. I also ran the test with much longer cycles, checked the reported ti

Re: [IronPython] Nice speed

2005-04-26 Thread Travis Watkins
On 4/26/05, Michael Spencer <[EMAIL PROTECTED]> wrote: > IronPython runs this sieve function 20-30% faster than CPython > > def primes2(n): > if n<2: return [] > s=range(1,n,2) # [1,3,5n | n-1] > s[0] = 2 > len_s = len(s) > for i in xrange(1,int(sqrt(n)/2)+1): >

[IronPython] Nice speed

2005-04-26 Thread Michael Spencer
IronPython runs this sieve function 20-30% faster than CPython def primes2(n): if n<2: return [] s=range(1,n,2) # [1,3,5n | n-1] s[0] = 2 len_s = len(s) for i in xrange(1,int(sqrt(n)/2)+1): m = s[i] if m: j=(m*m)/2 while j return [

RE: [IronPython] Saving sys.path

2005-04-26 Thread Keith J. Farmer
Perhaps (to at least keep the .NET way) a .config file instead of an environment variable? That file *could* specify one or more startup files, to maintain the Python mystique. From: [EMAIL PROTECTED] on behalf of Michael Spencer Sent: Tue 4/26/2005 3:52 PM To

[IronPython] Saving sys.path

2005-04-26 Thread Michael Spencer
Second feature request of the week: I would like to save sys.path settings between interpreter sessions. Is there a way to do this today? If not, could there be an OS environment variable for this or, a startup.py file loaded each time the interpreter starts? Thanks Michael __

[IronPython] Re: reload or workaround

2005-04-26 Thread Michael Spencer
Jim Hugunin wrote: Michael Spencer wrote: Since reload is not available yet, what is the best workaround for re- compiling changed source for imported modules? Execfile is a good option for many situations and was implemented to make sure we had at least a partial reload story. Thanks, that *is*

RE: [IronPython] reload or workaround

2005-04-26 Thread Jim Hugunin
Michael Spencer wrote: > Since reload is not available yet, what is the best workaround for re- > compiling > changed source for imported modules? Execfile is a good option for many situations and was implemented to make sure we had at least a partial reload story. Until we get great IDE support,

[IronPython] reload or workaround

2005-04-26 Thread Michael Spencer
Congrats and thanks for the 0.73 release Since reload is not available yet, what is the best workaround for re-compiling changed source for imported modules? The exe/pdf files cannot be deleted del sys.modules[...] followed by import ... raises a System.IO.IOException Until now, I have been resta

RE: [IronPython] IronPython 0.7.3 Released

2005-04-26 Thread Keith J. Farmer
Out of curiosity, is there a feel for when 1.0 should be reached (excluding bug fixes), or some other roadmap? <>___ users-ironpython.com mailing list users-ironpython.com@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.c

RE: [IronPython] Overloading OnPaint etc.

2005-04-26 Thread Jim Hugunin
This is broken. Unfortunately, you should assume that in IronPython 0.7.3 you can't override any methods from a CLS super type so that it will be seen from the CLS side. FYI - It is possible in IronPython 0.7.3 to override a very small set of methods from a CLS super type in such a way that ot

[IronPython] IronPython 0.7.3 Released

2005-04-26 Thread Martin Maly
Hello IronPython community, Today we have released IronPython 0.7.3. The main changes over the 0.7.2 release are: * Operator overloading. Following code now works in IronPython: ... x = Mapack.Matrix.Random(2,3) y = Mapack.Matrix.Random(3,5) x * y * Empty construct

RE: [IronPython] Questions for FAQ or User Guide

2005-04-26 Thread Jim Hugunin
I've been working on a blog entry that tries to cover this in great detail. Rather than go silent until I find time to complete that, I thought I should chime in a little here. When working with CLS libraries, IronPython tries first to ensure that nothing is impossible and second to make intera