Flávio S. Glock
Recent Actions
-
Posted PerlOnJava 5.44.1 released to Flávio S. Glock
I released PerlOnJava 5.44.1 yesterday:
https://github.com/fglock/PerlOnJava/releases/tag/v5.44.1
This is a big milestone, with the regex implementation, ithreads, taint mode, and async/await now complete.
… -
Commented on PerlOnJava Gets a CPAN Client
@The Mighty Buzzard: Fair point - decades of Perl error messages have trained us all to expect the worst. Since PerlOnJava has to deal with a unique situation (XS/C modules that simply can't compile on the JVM), I figured the...
-
Commented on PerlOnJava Gets a CPAN Client
Note: warnings are now fixed - **Spurious warnings** -- There's currently a bug where test description strings trigger `Argument "..." isn't numeric` warnings. Annoying, being fixed....
-
Posted PerlOnJava Gets a CPAN Client to Flávio S. Glock
If you’ve ever tried to run Perl code in a Java environment, you know the drill. Rewrite everything in Java (expensive, risky), or maintain two separate runtimes with all the deployment headaches.
PerlOnJava offers a third path: compile your Perl to JVM bytecode and run it anywhere J…
-
Posted Perl5 as a first-class script engine in Java - part 2 to Flávio S. Glock
Perlito5 is an implementation of the Perl5 language that runs in the Java / JVM platform.
jrunscript now works with the "Perl5" language parameter:
… -
Posted Perl5 as a first-class script engine in Java to Flávio S. Glock
Perlito5 is an implementation of the Perl5 language that runs in the Java / JVM platform.
Perl scripts can now be run from inside Java applications using the standard javax.script API:
// $ javac -cp .:perl… -
Posted Perl5 to Java compiler - symbol tables, typeglobs, and call stack to Flávio S. Glock
Perlito5 is an implementation of the Perl5 language that runs in the Java / JVM platform.
As part of the work for porting the core Perl modules, we had to implement better support for Perl symbol tables, typeglobs, and call stack.
The…
-
Posted Trying out AWK in Java with Perlito5 to Flávio S. Glock
I’ve got this example “awk” script:
$ cat x.awk BEGIN { print "Month Crates" print "----- ------" } { print $1, " ", $2 }we can convert AWK to Perl with “a2p”:
$ a2p x.… -
Posted Perl5 to Java compiler - first release to Flávio S. Glock
This is the first release of the Perl5 to Java compiler.
https://github.com/fglock/Perlito/releases
In the github page there is a link to the "jar" file and the lib directories for JVM-specific Perl modules.
The "perl…
-
Posted Perl5 to Java compiler - week 100 - bootstrapping to Flávio S. Glock
It's been a 100 weeks since the Perl5 to Java compiler started.
The compiler is now "good enough" to translate itself to Java.
# grab a copy of the project $ git clone git@github.com:fglock/Perlito.git ; cd Perlito $ make clean # create the "perlito5.j… - Posted Android App with the Perl5 to Java compiler to Flávio S. Glock
-
Posted specifying primitive data types in Perlito5 to Flávio S. Glock
I'm trying out this new little benchmark, which imports Java primitive data types into a Perl script:
# misc/benchmark/benchmark_typed_primitive.pl package long {} my long $count = 0; my long $i = 0; while ( $i < 400 ) { my long $j = 0; while ( $j <… -
Posted Perl5 to Java compiler - using a Perl module from Java to Flávio S. Glock
Perlito5 now supports calling Perl subroutines from Java.
For example, a Perl module was compiled to "Main.java", and it can be called using:
class TestPerl { public static void main(String[] args) throws Exception { // initialize the Perl m… -
Posted Perl5 to Java compiler - first little script to Flávio S. Glock
For the first time, Perlito5-Java can now run an unmodified script - "rc-forest-fire" from the perl6-bench project.
I've experimented running the benchmark on the several Perlito5 platforms, and on perl its…
-
Posted Perl5 to Java compiler - integrating with java.lang.Thread to Flávio S. Glock
Here is another experiment with calling Java libraries from Perlito5-Java; using JVM threads:
package Java::Thread { import => "java.lang.Thread" }; my Java::Thread $thread1 = new Java::Thread( sub { for my $i (0..10) { print "thr… -
Posted Perl5 to Java compiler - integrating with Rhino to Flávio S. Glock
I'm experimenting with calling Java libraries from Perlito5-Java; calling into the JVM Javascript engine was pretty easy:
# here we import the Java packages into Perl packages: package ScriptEngineManager { import => "javax.script.ScriptEngineManager" }; … - Posted Perl5 to Java compiler - 2nd hackathon to Flávio S. Glock
-
Posted Perlito - reviewing some older code to Flávio S. Glock
Today I've finally updated the Perlito compiler ChangeLog, this covers a little more than a year of commits.
The most significant update was the new Perlito5-to-Java backend, which is work-in-progress. It covers a lot of…
- Posted Perl5 to Java compiler is 1 month old, and we have a hackathon to Flávio S. Glock
-
Commented on a perl5 to Java compiler - first benchmark
Trying again with compilation included: $ time perl misc/Java/benchmark.pl done 64000000 real 0m9.688s user 0m9.617s sys 0m0.017s $ time ( touch Test.class ; rm Test.class ; perl perlito5.pl -Isrc5/lib -I. -It -Cjava misc/Java/benchmark.pl > Test.java ; javac Test.java ; java...
-
Posted a perl5 to Java compiler - first benchmark to Flávio S. Glock
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 … -
Posted a perl5 to Java compiler - week 3 to Flávio S. Glock
The compiler now has a small test suite. The main additions in the last 10 days were implementing global…
-
Posted a perl5 to Java compiler - work in progress to Flávio S. Glock
I've been adding support for Java in Perlito5 in the last few days.
This is what it does so far:
-
Posted a perl5 to perl6 translator - update to Flávio S. Glock
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…
-
Posted a perl5 to perl6 translator to Flávio S. Glock
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…
-
Posted formats added to perlito5 to Flávio S. Glock
perlito5 is a Perl compiler written in Perl.
The format statement was required in the grammar for completeness. The 'format' command is not supported at the emitter side - it compiles, but it doesn't run yet.
Some other features are still marked as TODO and are simple to implement:…
-
Posted indirect-object added to perlito5 to Flávio S. Glock
perlito5 is a Perl compiler written in Perl.
The tests* for indirect-object and bareword disambiguation can be run online at http://perlcabal.org/~fglock/perlito5.html (you need to copy-paste the tests, it is not automated).
…
-
Posted tie() in perlito5 to Flávio S. Glock
I've just added a small tie() example to the perlito5-in-the-browser page.
This was implemented today, and it only supports a few methods for now.
tie() does not make perlito5 any slower - the tied containers use a separate c…
-
Commented on Perl courseware for the web using client-side perl
Joel: I didn't know about perltuts.com - it looks really good, thanks for pointing out....
-
Posted Perl courseware for the web using client-side perl to Flávio S. Glock
This is an idea I've discussed with Gabor (szabgab++) during the last conferences - we could use perlito as a tool to write educational pages about perl, that would embed executable code that can be modified by the reader.
There is a possible alternate impl…
Comment Threads
-
educated_foo commented on
The Perl Learning Environment
There are a bunch of Perl REPLs, from
perl -de0to things requiring lots of Moose silliness. Have you tried using one of them? -
mascip commented on
Perl5 in the browser update
Very naive question Flavio:
if i make a website with Perl5 (say, with the Dancer framework), do you think that some day i will just be able to compile it into Javascript with Perlito, and run it in a mobile phone? Or is it more complicated than that?
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.