[PerlChina] Perl 5.10 News Release Translation

Jie Zhou jiezhou at uchicago.edu
Thu Dec 20 23:26:44 PST 2007


Hi all,
Below is the translated ful version of the news release, there are several
places that I'm not quite sure, so hope you guys can look over it and let me
know your comments. *Please be sure not to post it anywhere before Qiang
post the final version on perlchina.org.*

BTW: I rememberd that I asked Chunzi for an email at perlchina.org, and he
gave me one, it's something like jiezhou at perlchina.org. I thought it would
be nice to leave that mail address on this translated article, however when
I tried to login that mailbox, it didn't exist. Did the email system delete
previous accounts?

Best,
Jie

Here starts the translated news release:


*Perl 5.10 now available*

*Perl 5.10**发布***

* *

*出处:**http://news.perlfoundation.org/2007/12/perl_510_now_available.html*

*翻译:中国**Perl**协会**   (PerlChina.org)   Jie Zhou (jzhou722 at gmail.com)*



Today the Perl Foundation announces the release of Perl 5.10, the first
major upgrade to the wildly popular dynamic programming language in over
five years. This latest version builds on the successful 5.8.x series by
adding powerful new language features and improving the Perl interpreter
itself. The Perl development team, called the Perl Porters, has taken
features and inspiration from the ambitious Perl
6<http://dev.perl.org/perl6/>project, as well as from chiefly academic
languages and blended them with
Perl's pragmatic view to practicality and usefulness.

今天Perl基金会公布了Perl的5.10版本,该版本是这门广为流行的动态语言五年多来的首次主要升级。最新的版本不仅在已经非常成功的5.8.x
的基础上添加了强大的新功能,而且对Perl解释器本身也进行了改进。Perl的开发团队,又称为Perl Porters,从雄心勃勃的Perl 6
项目,以及其他的主要流行语言中,吸取了特性和灵感,并将它们融入了Perl语言实用为上的理念之中。

Significant new language features

The most exciting change is the new *smart match operator*. It implements a
new kind of comparison, the specifics of which are contextual based on the
inputs to the operator. For example, to find if scalar $needle is in array
@haystack, simply use the new ~~ operator:

  if ( $needle ~~ @haystack ) ...

The result is that all comparisons now just Do The Right Thing, a hallmark
of Perl programming. Building on the smart-match operator, Perl *finally
gets a **switch** statement*, and it goes far beyond the kind of traditional
switch statement found in languages like C, C++ and Java.

显著的新语言特性

最令人兴奋的改进是全新的*智能匹配操作符*(*smart match operator*)
。该操作符实现了一种全新的比较方式,而其具体实现是随操作符接受的输入而有所不同的。举例而言,要看标量$needle是否存在于数组@haystack
中,只要使用新的~~操作符:

  if ( $needle ~~ @haystack ) ...

其结果将会"正如你所愿",而这正是Perl语言一贯的标志性做法。在此操作符的基础之上,Perl语言终于有了switch语句,而且它比任何传统的
switch语句,像C,C++和JAVA拥有的那些,要先进得多。

Regular expressions are now far more powerful. Programmers can now use *named
captures* in regular expressions, rather than counting parentheses for
positional captures. Perl 5.10 also supports recursive patterns, making many
useful constructs, especially in parsing, now possible. Even with these new
features, the regular expression engine has been tweaked, tuned and sped up
in many cases.

正则表达式也变得强大了许多。程序员们现在可以在正则表达式中使用用*命名的捕获变量**(named captures)*
,而不是数括号来获知匹配的捕获变量。Perl 5.10
还支持嵌套匹配,使得我们现在可以使用许多有效的匹配结构,尤其是解析文件时需要的一些模式,除了这些改进之外,正则表达引擎本身也做了精心调整,很多情况下将它将会跑得更快。

Other improvements include *state variables* that allow variables to persist
between calls to subroutines; user defined pragmata that allow users to
write modules to influence the way Perl behaves; a *defined-or operator*;
field hashes for inside-out objects and *better error messages*.

其他的改进包括可在函数内持续的*状态变量**(state variable)*,使用户可以自己调整Perl运行方式的*用户自定义**pragmata*
,重新定义的*or**操作符*,为翻转对象(inside-out objects)提供的*符号哈希表**(field hashes)*,以及*
改进的错误信息*。

Interpreter improvements

It's not just language changes. The Perl interpreter itself is *faster with
a smaller memory footprint*, and has several UTF-8 and threading
improvements. The Perl *installation is now relocatable*, a blessing for
systems administrators and operating system packagers. The source code is
more portable, and of course many small bugs have been fixed along the way.
It all adds up to the best Perl yet.

For a list of all changes in Perl 5.10, see Perl 5.10's
perldelta<http://search.cpan.org/dist/perl-5.10.0/pod/perl5100delta.pod>document
included with the source distribution. For a gentler introduction
of just the high points, the slides for Ricardo Signes' Perl 5.10 For People
Who Aren't Totally
Insane<http://www.slideshare.net/rjbs/perl-510-for-people-who-arent-totally-insane>talk
are well worth reading.

解释器的改进

并非只有程序语言的改进,Perl解释器本身已变得更快,更少内存占用(memory footprint),还有了一些UTF-8及线程方面的改进。Perl
的安装方式变成了可移动的,这给系统管理员以及操作系统制作者们来说实在是大好消息。源代码现在变得更易移植,很多小bug
也被顺手改正了。所有这一切都造就了目前为止最棒的Perl.

想要了解关于5.10所有的改动,请看Perl 5.10源代码版本中自带的perldelta文档。(link:
http://search.cpan.org/dist/perl-5.10.0/pod/perl5100delta.pod)
想看简易介绍,或者精华版的话, Ricardo Signes'的讲义Perl 5.10 For People Who Aren't Totally
Insane<http://www.slideshare.net/rjbs/perl-510-for-people-who-arent-totally-insane>(link:
http://www.slideshare.net/rjbs/perl-510-for-people-who-arent-totally-insane)
值得一读。

Don't think that the Perl Porters are resting on their laurels. As Rafael
Garcia-Suarez, the release manager for Perl 5.10, said: "I would like to
thank every one of the Perl Porters for their efforts. I hope we'll all be
proud of what Perl is becoming, and ready to get back to the keyboard for
5.12."

不要以为Perl Porters们在荣耀之下就止步不前了,正如Rafeal Garcia-suarez,Perl 5.10的版本管理员所说:"我想感谢Perl
Porters的所有人为此付出的艰苦努力。我希望我们能为Perl的今天感到自豪,并准备好为Perl 5.12继续奋斗。"

Where to get Perl

Perl is a standard feature in almost every operating system today except
Windows. Users who don't want to wait for their operating system vendor to
release a package can dig into Perl 5.10 by downloading it from CPAN, the
Comprehensive Perl Archive Network, at http://search.cpan.org/dist/perl/, or
from the Perl home page at www.perl.org.

Windows users can also take advantage of the power of Perl by compiling a
source distribution from CPAN, or downloading one of two easily installed
binary distributions. Strawberry Perl <http://strawberryperl.com/> is a
community-built binary distribution for Windows, and
ActiveState<http://activestate.com/>'s
distribution is free but commercially-maintained. ActiveState's distribution
is available now, and Strawberry Perl's is imminent.

如何获取Perl

Perl在除Windows之外的几乎所有的操作系统里都已成为标准配置了。不过不想慢慢等待系统升级包的用户可以从CPAN(the
Comprehensive Perl Archive Network)自行下载Perl 5.10。地址是
http://search.cpan.org/dist/perl/,或者从Perl的主页www.perl.org下载。

Windows用户可以编译从CPAN获取的源代码来取得Perl,或者也可以下载两个易于安装的已编译版本中的一个。Strawberry
Perl<http://strawberryperl.com/>(link:
http://strawberryperl.com/)是用户群为Windows制作的已编译版本,而ActiveState<http://activestate.com/>(link:
http://activestate.com/)的版本同样免费但是由商业公司维护。ActiveState版本已经可以获取,Stawberry Perl
也即将完成。

Editor's notes

For questions, contact Perl Foundation Public Relations at
pr at perlfoundation.org.

Perl:
perl.org
Perl is a dynamic programming language created by Larry Wall and first
released in 1987. Perl borrows features from a variety of other languages
including C, shell scripting (sh), AWK, sed and Lisp. It is distributed with
practically every version of Unix available and runs on a huge number of
platforms, as diverse as Windows, Mac OS X, Solaris, z/OS, os400, QNX and
Symbian.

Rafael Garcia-Suarez
email: rgarciasuarez at gmail.com
Rafael Garcia-Suarez is a French software engineer who lives in Paris,
France, and who is currently employed by Booking.com. He has been a
contributor to Perl for many years and has stewarded the birth of Perl
5.10for the last few.

The Perl Foundation
perlfoundation.org <http://www.perlfoundation.org/>
The Perl Foundation is dedicated to the advancement of the Perl programming
language through open discussion, collaboration, design, and code. It is a
non-profit, 501(c)(3) organization incorporated in Holland, Michigan, USA in
2000.

编者注

问题请联系Perl基金会公共关系部  pr at perlfoundation.org

Perl:

Perl是Larry Wall创造的一门动态程序语言,首次发布与1987年。Perl借用了多种语言如C,shell(sh), AWK, sed以及
Lisp的特性。Perl已经成为基本上所有Unix系统的标准配置之一,并可以在许多的操作系统上运行,包括Windows,Mac OS X,Solaris
,z/OS,os400,QNX以及Symbian.

Rafael Garcia-Suarez
email: rgarciasuarez at gmail.com

Rafael Garcia-Suarez是一名生活在法国巴黎的软件工程师,目前是Booking.com的一名雇员。多年来他一直是Perl
的开发者之一,并在最近几年担任着Perl 5.10的管理者。

The Perl Foundation
perlfoundation.org <http://www.perlfoundation.org/>

The Perl Foundation is dedicated to the advancement of the Perl programming
language through open discussion, collaboration, design, and code. It is a
non-profit, 501(c)(3) organization incorporated in Holland, Michigan, USA in
2000.

Perl基金会一直致力于Perl程序语言的各方面的发展。它是一家成立于2000年的,位于美国密歇根州Holland的非营利性组织。



On Dec 20, 2007 10:36 PM, Qiang ( James ) Li <shijialee at gmail.com> wrote:

> the official press release is here:
>
> http://news.perlfoundation.org/2007/12/perl_510_now_available.html
>
> you can forward to other people or/and share it with the list to get a
> final view of it. then i will send it to the perlfoundation and also
> publich it on perlchina.org website.
>
> thanks!
>
> Qiang
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/china-pm/attachments/20071221/4f80c169/attachment-0001.html 


More information about the China-pm mailing list