Archive for August, 2008

Translating pypy-c with 2.5 support

Thursday, August 28th, 2008

Last week I did some fixes to PyPy 2.5-features branch because the translator was crashing. That’s because some of the code I wrote in the last four months were not RPython.

The changes were mostly to help the annotator (with assertions). Now you can have a pypy-c with full 2.5 support.

There are some bugs so stdlib may not be fully working. I’m working on that.


svn co http://codespeak.net/svn/pypy/branch/2.5-features/ pypy-2.5-features
cd pypy-2.5-features/pypy/translator/goal/
python translate.py targetpypystandalone --allworkingmodules
# wait........
./pypy-c

Please, read PyPy’s documentation on translating and if you find any problem while translating let me know. Note that this docs are for the trunk so some of the options may not be available in 2.5-features branch.

I wrote this post last week and it was in my drafts. Actually I fixed some other bugs (one related to PEP 352) and it seems that my changes broke the translator again. Talking in #pypy Armin said that this is probably a bug in the annotator. I don’t know much about the translation process or about the annotator… I guess it’s time to start looking at it :-)

back to gentoo linux

Thursday, August 28th, 2008

After months postponing I’ve installed Gentoo in my laptop. I really like portage and probably everything I know about configuring linux using /etc and a bunch of commands I know because of gentoo.

The first time I installed Gentoo it I had a copy of the Gentoo Handbook and that was it. No internet connection to help. It was a great experience and I’ve learned a lot about how linux works internally. Before Gentoo I was using Fedora Core 2.

After those days I decided that I should became a programmer and not a sysadmin, so I did it, and I decided to install Ubuntu… now after two years using Ubuntu I’m back to Gentoo.Things are different of course. The installation process is easier (with a graphical interface LiveCD!). But, it’s nice to decide what I want to install and have full (or almost full?) control of my machine again! :D

Well.. let me go back to work, portage just finished to compile… :-P

PyConBrasil 2008

Saturday, August 9th, 2008

This year’s PyConBrasil will be held at Universidade Veiga de Almeida, Rio de Janeiro – RJ. I’m definitely going! Last year’s PyConBrasil was great.

So, if you are in Brazil or planning come near September 18th, 19th and 20th, don’t miss the chance to meet the awesome guys from Python Brasil community :-)

PyPy 2.5-features – Starting to port the standard lib

Wednesday, August 6th, 2008

A little late I know.

This week I finished to fix all the failing tests and to implement PEP 328 (Absolute/Relative import).

Now it’s the final step for supporting Python2.5 on PyPy, to port the standard library.

I’m starting with it today and I really hope I can finish it all (including tests and everything else) until the end of next week.

Well, one more time, if anyone want to help me, test your python programs (specially the ones that use python2.5 specific features, like with statement, conditional expressions and new generator stuff) in PyPy-2.5-features (svn co http://codespeak.net/svn/pypy/2.5-features pypy-2.5-features).

How to test? Simple:


$ cd pypy-2.5-features
$ ./bin/py.py your_python_program.py

Be careful and patient, it may take a little bit to things start happening :-)

Of course you can translate PyPy using the translator if you want. Take a look at PyPy’s website for more information.