FMTYEWTK About Mass Edits in Perl (
A beginner's guide to using Perl to edit files from the command line. An earlier version can be found locally.
Graphics articles
Graphics-related Perl articles are now listed in the Graphics area.
gjbforth 0.1.7 (.tar.gz, 25 KB)
gjbforth (well, gjbforth2, actually) implements most of an ANS-style Forth on top of pure Perl. It's got various fun debug tools, including an "animated" execution mode. I did quite a bit of optimization of the core interpreter engine, but there are still two major items that slow it down (beyond implementing it on top of a high level language). First, I intentionally designed the "primitive" word set to be minimal, rather than making all of the standard words primitive just to gain raw speed. Second, I did not create a true compiler to convert Forth words into native Perl subs, or even for that matter an inliner; all of the deep call tree of a standard threaded interpreter remains. Still, it's more than fast enough for basic demos -- and as a learning tool, it's a blast to play with.
3D Graphics in Perl
For the last several years, most of my graphics coding has been in Perl (sometimes with computation kernels written in a lower level language, sometimes not). There's enough of it, in fact, that I've moved it all to the new graphics area.
In *nix parlance, random and urandom are virtual devices providing sources of random data. While random makes the user wait for high quality data, urandom just hands over whatever data is at hand -- even if the quality is poor. In that spirit, herein lie a few random scripts and modules that never made it to release quality, but may be of interest to someone nonetheless.