Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Running an email server at home is great (Until it gets turned off while you're out...)


It seems that either my workstation or my internet connection at home has gone down. Last time this happened it was a cable I'd mistakenly unplugged when grabbing a router. Time before that it was my cousin turning off the machine because it was keeping her awake. Both times, however, there was someone at home ...

Continue reading

Need a better documentation-generation system (Pydoc and pydoc2 just don't cut it...)


Spent the full work-day today on OpenGL-ctypes. The glGet* variables are now getting automatically registered. Image types, it turns out, seem to already be registered. I've also started work on making the docstrings more reasonable, little things like including the extension's Overview section in the docstring (so you can tell what the extension is intended ...

Continue reading

Tweaking the auto-generation (More work tomorrow...)


Spent the rest of the day on the auto-generation system for producing GL extension wrappers. Mostly I'm looking at parsing the extension definition files and turning them into instructions to do such things as registering glGet* extensions, automatically registering image types for support, that kind of thing. Also tweaked the code so that marking a ...

Continue reading

Eliminating the last required OpenGL-ctypes extension (Still two optional ones...)


This morning I decided to eliminate the _strings.so C module from OpenGL-ctypes. This module had a single function which retrieved the data-pointer from a Python string structure. That was done mostly because of things like potentially having a different Python version or a different Python compilation flag resize the PyObject structure header and wanting to ...

Continue reading

Fixed one regression, another discovered (Don't fix unbroken things...)


The bug in the array handling for OpenGL-ctypes was due to my trying to be too clever. Oops. Finished running the OpenGL and OpenGLContext test suites. Biggest issues that surfaced were that the nurbs support has been broken somehow :( , and that the OpenGLContext mouse-handling code is accepting far too many events for processing, ...

Continue reading

Something got fixed on my machine (Probably by the gcc and glibc update)


Running the PyOpenGL GLUT demo "gears.py", which is basically identical to the standard glxgears program, today I get 1430fps on my workstation, (compared to about 1600 for glxgears today). This same machine was getting around 150fps last week (with either program). I'm guessing the complete system rebuild with gcc 4.x and glibc 2.4.x (which was ...

Continue reading

Apparently a regression crept in over the weekend (My lunch-break in testing...)


Spent the lunch break working on testing OpenGL-ctypes. Got through all of the PyOpenGL demos, but far more were failing than should have been. It appears I've introduced a bug in array handling at some point and didn't notice it. Grr. Worse, as I was testing in the OpenGLContext area I discovered a bug that ...

Continue reading

Manufacture a bit of time with a bit of sacrifice (OpenGL-ctypes instead of billables...)


Decided that I just had to get some work done on OpenGL-ctypes if it's going to come out any time reasonably soon after Python 2.5 final. Accordingly took the day off and worked solely on OpenGL-ctypes. Primary task today was to work on the documentation for developers and contributors. I've posted that (in-process) documentation to ...

Continue reading

OpenGL-ctypes time just doesn't materialise (Though my room is cleaner...)


I got a bit of hacking done on OpenGL-ctypes over the weekend, but not the 2+ days I'd hoped for. I started looking seriously at how to make the extension-writing process more automatic and clean. Also began working on the architectural overview and "how to contribute" documents.

We went for a party at Bryan's on ...

Continue reading