Posts

Showing posts with the label unladenswallow

Unladen swallow review. Still needs work.

Image
Tried out unladen swallow on two work loads today. After the announcement they are going to try and bring it into core. So I finally got around to trying it (last time the build failed). An hour or so later, the build finally finished and I could try it out. The C++ llvm takes ages to compile, which is what took most of the extra time. What follows is a review of unladen swallow - as it stands today. The good part? Extensions work(mostly)! w00t. I could compile the C extension pygame, and run things with it. Now to run code I care about, my work loads - to see if their numbers hold true for me. cherrypy webserver benchmark: crash pygame tests: some crashes, mostly work. pygame.examples.testsprite : random pauses in the animation. The crashes I've found so far seem to be thread related I guess. The cherrypy one, and some of the pygame ones both use threads, so I'm guessing that's it. Random pauses for applications is a big FAIL. Animations fail to work, and user in...

Python the GIL, unladen swallow, reference counting, and atomic operations.

Image
The unladen swallow project comments on the global interpreter lock and suggests long term dropping reference counting in favour of GC. http://code.google.com/p/unladen-swallow/wiki/ProjectPlan#Global_Interpreter_Lock . They are also now favouring an incremental GIL removal from python. However, confusing getting rid of the GIL, with requiring using garbage collection is wrong. This mini-essay will explain why reference counting is good for python, and why you do not need to get rid of it for multiple CPU systems. Then there will be descriptions of other improvements to python for multiple CPU systems that can be made. Reference counting has a number of advantages over various GC schemes see http://en.wikipedia.org/wiki/Reference_counting#Advantages_and_disadvantages . As a python programmer, optimizing for the programmer is what is most important... and reference counting makes it easier for the programmer. It makes programs much more deterministic, meaning that reference counti...