http://qs321.pair.com?node_id=1190336


in reply to Perl5 to Java compiler - first release

thanks and ++fglock it seems a very big job what you have done.

I read the brief blog post and lurked here and there into the github docs.

I'm a just-perl coder, really: i do not even consider hardware where Perl cannot run.

Can I ask, without any malicious intention, where and why and how i can profit translating my perl code into java?

I'm very ignorant in many many IT fields, but if i force my brain to imagine where i may need java i just come out with phones (another field where i know nothing) and client side code in browsers.

Might be i'm totally missing the point (it happens), but anyway can you be so kind to show some scenarios where this translation can be a profitable thing?

my best wishes for your project

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Perl5 to Java compiler - first release
by fglock (Vicar) on May 15, 2017 at 20:23 UTC

    We have experimented with building an Android app in a hackathon last year.

    This was using Perl for the "Activity" and importing the native Java modules - blogs.perl.org and youtube presentation

    This would work best if we implemented a Perl module. Calling Android APIs directly was a bit messy.

    Note that you can also run the real "perl" on Android - perl dist and blogs.perl.org

    Another experiment was with an HBase table scan for some bigdata project.

    These projects all used pre-compiled Perl to Java. Precompiled Perl can be potentially faster than "perl" - specially if you use typed variables.

    The new thing in this release is that it can execute Perl directly, without precompilation - and it also executes BEGIN blocks and eval-string. Java applications can also "embed" Perl if there is a need for scripting.

    Also maybe some company that is migrating to Java can keep using Perl, instead of rewriting.

    tl;dr This is still new and I don't have a clear idea what it will be used for.