Perl笔记

Wednesday, January 28, 2009

内核的幽默

CONFIG_LGUEST:

If unsure, say N. If curious, say M. If masochistic, say Y.

如上。

BTW,一定保证DISKLABEL=yes或者genkernel时--disklabel,如果想用UUID指定根分区的话。

Sunday, December 28, 2008

Larry Wall关于Perl6的演讲

Youtube/Google Video上有长达1小时的视频。Larry提到很多已经公开讨论过的细节,比如:Perl6是许多语言的语言,操作符‘|’不再是从左到右依次求值了,而是满足并行求值的需求,操作符‘||’则进行Perl5中‘|’的串行;比如P6RE(没错,不再是PCRE了)里,一切都是默认x修饰过的扩展语法(所以没有x修饰符了),也没有s修饰了,一切都是多行的,\N用来匹配“非\n”,^^和^匹配字符串的开始和一行的开始,也没有/1,统统使用$1了;如,操作符的定义也可以极端灵活,现场展示了定义"+-"操作符的语法等等。一如既往,Larry希望别人能够继续“偷窃”perl对于Regex/正则的贡献。

Larry在解答现场提问时,提到自己不参与涉及语言实现的工作,一切实现都交予社区来进行,而他本人负责协调设计语言本身。还有人提问唐凤的近况,Larry提到唐凤似乎罹患Attention Deficit,不过目前已经停止用药了。祝她早日康复啊!

Saturday, December 06, 2008

新的ProjectCartoon


软件工程的讽刺漫画ProjectCartoon.com(beta)今年又有几幅更新:其中iSwing明显是在模仿苹果的iPod剪影广告。辛普森都要恶搞一下的产品……

听说Python 3发布后许多人在抨击兼容性,还有比如:


>>> (16**8**4+1)/2
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
(16**8**4+1)/2
OverflowError: int/int too large for a float
>>>

不知道perl6会咋样。

Tuesday, November 18, 2008

新的bioperl

从邮件列表看,bioperl还在讨论是否保留针对perl-5.8的支持。Perl-5.8是Mac OS X 10.5 Leopard的标配版本,估计5.10要等到Snow Leopard了,所以5.8还是要支持的吧!Mac的平台跨度不小,估计想发布自己维护的二进制Perl也不是容易事。

根据计划,貌似bioperl-1.6要发布了,大概就在一个月以内吧。

不知道iPhoneOS2上的perl啥时候发布

iPhone 2.x的python和pyobjc已经用了很久了,也有人用来写Cydia上的应用了。perl的编译倒是不大顺利,貌似还有些test没过

希望能在Cydia上早日再见到perl。

Friday, January 25, 2008

/.上的回帖

以下回帖节选自/.上又一篇关于perl有所为有所不为的争论:

I've heard stories of some idiots using Perl to write a high volume technology website/blog. I'm still trying to find out what site it is.
——说的就是/.嘛!

My favorite "You did WHAT in perl?" response is: On several projects, when there were portability problems, I've created a Makefile entry that runs a "man foo" command and pipes the data to a perl script, which generates C files for that system. It's typically just header files, but sometimes also a few .c files with data structures and/or simple functions to intercede with variant library routines.

It's fun to watch people's reaction when they realize that "You wrote a perl script that reads the manual and generates the code?" I just respond something like "Uh, yeah; you got a problem with that?"

Especially fun has been the couple of discussions in which I expressed a great deal of skepticism of various "AI" claims. Then someone brings up the fact that I write perl programs that read English-language docs and generate code from them. They're obviously puzzled by the fact that I do this while looking skeptically at "AI" proposals. It's like they expect me to just shrug and write other impossible things in perl.

Monday, December 17, 2007

A conceit of 2D operator in perl

发信人: zhangchn (囧囧秋月朙), 信区: Perl
标 题: Re: 如何确定一个元素是否存在于某个数组中?
发信站: 水木社区 (Mon Dec 17 21:10:19 2007), 转信

会不会弄个二维的?
@a
\
$x<<-#->>$y
\
%b;

【 在 flw (梨花小蓓蕾) 的大作中提到: 】
: 看 Perl 6 的语法,沦陷的多了,
: <<==>> <<+>> <<->> 都是运算符了。

Monday, December 03, 2007

不是吧?perl在日本也搞サービス?


详见http://www.slideshare.net/lapis25/perl-47997/,第53页。

可惜不太萌。