Today I continued working on the rctime module with the supervision of Anders. I’m improving my knowledge of rpython and how the interpreter level and application level works and how to make them communicate. This is not really documented in deep so you’ve to check out examples also. Sad, a swiss boy, joined us and [...]
This is the report of the first day of the PyPy sprint session here at CERN. The sprint began in the early afternoon (1.30pm) because this morning there was the CERN’s visit. They started doing a crash-course-tutorial-so-my-head-did-boom presentation. PyPy is really complicated but it’s an interesting challenge. If you want to know more about its [...]
This is the title of the just finished thesis by Antonio Cuni. He is one of the PyPy developers and the author of the exciting .NET backend named GenCLI. The thesis is for people (hopefully the entire Python community ) who want to understand better the PyPy as a whole and its backend. You can [...]
mmap porting is finished. Here’s the latest changelog: correctly raise error if used in concatenation and repeatition responds to getitem, setitem correctly raise error if called delitem support slicing objects add a big test ported from test_mmap.py The only remaining issue is the lack of support of the Buffer object protocol because is not directly [...]
Filed in Uncategorized
|
Also tagged
|
… I’m quite puzzled about a couple of things. First, I don’t understand when PySequence_GetItem it’s been called. I explain myself: in mmapmodule.c you can find the following function to implement getitem behavior: [code lang="c"] static PyObject * mmap_item(mmap_object *self, Py_ssize_t i) { CHECK_VALID(NULL); if (i < 0 || (size_t)i >= self->size) { PyErr_SetString(PyExc_IndexError, "mmap [...]
Changelog: mmap.size() is done mmap.tell() too mmap.flush() is done I had some problems with memmove() syscall from ctypes so I implemented mmap.move() with memcpy() mmap.resize() works where supported (not supported on OSX and FreeBSD) I discovered an ugly alignment problem caling msync() syscall but it has been fixed. The problem was in Linux only… mmap [...]
Filed in Uncategorized
|
Also tagged
|
Parallels is damn cool and with 2.0Gb of RAM is even cooler. Why it takes 20 minutes to be up and running for the SoC with Ubuntu Dapper and after two hours of installation/configuration/reboot I’ve not completed the setup of the XP box yet? I’m installing some SDK now… posted with TextMate
Filed in Uncategorized
|
Also tagged misc
|
Today changelog: mmap.find() is here mmap.seek() is here mmap.write() is here many fixes to make it work under windows as well big refactoring of tests mmap.write_byte() is here I do want mutable strings in Python!:-)
Filed in Uncategorized
|
Also tagged
|
Here’s the today changelog: mmap frees resources correctly close() is done and working read_byte() is done and working readline() is done and working find() needs more work.
Filed in Uncategorized
|
Also tagged
|
The bus error is gone but I’m not really comfortable with the reason why I don’t have that error anymore. Let’s explain a bit: mmap() is a 6 argument function, all of them required. Thomas Heller discovered under FreeBSD 6.0 with ktrace that it’s called with 8 parameters, not 6. The two argument in addition [...]