Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

PyOpenGL from spec almost there

Was stuck with no internet today, so the world gets a bit of work done on PyOpenGL...

So the branch in which PyOpenGL is generated directly from the Khronos API specification (xml) documents is almost workable. There are a lot of (internal) changes, particularly the OpenGL/raw APIs are pretty heavily rewritten, and I've landed a ...

Continue reading

Bit more forward motion on PyOpenGL-from-spec

The spec-xml-generated wrappers are getting pretty close, only the glGet constant handling is preventing the test_core suite from passing, and I want to rework that to use the spec's enum groupings to provide better coverage of those and be able to flag missing GET enum specs on generation.  Haven't started into GLX/EGL/WGL etc yet, just ...

Continue reading

Moving forward with PyOpenGL XML Generation

So I finally (with some prompting) sat down to create a code-generator based on the Khronos specification xml documents (the things that khronos uses to generate the official OpenGL (GL and GLES), EGL, GLX, and WGL headers.  Originally I was trying to use Khronos own generator code, but in the end I just wound up ...

Continue reading

Multicast and Performance Binds

Networking fun this week.

The big nasty that bit me was that a .bind( ('',port) ) on a multicast socket will get all packets sent to any local socket listening to that port, even if this socket has not registered membership in the group.  So if you have two capture processes, each trying to listen ...

Continue reading

Twitch Lightmaps and (the start of Shaders)

So I was feeling a bit burned out on programming this morning.  What's the solution to that, you ask?  3D graphics, obviously.

I pulled out Twitch (What's Twitch you ask? It's a very simple loader for .bsp maps).  I finished off the shader parser and added lightmap support.  At this point you can load ...

Continue reading

Toronto Python Meetup Hack Night Project

Hasan's project for the Hack Night was a log-file visualizer to be used with real-time-ish log parsing such that you could "waggle a mouse in this window and see the performance stats in this one" (he does video driver testing by day).  We decided to step that down to parsing a sample data-file (in this ...

Continue reading

New RunSnakeRun and SquareMap available

It has been rather a long time since the last release of RunSnakeRun, mostly because I don't actually find myself using it when I'm doing web development for the most part (just not as performance sensitive as 3D graphics I guess).  Since other people are using it, however, I suppose I should get a ...

Continue reading

Nginx upload module

Nginx has an upload module (in the nginx-extra package, not in the nginx-full one) that is very nice when you want to allow users to upload large files (think multi-GB video files).  The way it works is that you define a location to which posts may be made where the post may contain an upload. ...

Continue reading

Public Service Announcement PyPI "wx" is not what you think...

It is not wxPython you are installing.  It's a "my first module" test package...

So how does one "claim" the top-level namespace module on PyPI when the namespace module is different from the name of the project.  Is there some mechanism to create a redirect from "wx" to "wxPython"?