Pugs can now compile the mandelbrot generator, example/mandel.p6
, into mandel.imc
.
Running the line below generates 100 copies of this pretty picture. Time for some benchmarking!
% time pugscc --runparrot examples/mandel.p6 > /dev/null real 0m5.548s user 0m5.325s sys 0m0.078s
Compare this with the perl5 version:
% time perl examples/mandel.p5 > /dev/null real 0m5.774s user 0m5.629s sys 0m0.016s
It is also worth noting that this is on FreeBSD 5-STABLE, where perl5 was built with -O by default. The --runparrot
above uses an unoptimized parrot, with vanilla runcore, and with no type inference (so all variables are PMCs). That means even though Pugs/Parrot is heavily handicapped, it still performs better than Perl 5.
Our Mad Porter iblech exhibited superhuman productivity, and ported five CPAN modules to Perl6 in one day:
All I can say is "Wow". In other news, after ingy's 2-days-fight with MakeMaker, Inline Haskell/C modules now finally works. It requires GHC 6.4 for the Template Haskell powered wrapper generation code. SHA1.pm is our first working example.
Mad Golfer asavige committed our first golf-based test script, which combines the best parts of golf-driven development with test-driven development. :-) I added in $*EXECUTABLE_NAME
and $*PROGRAM_NAME
support for him, too.
Stevan asked for s:perl5:g///
to complete his File::Spec port, which I promptly implemented. He also started picking up Haskell, and hacked in -d
and -f
all by himself. Yay!
Some other developments of today:
pugs -Ilib
support.
grep {...} @list
still works.
It's getting late, so I'll sleep now. YAPC::Taipei starts in 30 hour or so. Stay tuned!
I can not really tell you, how pleased I am that my humble golfing efforts landed in the Pugs repository. Maybe, some 10 or 20 years from now, some wicked Perl 6 user will dig into the sources of the Perl 6 compiler and find my blatant golfing attempts thare, and will be shocked to recognize, how creative (or stupid?) his ancestors were...:-)
Keep up the fantastic work! and thanks for Mad Golfer too!
rg0now
Re:S5 formatter?
gugod on 2005-03-25T04:20:30
So far Spork::S5 is on ingy's svn server, and Spork needs patch, so that we will probablly release both a new Spork, and Spork::S5 to CPAN.