Spider-Man 2, Guile, and dogs
I attempted to post this morning, after a gap of days, when my whole machine locked up. Annoying.Lisa, Anthony, Susie, and I saw Spider-Man 2 last night. Some glaring plot inadequacies, but enjoyable nonetheless.
I have also been playing with Guile, the Scheme interpreter plugin from the GNU project, in the past few days. Despite feeling totally confused (coming from Common Lisp, where things make more sense!), it seems cool. At the moment, I have a Cocoa application which runs Redland and Guile, vending the controller over Distributed Objects. When it starts up, it loads Redland then grabs a Scheme file to initialise Guile.
The cool thing is that I've put a Cocoa wrapper around Guile, so another Cocoa app on the system can connect to the server and have an arbitrary piece of Scheme code evaluated. Awesome.
One caveat: a malformed piece of Scheme will crash the server. I'm still trying to figure out how to tell Guile to be more robust, or to automatically wrap calls.
I see this being a good facility; not only can I use the Scheme functionality should I need it, but it's a bloody good way of doing clever config files! I can write a “little language” for describing display, and have it call back to C functions to build views. Furthermore, if I hit a snag and need some clever processing, I can do it right there in the Scheme code. I hope the speed of the interpreter will be sufficient.
Ah yes, dogs! Poor old Indy saw my mum getting the cases out for her holiday. He's been sitting under the table looking sad. Bless.
Posted at 2004-07-29 09:19:05 by Richard • Link to Spider-Man 2, Guil…
Comments, trackbacks.
