Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: A Perl interpreter written in Perl?

by LanX (Saint)
on Apr 16, 2025 at 20:28 UTC ( [id://11164755]=note: print w/replies, xml ) Need Help??


in reply to Re: A Perl interpreter written in Perl?
in thread A Perl interpreter written in Perl?

> point of that excersise

Creating a formal language definition, perhaps?

Consider what happened to JavaScript 1.0 after it evolved to ECMAScript.

But doing this in Perl would lead to a logical paradox, unless it's a reduced simpler Perl for bootstrapping the definition.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^2: A Perl interpreter written in Perl?

Replies are listed 'Best First'.
Re^3: A Perl interpreter written in Perl?
by cavac (Prior) on Apr 18, 2025 at 13:20 UTC

    Not to mention the whole thing would probably be awfully slow. And it would probably be a compromise anyway, if the plan is to reach full Perl compatibility. I mean, how would you load C-Libraries, for example? You can either do that in the underlying Perl binary, or you start including a whole C/C++/machine code interpreter...

    A limited/reduced/simplified Perl interpreter certainly has its use cases. But if you need a full-blown Perl installed to run it, that somewhat defeats the point.

    Now, a somewhat reduced and limited Perl written in JavaScript, that could be damn useful for web development.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
    Also check out my sisters artwork and my weekly webcomics
      Now, a somewhat reduced and limited Perl written in JavaScript, that could be damn useful for web development.

      Doesn't webperl already fill that niche?


      🦛

      I'm not sure why you are talking about performance now.

      ECMAScript's language specification led to many competing implementations.

      And having an alternative implementation of Perl would naturally involve the need of a specification and/or help define it.

      > Now, a somewhat reduced and limited Perl written in JavaScript

      perlito was already mentioned twice in this thread.

      Haukex' webperl is feature complete (not "reduced") but it's not written in JS (apart tiny parts for bridging), but cross compiled to WebAssembly

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2025-07-16 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.