Perl语言是否旨在在运行时生成快速程序? [英] Does Perl language aim at producing fast programs at runtime?

查看:62
本文介绍了Perl语言是否旨在在运行时生成快速程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近有一个朋友告诉我

I recently had a friend tell me

请参阅perl从未设计得很快"

"see perl was never designed to be fast"

  • 是真的吗?
    • Is that true?
    • 我可以从 Wikipedia 中找到相关信息:

      The relevant piece of information I can find is this from Wikipedia:

      该语言旨在实用(易于使用,高效,完整),而不是美观(小巧,优雅,最小).

      The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).

      但是它并没有直接讨论速度.我认为在完成所有需要的文本处理后,对于像Perl这样的语言,执行速度确实很重要.我同意,尽管语法很怪异,但优雅从来不是一个目标.

      But it doesn't directly talk about speed. I think that with all the text processing that it needs to do, speed of execution really matters for a language like Perl. And with all the weird syntax, elegance was never an objective, I agree.

      • 高速执行是Perl的设计目标之一吗?

      推荐答案

      Perl始终以实用为目标,没有任何东西(甚至接近)某种象牙塔纯度,其中一些目标被绝对优先考虑,而其他目标则是被忽略(完全或几乎被忽略).

      Perl has always aimed toward practicality, not anything (even close to) some sort of ivory tower purity, where a few goals are given absolute priority, and others are ignored (completely or nearly so).

      因此,我认为可以合理地说,保持合理的执行速度对于Perl一直很重要,但是还有其他因素(尤其是灵活性和易用性)通常更重要,因此,如果必须在其中一个与执行速度之间做出选择,除非对执行速度的影响确实是 认真.

      As such, I think it's reasonable to say that maintaining a reasonable speed of execution has always been seen as important for Perl, but there are other factors (especially things like flexibility and ease of use) that are generally more important, so if a choice has to be made between one of them and speed of execution, the other factor will generally win unless the effect on execution speed is really serious.

      这篇关于Perl语言是否旨在在运行时生成快速程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆