note @Floppy's ruby port, now usable