Monday, March 17, 2008

Bittorrent on PyPy

Hi all,

Bittorrent now runs on PyPy! I tried the no-GUI BitTornado version ( It behaves correctly and I fixed the last few obvious places which made noticeable pauses. (However we know that there are I/O performance issues left: we make too many internal copies of the data, e.g. in a or

We are interested in people trying out other real-world applications that, like the GUI-less Bittorrent, don't have many external dependencies to C extension modules. Please report all the issues to us!

The current magic command line for creating a pypy-c executable with as many of CPython's modules as possible is:

  cd pypy/translator/goal
  ./ --thread --allworkingmodules --withmod-_rawffi --faassen

(This gives you a thread-aware pypy-c, which requires the Boehm gc library. The _rawffi module gives you ctypes support but is only tested for Linux at the moment.)


Panos Laganakos said...

Pretty kewl stuff from PyPy :)

Orangeman said...

I have a guide on most popular P2P technologies at and on Bit Torrent at . Cheers!!

HenrikV said...

What rev number did you build on? I tried with the latest source from svn, but got an error almost immediately. No module named py.