in reply to Re^3: A Perl interpreter written in Perl?
in thread A Perl interpreter written in Perl?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: A Perl interpreter written in Perl?
by hippo (Archbishop) on Apr 16, 2025 at 20:02 UTC | |
by LanX (Saint) on Apr 16, 2025 at 20:10 UTC |