Python objects in C++

Sometime I find myself thinking in Python. Or, accurately, wistfully thinking of Python. Raw C++ is completely hamstrung when it comes to simple concepts like handling strings or dealing with lists (maybe BOOST is better?). Why can’t I just do this:

remaining_args = sys.argv[3:7]

I don’t even mind if it looks like this:

PyList argv = new PyList( argv, argc );
PyList remaining_args = argv.slice( 3, 7 );

Is this kind of thing possible? If not, someone really should package up the Python library in such a way that it is.

Of course, I’m speaking from a position of total ignorance here: maybe someone has done what I’m talking about with the Python stuff. After a brief look at BOOST, I can say for sure that it continues the STL’s tactic of “under-use through obscurity” and “surprisingly missing all the useful features”. No slice operator, anyway…

If they have done/do do the Python thing, the most frustrating part then is going to be wishing you could have all the bits of the Python library that are written in Python. Does anyone fancy starting the “GCP” project?

CD writing on Fedora Core 3

I’m now thing of moving off Fedora Core 3 (probably to Ubuntu, or maybe FC4 for the Java stuff) and it turns out I’ve never written a CD from it, because when I tried it didn’t work: I kept getting the message “cdrecord: Success. Cannot open SCSI driver.” I finally managed to find a solution. For some reason I need to do this:

cdrecord dev=ATA:1,1,0 -eject -v speed=2 ubuntu-5.04-live-i386.iso

Note the ATA: in the dev bit. No idea why.

Prince of Persia – The Sands of Time

arrived through the post from ebay yesterday. It is superb. Exactly my kind of game, and with loads of features from the old game (one of my favourites of all time), all updated and made even more beautiful. It is incredibly atmospheric, and so far the gameplay has been utterly compelling. Am I more excited about this than the pervious post? Surely not.

Sourceforge

I have requested a Sourceforge project for DIYBlog, and it just struck me again how utterly fantastic Sourceforge is. What would the Free and Open Source Software world be like now without Sourceforge? A lot poorer, I reckon.

I’m desperately trying to find time to test FreeGuide for a 0.10.2 release. So far it looks like although my favourites have been imported, they are not working. In fact, when I create a new favourite it works for that run but when I restart the program they are not highlighted. Hmm.