Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

PyGTA Tomorrow (Mind-exploding fun!)


Planning to present continuations at the PyGTA meeting tomorrow. Continuations are the fundamental control construct of computer programming. Everything else is just syntactic sugar. They have some interesting applications when exposed directly, but most people use them to create other abstractions that are easier to understand. Tomorrow we'll be exploring just what these things are ...

Continue reading

Long Weekends, Long Walks (A few days off...)


This was the Thanksgiving holiday weekend in Canada. Had the family over on Sunday (yay!), worked on Saturday, but today was just for relaxing. Went through my OpenGL folder (well, the last 100 or so messages) and fixed a couple of small bugs. I want to release a 3.0.0b1 this week, so if you have ...

Continue reading

Involuntary upgrade (Eric3 install hosed on the work laptop...)


Came into the caffe intending to "install" the little laptop and then get a few hours of billable work in so that I can pay the rent and buy some cookies. Instead it turns out that I mistakenly allowed Gentoo to upgrade the qt/PyQt version on this laptop when doing a system update.

I could ...

Continue reading

Use sys.settrace to animate Python code? (Evil ideas that cross one's mind...)


To make a GUI/text IDE work similarly to the Logo-style animated execution you'd need to make the Python code work more slowly than normal. You could probably hook up a sys.settrace that stops when you finish a given operation and waits on a message from the GUI that it's drawn the results (and waited for ...

Continue reading

I want the perfect IDE for kids (Or do I?)


A couple of things over the last couple of days have focused my mind on the question of IDEs.

The first is moving to Eric4 from Eric3. The change isn't really all that much, in fact, in the pieces I use there is no particular advantage to the new version (other than that it builds ...

Continue reading

Eric 4 builds nicely on Gentoo (With some PORTAGEDEV stuff...)


Finally got around to updating to Eric 4 on the home workstation/server. Nice looking, though I basically turn off the bulk of the features save the project and file-editing views, and it seems a bit slower and less "snappy" than the Qt3 version. At the moment it doesn't work with my project-management script, so I'll ...

Continue reading

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