Perl5 to Java compiler is 1 month old, and we have a hackathon
We are having a hackathon at work, and Bosko, John and I have hacked together a working Perl script that executes in a Java environment (HBase).
We are having a hackathon at work, and Bosko, John and I have hacked together a working Perl script that executes in a Java environment (HBase).
I've written a small performance test. And it is not bad!
First perl:
$ time perl misc/benchmark/benchmark_lexical.pl
done 64000000
real 0m3.964s
user 0m3.963s
sys 0m0.004s
And then Perl-in-Java:
$ touch Test.class ; rm Test.class ; perl perlito5.pl -Isrc5/lib -I. -It -Cjava misc/benchmark/benchmark_lexical.pl > Main.java ; javac Main.java ; time java Main
done 64000000
real 0m0.840s
user 0m0.584s
sys 0m0.302s
[EDIT] broken link
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: