Nice, cormullion! I'm almost sure you wrote this. Great job, I'm freely stealing code from this page and I'm going to pawn it off as my own. :) Seriously, nice resource and I have already plugged in some of it in my own stuff (e.g. I needed a dirname function of which you provided the guts). Thanks!
Yes, I did the bad bits, and some of the good bits, the rest of the good bits are from other contributors... And the examples ran correctly for one version of newLISP, even if they've broken since then... :)