为什么 Perl 不像 python 那样编译成二进制文件

发布于 2024-12-22 13:53:03 字数 133 浏览 2 评论 0原文

在我看来,Python 解释器将创建字节码 .pyc 文件是一件好事(即就编译时间而言)。我相信 python 使用某种哈希来确定源是否已更改,然后重新编译。

这对于 Perl 来说是个好主意吗? (相对于具有许多依赖项等的较大项目)。

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 ).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

浅沫记忆 2024-12-29 13:53:03

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

尤怨 2024-12-29 13:53:03

实际上,有一种方法可以将 Perl 编译为字节码,但它有一些限制。请参阅 B::Bytecode

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

情释 2024-12-29 13:53:03

Parrot 是一个字节码 VM,应该被下一个版本的 Perl 使用,即 Perl6,但显然不再有(感谢 巴尼·施梅尔的评论)

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)

耶耶耶 2024-12-29 13:53:03

Perl 从二进制文件加载的时间比从源文件加载的时间要长。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文