Hello,

> Could perl be turned into a VM kind of model?

As far as I know, that kind of thing may be possible one day. Even thought Perl and Java 's byte code isn't the same at all: Java's is low level (near from a real CPU) whereas Perl's is high level ('print' can be a node in the byte code tree, for example). In fact, I heard that Malcom Beattie was about doing that in his Perl compiler, and that would provide what you want.

However, this may not be done before a long time ... And moreover it is not sure that it will be really interesting: the Perl compiling time may be equivalent to the byte code loading time, and then what Perl does is the same: interpreting!! So I'm not sure Perl VM is going to be really efficient :-(( James

In reply to RE: Can perl be anything like Java? by zejames
in thread Can perl be anything like Java? by pos

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.