Category archives: Snaking
Discussions of programming, particularly of programming Python
No thrill on Ruby yet
Written by
on
in
Snaking.
Just wrote my first Ruby script (I've only read about it before this). I'm not falling in love yet... can't say I'm really even finding it beautiful. All those "ends" scattered around, scoping with line-noise. I see the niceness of the block abstraction, but I haven't yet come to need them. Ah well, suppose I ...
Now we need 3 million dollars...
Written by
on
in
Snaking.
I chose 1 million dollars as a small number that should be possible to raise if we have a good enough proposal. The top three voted projects focus on, one way or another, performance and applicability. The winning project essentially was to improve Python's concurrency storing markedly. Basically spend the money on hiring people to ...
Your Million-Dollar Python Project @ PyGTA
Written by
on
in
Snaking.
PyGTA on Tuesday should be fun. The question is:
If you had a million dollars (CDN) to spend on a Python project, what would you spend it on?
Sure, money doesn't solve all problems, but if you had it available and earmarked for "something python", what would you do with it? We'll assume a project ...
Million Dollar Ideas Wrap-up from PyGTA
Written by
on
in
Snaking.
Great fun at PyGTA this evening. We had an overly complex voting scheme, basically you could vote from 0 to 5 (5 being the highest) for each project, total count wins. We had quite a few proposals, and laughed rather a lot during the process.
My take-aways:
- Concurrency matters in multi-core systems, Python needs ...
Unexpected Optimizations
Written by
on
in
Snaking.
I hadn't intended to work on PyOpenGL today, wanted to spend some time looking at what to do for the broader world... oops. Anyway, using Cython I've sped up the PyOpenGL stuff to the point where the PyOpenGL stuff has dropped off the list of hotspots for OpenGLContext rendering. Not saying there aren't hotspots left, ...
Display-listing Materials Speeds Rendering
Written by
on
in
Snaking.
Doing some optimization of the OpenGLContext scenegraph. Just using display-lists on the material objects takes the material rendering overhead from ~5% of runtime to <1% of runtime. There's a diminishing set of low-hanging optimizations available at this point. The wrapper object is obviously a major time-sink. I took a look at re-writing that in C ...
PyOpenGL Hacking at HackLab
Written by
on
in
Snaking.
Soni and I got an invitation to the opening party for HackLab in Toronto,but I was out of town at a client site that night. However, the club has an open house on Tuesday nights, so I decided to drop in this evening to check them out. Spent much of the time talking with ...
Your Million Dollar Python Project @ PyGTA Tuesday
Written by
on
in
Snaking.
Going to do the popular "topical discussion" format at PyGTA this month. We'll discuss what you would do if you had $1,000,000 CDN to spend on a Python-related project. Discussion starts at 7pm, Tuesday the 18th at Linux Caffe.
Finally got SimpleParse updated to use Py_ssize_t
Written by
on
in
Snaking.
I finally sat down this evening to get SimpleParse updated to use the Py_ssize_t type instead of ints for tracking offsets, lengths and the like. Was lots and lots of trivial updates, rather than anything particularly difficult... exactly the kind of thing I hate spending time on.
Anyway, don't yet have a Python2.6 compilation setup ...
Quality Time with PyOpenGL
Written by
on
in
Snaking.
Spent some quality time this evening with PyOpenGL, OpenGLContext and KCacheGrind. Quite a few tiny improvements in the code-base. I'm still just picking out little bits of fluff that are "wrong" as they show up in the profiling. There was ~4% of total run-time on this machine spent in Python's warnings.warn() function because there was ...