Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: A Perl interpreter written in Perl?

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


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

I'm not aware of any real interpreter languages anymore. That's a distinction from the 80s or 90s, reality evolved faster than terminology.¹

Perl has a compiler creating optimized op-codes, you can even precompile .pl to .plc code.

The engine running this code is roughly kind of like the JVM, but not as flexible because of many idiosyncracies.

The real difference nowadays is not interpreted vs compiled, but dynamic typing vs static typing.

Compare JavaScript vs TypeScript.²

In this light, it's hard to answer the OP because I don't know what he thinks an interpreter does.

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

¹) Microsoft BASIC was interpreted, the source for almost all BASIC dialects back then. But even here the source code was normalized internally to 2 letter mnemonics to optimize space and speed.

²) That's a fair comparison, since JS was heavily influenced by Perl.

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

Replies are listed 'Best First'.
Re^5: A Perl interpreter written in Perl?
by hippo (Archbishop) on Apr 16, 2025 at 20:02 UTC
    I'm not aware of any real interpreter languages anymore.

    Pretty much all of the shells (bash, ash, zsh, etc.) are still real interpreters, AFAIAA.


    🦛

      Yes, I remember Emacs Lisp also having this fine differences depending on interpretation vs compilation.

      So these very old languages still hanging around are candidates for real interpretation.

      Update

      Found this interesting comparison between bash and perl execution on SO

      is-bash-compiled-or-interpreted

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

      Update

      Maybe I was biased to consider bash etc as not real languages, because the idea of writing apps with several thousand LOCs gives me shivers.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2025-07-07 19:55 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.