Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Ctypes for C++ is going to be a pain due to politics (Bothering language creators is fun...)


Why can't we have compatible C++ name mangling and/or introspection/reflection such that we could write an FFI library for C++ similar to ctypes for C?

Dr. Stroustrup seemed to be of the mind that there is no technical reason not to be able to do it, but that the individual compiler writers and platform developers ...

Continue reading

Compiled GLE DLL for Win32 (For the compiler-less masses...)


I managed to get the regular Toolkit compilation toolchain all configured and ready-to-go this morning. Result is that we now have a pre-compiled GLE DLL available for Win32 for use with PyOpenGL 3.x. Still missing a pre-compiled TCL/Tk extension (Togl) to get to full coverage of the PyOpenGL 2.x functionality.

Need to look at the ...

Continue reading

PyGTA on Tuesday (CSound for Python)


Seneca is currently in the midst of trying to get CSound's Python binding to build. She's going to try to have a presentation ready for Tuesday on how to use the library, particularly her experiences in trying to put together a Theremin-like control mechanism for the laptop.

No luck getting OpenGL docs built (Tools just not working...)


xsltproc and saxon are producing mutually unintelligible files and/or taking dozens of computer-hours of processing time to do the merge. Bit of a PITA, especially as these are the old source documents still (haven't received word back from the OpenGL board guys about using the 2.1 documentation set) so I will need to re-do anything ...

Continue reading

Should do some work on the PyGTA site (At least replace the front page...)


Sent off the cheque to pay for the pygta.org domain name yesterday. Would be nice to have the key information on the front page (e.g. our regular meeting time), some basic who/what/why/when/how information too would be good for the front-page. Guess I should find some time to work that up and ask Peter to update ...

Continue reading

We wait 175x slower, apparently (Benchmarks are fun ways to waste time...)


User asked me to look at the POGL/PyOpenGL benchmark thing again. So I added a few cProfile calls to the silly thing so I could actually see what's going on (why not just use profiling to start with? Why create opaque graphs of pointless data when you can have a full breakdown of where the ...

Continue reading

Getting the PyOpenGL manual updated (It's been ages...)


Spending the day on PyOpenGL today. First up was integrating various small fixes and changes from people. Since then have been trying to get the reference manual updated. It's a rather involved distutils script at the moment (integrated into PyOpenGL2).

I'm trying to remove some of that pointless complexity, the setup to get the distutils ...

Continue reading

Python in a Strange Land tonight at PyGTA (IronPython and ASP.NET)


PyGTA this evening is getting a presentation from Myles Braithwaite :) . He's going to be showing us the IronPython implementation for use in ASP.NET applications.

While Python is normally associated with the Free and Open Source communities, contractors and developers using it often need to work on Microsoft's development platforms. IronPython is a Python ...

Continue reading

Bare-bones example of PyGTK2 + Twisted (Because simple is what you need to start...)


This is a minimalist version of integrating Twisted and PyGTK2, all it does is create a single PyGTK window, create a Twisted reactor that supports PyGTK and then run the application, closing when you close the PyGTK window. It doesn't actually do anything with the window or the network, it just shows how to initiate ...

Continue reading