I added an aggregator to my site for some of the low-volume blogs I like to keep track of. It’s on the sidebar, under ‘pages’. Thanks to the BDP aggregator from ozpolitics, with a little help from the Exec-PHP plugin from Bluesome. I’m not quite certain about the latter, though; my site seems to feel slower after I installed it, and of course it’s a bit scary from a security perspective. Maybe I should add a custom page template and stick the PHP code in there.
Archive for December, 2006
A Lisp interpreter in 170 lines of Perl code
Saturday, December 30th, 2006A few years ago, I was on a train from Eindhoven to Utrecht; this should have been a ride of less than an hour, but thanks to various mishaps (”ladies and gentlemen, it turns out that the replacement engine is also broken, so we’ll be here a little longer”), it took me almost five hours to get home that day.
Fortunately I had my laptop with me, so to while away the time I wrote a very simple Lisp interpreter in Perl. Recently, while looking through some old back-ups, I came across it again.
Here it is: the interpreter and a test file. To run the test program, execute:
perl minilisp.pl test.l
Needless to say, this is a toy. If, for any reason, you need a real Lisp interpreter in Perl, check out perl-lisp on CPAN, by Gisle Aas.