1. perl -cw script.plx does nothing.

perlcc -B script.pl will compile to bytecode script.plc,

perl script.plc will execute the compiled script.

perl -c just stops after the CHECK phase.

2. system independent bytecode is hard, because threaded optrees looks different to not-threaded.

perl5 opcodes change from release to release, there's no discipline. p5 devs do not want to have bytecode discipline.

parrot was designed to have bytecode discipline originally (and be platform independent), but both of these goals were thrown away without discussion at v1.0. That's why I left the project in protest.

parrot's platform independent pbc format goal is still a goal in theory, but the tests were also disabled against my will around 1.0, so new bugs were introduced since the tests were disabled. code-smell.

3. perl had the -u switch to dump its code to a file, which could later be undumped to a single executable. To make this work would need about half a year, but I have no time for it yet.


In reply to Re: Perl 5 Compiler, Again! by rurban
in thread Perl 5 Compiler, Again! by flexvault

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.