I've written a small performance test. And it is not bad!
$ time perl misc/Java/benchmark.pl
And then Perl-in-Java:
$ touch Test.class ; rm Test.class ; perl perlito5.pl -Isrc5/lib -I. -It -Cjava misc/Java/benchmark.pl > Test.java ; javac Test.java ; time java Test
The compiler now has a small test suite. The main additions in the last 10 days were implementing global variables, better support for references, data structures, string interpolation, and a few new subroutines in the CORE namespace and operators.
I've been adding support for Java in Perlito5 in the last few days.
This is what it does so far:
I've moved the "perlito" perl5 to perl6 compiler to a new home:
There are minor improvements in the compiler since last post, such as:
- scalar(@a) is @a.elems
- $a[-1] is @a[*-1]
- fix "map" syntax
- eval-string is EVAL
The "perlito" perl5 to perl6 compiler is online at: http://perlcabal.org/~fglock/perlito5to6.html.
It is also available as an irc bot for snippets and as a command line script.