News for hackers. Stuff that matters.
Re:Solving multi-core Python by trentnelson on Friday July 10, 2015 @01:07AM (#9862399)
I attempted to describe the progress I've made with PyParallel already here: https://mail.python.org/pipermail/python-ideas/2015-June/034...

And here: https://mail.python.org/pipermail/python-ideas/2015-June/034...

I'm getting excellent scaling and performance across the board for the simple TEFB tests (https://bitbucket.org/tpn/pyparallel/src/8528b11ba51003a9821...), and have implemented something that really shows where PyParallel shines: an instantaneous wiki search REST API: https://bitbucket.org/tpn/pyparallel/src/8528b11ba51003a9821....

Quoting:

I particularly like the wiki example as it leverages a lot of benefits afforded by PyParallel's approach to parallelism, concurrency and asynchronous I/O:

    - Load a digital search trie (datrie.Trie) that contains every
      Wikipedia title and the byte-offset within the wiki.xml where
      the title was found.  (Once loaded the RSS of python.exe is about
      11GB; the trie itself has about 16 million items in it.)

    - Load a numpy array of sorted 64-bit integer offsets.  This allows
      us to do a searchsorted() (binary search) against a given offset
      in order to derive the next offset.

    - Once we have a way of getting two byte offsets, we can use ranged
      HTTP requests (and TransmitFile behind the scenes) to efficiently
      read random chunks of the file asynchronously.  (Windows has a
      huge advantage here -- there's simply no way to achieve similar
      functionality on POSIX in a non-blocking fashion (sendfile can
      block, a disk read() can block, a memory reference into a mmap'd
      file that isn't in memory will page fault, which will block).)
Re:Solving multi-core Python by scott_s on Friday July 10, 2015 @10:37AM (#9864167)
Apparently, you should expect to hear from him soon: https://mail.python.org/pipermail/python-ideas/2015-June/034...

Antoine Pitrou said that Snow's proposal was similar to your work. What do you see as the similarities?

Re:Solving multi-core Python by trentnelson on Friday July 10, 2015 @10:56AM (#9864269)
I cover that in the other e-mail I quoted. The similarity is simply focusing on solving the problem with a single process and threads versus multiple processes via fork().

I don't agree with the subinterpreter approach. In fact, my opinion is that the best way to solve the problem is to use the approach taken by PyParallel.

Granted, I would think that wouldn't I, being the author of PyParallel and all ;-)