10

It strikes me as a Good Thing (ie. in terms of compilation time), that the Python interpreter will create bytecode .pyc files. I believe python uses some sort of hash to determine if the source has changed and then recompile.

Would this be a good idea for Perl? ( with respect to the larger projects with many dependencies etc ).

2
  • What's with the trademark? Is it something Pythonic? Commented Dec 22, 2011 at 8:32
  • 1
    @Zaid Good Thing is jargon and usually emphasized with a trade mark. Geeks. Go figure. Commented Dec 22, 2011 at 10:02

4 Answers 4

12

For quite long explanation of .pmc files, there is lenghty article on perlmonks, also explaning why nobody uses it.

Sign up to request clarification or add additional context in comments.

1 Comment

Whilst the python functionality is built in it looks like (from what i just read) that perl pmc is a bit of an afterthought!
4

Actually, there is a way to compile Perl to bytecode, but it has some limitations. See B::Bytecode.

Comments

2

Parrot is a bytecode VM which should have been used by next version of Perl, i.e. Perl6, but apparently no more (thanks to Barney Schmale's comment)

3 Comments

Perl6 is another type of Perl, rather than the "next" as in successor. It's a language spec, much like common lisp is a language spec.
Yes, but the only (prototype, incomplete, alpha-stage) implementation of Perl6 seems to be Parrot based.
Just a note for readers in 2015. This statement is no longer correct. The currently most complete implementation of Perl 6 is Rakudo. Rakudo supports multiple backends. The most comprehensive backend is the Moar VM, followed by the JVM. Parrot support is lagging behind.
0

It took longer for Perl to load from binary than from source.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.