Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl compiler request - flogging the dead horse!

by chromatic (Archbishop)
on Feb 03, 2014 at 03:43 UTC ( [id://1073119]=note: print w/replies, xml ) Need Help??


in reply to Perl compiler request - flogging the dead horse!

After all, perl scripts are converted to machine code...

Not really. They're compiled to an intermediate format known as an optree. Perl runs programs by traversing this optree.

It is surprising that there is no reasonably satisfactory solution till now.

It's a surprisingly difficult problem. You'd need something like PyPy and Futamura projections to get close.

  • Comment on Re: Perl compiler request - flogging the dead horse!

Replies are listed 'Best First'.
Re^2: Perl compiler request - flogging the dead horse!
by Sanjay (Sexton) on Mar 18, 2016 at 14:03 UTC
    Why not have the possibility of compiling to optree and then "executing" the optree over and over again? A bit like java source to jar.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1073119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found