News for hackers. Stuff that matters.
Re:How fast can we make interpreted Python? by gregorsamza on Tuesday June 25, 2013 @10:21PM (#5943756)
A dataset with "many long lists of numbers" sounds like an ideal use case for NumPy, have you tried using that?
Re:How fast can we make interpreted Python? by bsimpson on Wednesday June 26, 2013 @02:26AM (#5944471)
I haven't. I don't have any complex math in mind (yet), just some simple transformations. The problem is that even something as simple as checking a list for potential duplicates becomes really RAM intensive for sufficiently large lists. (I'm not even doing deep equality, just comparing metadata.)

I still have plenty more work to do on the project. I think I'll end up fanning out each list iteration into a series of smaller chunks to keep me from blowing through all the RAM on any one request.

Re:How fast can we make interpreted Python? by maxerickson on Wednesday June 26, 2013 @08:05AM (#5945441)
Numpy supports lots of array math, but another way to think of it is as an api for working directly with memory (and values stored as platform types instead of python objects).

(Which you may well realize...)

Re:How fast can we make interpreted Python? by shaurz on Wednesday June 26, 2013 @07:44AM (#5945383)
Or even simply the array module.
Re:How fast can we make interpreted Python? by scardine on Tuesday June 25, 2013 @10:25PM (#5943775)
GAE allows only pure Python. No binary modules like NumPy.
Re:How fast can we make interpreted Python? by kirubakaran on Tuesday June 25, 2013 @10:44PM (#5943834)
Re:How fast can we make interpreted Python? by corey on Tuesday June 25, 2013 @10:45PM (#5943840)
Python has an array class too:

http://docs.python.org/2/library/array.html