Elephant with SQLite

November 22, 2005, at 04:30 AM

When I learned that CL-SQL supported SQLite, I was excited. See, sometimes you don't want to write a big client-server app; sometimes you want to save your data to a document that looks like a regular file, so that users can move and copy it by all the means they're used to.

But that was only the first half of the pipe-dream. Relational databases from an OO language are a pain; object databases have debatable scalability, but are far easier to work with. So naturally my question was, does Elephant's new SQL backend (written by Robert L. Read) work with SQLite?

And the answer was no. But a long night of debugging later, the answer is now yes! At least, for me. I've sent my patch off to the dev list, and hopefully it will be included into the final.

Refactored the Parse Engine

November 01, 2005, at 12:28 AM

I've been dusting off the GLR parser again (described here). I decided it had gotten too obfuscated to maintain properly, but I didn't want to rewrite the code from scratch...

So I took to heart Joel Spolsky's old advice about refactoring versus reimplementing. And guess what? It worked. I fixed the bugs that had stumped me and I think I have a grasp of what to do about the efficiency issues. I've also been working on making the code nicer so that it can be embedded in other projects easily.

And then, of course, real life came along and forced me to put it down for a couple weeks. Oh well. The door is open to more progress now.

It's been forever since I posted. So, in keeping with Jakob Nielsen's list of blog-design mistakes, I'm going to start posting on a regular basis, every other week. I also migrated from Bosxom to Movable Type. The big benefit is that comments now work; also, it no longer looks hideous.