Here's a bit of fun for the holiday weekend. (At least it's a holiday in the U.S., which is celebrating Thanksgiving today. If you're somewhere that isn't celebrating a holiday today, you're still allowed to enjoy this. :-)
This assumes that the Parrot SDL libraries are working on your system [1]. 1. Get the latest Parrot from subversion (r22971 or later) 2. Build Parrot 3. Change to the languages/nqp/ subdirectory 4. Build NQP ("make") 5. Run NQP on the attached blue_rect.pl file $ parrot nqp.pbc blue_rect.pl 6. Celebrate (or see footnote 1 if you get "libSDL not found!") 7. Send comments or questions to the mailing list A bit later I'll be sending along more details about NQP, information about the latest changes to the Parrot Compiler Toolkit, and our plans for where we're going from here. Enjoy! Pm [1] On my system (Kubuntu 7.10) I generally have to install the libsdl-dev package to get Parrot to work with SDL. In the past I've done similar things with OpenSUSE and Fedora. Also, sometimes simply creating a symlink from libSDL.so.0 to the appropriate libSDL.so.* file is enough to get things to work.
blue_rect.pl
Description: Perl program