Pywart: The problem with Rick Johnson

2013-06-12 Thread Mike Hansen


Is Rick Johnson the alter ego of Xah Lee, or is he the result of a cross 
breeding experiement with a troll by Saruman at Isengard?-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python scalability

2008-07-10 Thread Mike Hansen
 I have looked at the python
 success stories page and haven't come up with anyone quite like us.
 One of my project managers questions is: Are we the only company in the
 world with this kind and size of project?
 I want to say no, but am having trouble convincing myself, let alone him.

 If you are involved in this kind of thing please get in touch with me.

While Sage ( http://www.sagemath.org ) is more of a library than an
application, it is approximately 350k lines of Python and Cython (in
roughly a 2 to 1 ratio).  I think it has scaled surprisingly well.

--Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: sage vs enthought for sci computing

2008-07-09 Thread Mike Hansen
On Jul 7, 3:35 pm, [EMAIL PROTECTED] wrote:
 Hello,
 I have recently become interested in using python for scientific
 computing, and came across both sage and enthought. I am curious if
 anyone can tell me what the differences are between the two, since
 there seems to be a lot of overlap (from what I have seen). If my goal
 is to replace matlab (we do signal processing and stats on
 physiological data, with a lot of visualization), would sage or
 enthought get me going quicker? I realize that this is a pretty vague
 question, and I can probably accomplish the same with either, but what
 would lead me to choose one over the other?
 Thanks!

Hello,

If you are using Windows, you're better off using Enthought for now
since Sage does not run natively on Windows yet.  Hopefully by the end
of the year there will be a native version on Windows.

If you're on Linux or OS X (or Solaris in the near future), then Sage
does have some advantages.  If you build Sage from source (which
consists solely of type make once), then you get a copy of ATLAS
tuned to your machine which can provide a solid speedup for numerical
linear algebra problems.  You also get all of the symbolic and exact
arithmetic which may or may not be beneficial for your application.
Sage also comes with libraries so that you can script Octave or Matlab
or most any other system.

--Mike

Full disclosure: I'm a Sage developer :-)
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python Success stories

2008-04-22 Thread Mike Hansen
On Apr 22, 3:25 am, azrael [EMAIL PROTECTED] wrote:
 Hy guys,
 A friend of mine i a proud PERL developer which always keeps making
 jokes on python's cost.

 Please give me any arguments to cut him down about his commnets
 like :keep programing i python. maybe, one day, you will be able to
 program in VisualBasic

 This hurts. Please give me informations about realy famous
 aplications.

Sage ( http://www.sagemath.org ) is a pretty large Python computer
algebra system ( about 150,000 unique lines of Python and 75,000
unique lines of Cython as a rough estimate).  Python turned out to be
an _excellent_ language do this in since it allows for quick
development time for many things that aren't speed dependent while
allowing a seemless transition to fast code with Cython.

--Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: subprocess module is sorely deficient?

2008-04-22 Thread Mike Hansen
 I think the best solution would be to port Pexpect to windows which
 wouldn't be that difficult according to my reading of the code.  If
 only I had more free time!

Sage ( http://www.sagemath.org ) uses pexpect fairly extensively to
interface with all sorts of other systems.  We recently received
funding from Microsoft to do a native port of Sage (and all of its
components to Windows.  Part of this will most likely be a port of
pexpect to Windows.

--Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: How to factor using Python?

2008-03-11 Thread Mike Hansen
If one wants to do serious math using Python, the best bet is to use
Sage ( http://www.sagemath.org ).  Here are some examples:

sage: def f(x, bits=53):
: R = RealField(bits); z = R(x)
: return cos(R(pi) * factorial(z-1) / z)
sage: f(100.00,bits=1000)
0.2343

sage: a =
50818429800343305993022114330311033271249313957919046352679206262204589342623811236647989889145173098650749
sage: time ecm.factor(a)
CPU times: user 0.00 s, sys: 0.06 s, total: 0.06 s
Wall time: 2.63

[3478697,
 49998841,
 11927295803,
 518069464441,
 1858900129817,
 161610704597143,
 157394131396743433859615518992811454816816449]

sage: a = ZZ.random_element(10**100); a
1266081670515546883639925088390407903294616094325617831128683357589913968497538978358203322629420841
sage: a.is_prime()
False
sage: b = a.next_prime(); b
8975665868645752218769838623717890808871334875974244952657480072373614614471639002293590745490978883
sage: b.is_prime()
True

--Mike
-- 
http://mail.python.org/mailman/listinfo/python-list