Perl与Python,怎么选

128 views
Skip to first unread message

Charles Wu

unread,
Dec 6, 2010, 10:06:32 PM12/6/10
to sh...@googlegroups.com
Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?

--
Thanks & Best Regards
 
ViaEDA IC Design Service
Charles Wu
Tel: 021-51619326
Http://www.viaeda.com

机械唯物主义 : linjunhalida

unread,
Dec 6, 2010, 10:13:19 PM12/6/10
to sh...@googlegroups.com
具体看你干什么事情了.
如果作为主力通用编程语言, 用python
如果需要处理字符串, 用perl
如果要写web, 用ror

2010/12/7 Charles Wu <wuq...@gmail.com>:

小马xiaoma

unread,
Dec 6, 2010, 10:34:23 PM12/6/10
to sh...@googlegroups.com
要深入学习任何一个东西,只有花时间去练习。1000小时算入门,10000小时可以精通。

网球和羽毛球哪个好?应该学哪个?完全没有可比性,只要能拿到冠军,都好。

2010/12/7 Charles Wu <wuq...@gmail.com>:

qiancheng shen

unread,
Dec 6, 2010, 10:41:20 PM12/6/10
to sh...@googlegroups.com
同意小马的观点;技术需要专注。另:python处理字符串不比perl差;而且Perl的语法我觉得更难理解些。Ruby不太熟悉,但是它有自己的killer app,如果写web可以考虑;

2010/12/7 小马xiaoma <cnxi...@gmail.com>

Charles Wu

unread,
Dec 7, 2010, 2:51:51 AM12/7/10
to sh...@googlegroups.com
主要是处理文本文件。例如在一个4GB左右的文本文件中找到大于0.1的所有数字,并计算个数等等。
以前用过一段时间perl,现在用python,觉得都还不错,另外听在别的公司上班的同学介绍,他们在用ruby做相同的事情,所以想比较一下。

2010/12/7 qiancheng shen <qianch...@gmail.com>

Shen Chenjun

unread,
Dec 7, 2010, 2:58:24 AM12/7/10
to sh...@googlegroups.com
处理文本是Perl的强项,但Perl的发展已经进入晚年了。

Python目前处于青壮年,用的人也不少,各类库都很成熟,介绍书籍也比较多,是一门比较比较主流的脚本语言。

Ruby随着前2年的RoR火过一把,个人认为处于青年期,库没有Python成熟,但处于上升期,最近的版本性能有所增强,快了不少。

仅供参考。


2010/12/7 Charles Wu <wuq...@gmail.com>

Charles Wu

unread,
Dec 7, 2010, 3:00:43 AM12/7/10
to sh...@googlegroups.com
说得很有道理,我的想法是从perl转到python或ruby,想早点找到方向。

2010/12/7 Shen Chenjun <chenju...@gmail.com>

Lyman

unread,
Dec 7, 2010, 3:05:58 AM12/7/10
to sh...@googlegroups.com
�� 2010��12��07�� 15:51, Charles Wu �:
> ��Ҫ�Ǵ����ı��ļ���������һ��4GB���ҵ��ı��ļ����ҵ�����0.1���������֣�
> ���������ȵȡ�
������������Ǵ����ı����Ӧ��ѡʲô����
http://stackoverflow.com/questions/704828/what-is-the-best-language-for-text-processing

> ��ǰ�ù�һ��ʱ��perl��������python�����ö������?�������ڱ�Ĺ�˾�ϰ��
> ͬѧ���ܣ���������ruby����ͬ�����飬������Ƚ�һ�¡�
����עЧ�ʣ�perl python ruby regex benchmark ֮��Ĺؼ��Ҳ���Ը�����
���IJο���Ϣ������ http://snowplow.org/martin/rebench/

>
> 2010/12/7 qiancheng shen <qianch...@gmail.com
> <mailto:qianch...@gmail.com>>
>
> ͬ��С��Ĺ۵㣻������Ҫרע���?python�����ַ���perl�����
> Perl�����Ҿ��ø������Щ��Ruby��̫��Ϥ�����������Լ���killer app��
> ���дweb���Կ��ǣ�
>
> 2010/12/7 ��xiaoma <cnxi...@gmail.com <mailto:cnxi...@gmail.com>>
>
> Ҫ����ѧϰ�κ�һ��������ֻ�л�ʱ��ȥ��ϰ��1000Сʱ�����ţ�10000
> Сʱ���Ծ�ͨ��
>
> �������ë���ĸ��ã�Ӧ��ѧ�ĸ�����ȫû�пɱ��ԣ�ֻҪ���õ��ھ�
> ���á�
>
> 2010/12/7 Charles Wu <wuq...@gmail.com <mailto:wuq...@gmail.com>>:
> > Perl��Python���Ӵ�����ֻ��֪����Ƥë��������ѧϰ����Ҿ���
> ����������ʲô��ȱ�㡣����ѧ�ĸ�������������Ruby�Ļ����ĸ���ã�

kind terry

unread,
Dec 7, 2010, 3:02:36 AM12/7/10
to sh...@googlegroups.com
主要看你要干啥,否则转了以后发现用不上那就没意思了

2010/12/7 Charles Wu <wuq...@gmail.com>

kind terry

unread,
Dec 7, 2010, 3:01:15 AM12/7/10
to sh...@googlegroups.com
Perl在文本处理领域无敌,速度奇快无比.
另外说perl进入晚年的同志,请关心一下Perl6


2010/12/7 Shen Chenjun <chenju...@gmail.com>

Shen Chenjun

unread,
Dec 7, 2010, 3:14:28 AM12/7/10
to sh...@googlegroups.com
我了解过Perl6, 从2001年开始立项,至今未Official Release,我认为这是一种进入老年的表现。

但很多大型IT企业内部,还在用Perl编写的框架,比如:SAP, Ebay等,Perl程序员还是有市场的。


2010/12/7 kind terry <kind...@gmail.com>

xiaoHan

unread,
Dec 7, 2010, 3:20:18 AM12/7/10
to sh...@googlegroups.com
����и���Ŀ��Ҫд����ý���������Ҳ�ڿ�����python��twisted��ܡ���û��
����У���֪�����ײ���

��Ҫ�ǿ���python����չ�Ժ͹㷺�Ŀ�֧�֣��������ⷽ��ľ���ô���ܷ��㽨
�顣����ʹ��python

��д����չ��ͻ���ıȽϺõĿ�Դ��Ŀ��

Zhe Xu

unread,
Dec 7, 2010, 3:20:06 AM12/7/10
to sh...@googlegroups.com
最近一直在学习ruby, 开发web, rails真是没的说,比起django,pylons什么,个人感觉要舒服很多。 
做文本处理感觉ruby也不会比python或者perl差到哪里去。
另外非常喜欢ruby的gem包管理,这个东西在不断增强,以后python在类库上的优势相对于ruby也会越来越不明显。


2010/12/7 Shen Chenjun <chenju...@gmail.com>

kind terry

unread,
Dec 7, 2010, 3:21:19 AM12/7/10
to sh...@googlegroups.com
是么,和我得到的信息怎么不一致呢?
http://strangelyconsistent.org/blog/yapsi-201012-released

Yapsi 2010.12 Released!

It is with a boisterous belly laugh that I announce on behalf of the Yapsi development team that the December 2010 release of Yapsi, a Perl 6 compiler made of Perl 6, by Perl 6, for Perl 6, shall not perish from the earth.

You can download it here.

Yapsi is implemented in Perl 6. It thus requires a Perl 6 implementation to build and run. This release of Yapsi has been confirmed to work on all releases of Rakudo Star to date.

Yapsi is an "official and complete" implementation of Perl 6. Usually in the rest of this paragraph I perform some obscure hand-waving or ill-formed logic to pretend that the terms "official" and "complete" apply to Yapsi... but today I'd like to break from that norm and simply proceed by structural meta-circular induction on this paragraph, which in itself happens to be official and complete. QED.

This month's release sets the stage for subroutines (and takes a bold step towards Turing-completeness) by allowing programs that put blocks of code into variables:

$ bin/yapsi -e 'my $a; my $b = { say $a }; $a = 42; $b()'
42

For a complete list of changes, see doc/ChangeLog.

Quite a lot of features are within reach of people who are interested in hacking on Yapsi. See the doc/LOLHALP file for a list of 'em. Or see here for a list of English words containing the letter Q not followed by the letter U.

Yapsi consists of a compiler and a runtime. The compiler generates instruction code which the runtime then interprets. Cool, huh? Actually, that's quite standard. What's not standard is calling the instruction format SIC, and then not really having a good idea what it stands for. But never mind; you can either produce SIC code or plug it right into the runtime -- of which, by the way, famous Perl 6 implementor Jonathan Worthington after learning about its inner workings is known to have said "Wow! I don't think I could design something that slow even if I tried!" Though not very fast at all, the runtime is very easy to modify, which has the effect that we modify it quite a lot. We also modify SIC quite a bit; if you expect it not to change, expect that expectation to come back and bite you.

An overarching goal for making a Perl 6 compiler-and-runtime is to use it as a server for various other projects, which hook in at different steps:

  • A time-traveling debugger (tardis), which hooks into the runtime. Already underway, see Github.
  • A coverage tool (lid), which will also hook into the runtime.
  • A syntax checker (sigmund), which will use output from the parser.

Another overarching goal is to optimize for fun while learning about parsers, compilers, and runtimes. \o/

Have the appropriate amount of fun!



2010/12/7 Shen Chenjun <chenju...@gmail.com>

qiancheng shen

unread,
Dec 7, 2010, 3:23:00 AM12/7/10
to sh...@googlegroups.com
python的twisted框架学习曲线很陡峭

2010/12/7 kind terry <kind...@gmail.com>

xiaoHan

unread,
Dec 7, 2010, 3:27:48 AM12/7/10
to sh...@googlegroups.com
On 12/7/2010 4:23 PM, qiancheng shen wrote:
> python的twisted框架学习曲线很陡峭
愿闻其详,最近在看这个

qiancheng shen

unread,
Dec 7, 2010, 3:31:28 AM12/7/10
to sh...@googlegroups.com
twisted是python里面比较重量级的框架,内容多而且复杂,我也不懂twisted,你应该可以教导我一下;我只懂一点点django;比twisted来说要轻量级许多;

2010/12/7 xiaoHan <hanson...@gmail.com>

cnhack TNT

unread,
Dec 7, 2010, 3:34:47 AM12/7/10
to sh...@googlegroups.com
Perl 对正则的支持我认为是最给力的,文本处理还是 Perl 最舒服了。

国内用 Perl 的人不多并不代表 Perl 步入晚年,Perl 社区活跃着呢。

实际上很多大企业有很多产品都是混合多种语言的,各种语言都有它自己适合的场景,我们公司的产品的不同部分就分别用了 c/c++, python, perl。其中 perl 的部分作文本处理也是核心组件之一。公司里很多工具,报表和其他系统也有很多用 perl 开发。

每年的 12 月份一开始到圣诞节,perl 社区都有 perladvent 的传统:


日本的 perl 社区比较活跃,今年涌现了不少开源的好东西。


2010/12/7 Shen Chenjun <chenju...@gmail.com>

qiancheng shen

unread,
Dec 7, 2010, 3:38:05 AM12/7/10
to sh...@googlegroups.com
现在Python对正则的支持也非常好;哈哈~~

2010/12/7 cnhack TNT <cnha...@gmail.com>

小马xiaoma

unread,
Dec 7, 2010, 3:41:22 AM12/7/10
to sh...@googlegroups.com
好像slug有个不成文的规矩,禁止比较和讨论各种语言的优劣。

2010/12/7 qiancheng shen <qianch...@gmail.com>:

kind terry

unread,
Dec 7, 2010, 3:41:31 AM12/7/10
to sh...@googlegroups.com
在文本处理方面

如果说python是一把好剑的话,

那么perl就是倚天剑



2010/12/7 qiancheng shen <qianch...@gmail.com>

cnhack TNT

unread,
Dec 7, 2010, 3:43:10 AM12/7/10
to sh...@googlegroups.com
嗯嗯,就此打住,有兴趣私下讨论


2010/12/7 小马xiaoma <cnxi...@gmail.com>

Chaos Eternal

unread,
Dec 7, 2010, 3:46:47 AM12/7/10
to sh...@googlegroups.com
不,可以比较,但是得说出理由。

像比如 xxx语言真烂,或者xxx语言真好 之类的空洞无味的话就不要说了。
另外,禁止攻击。无论对人还是对语言。

2010/12/7 小马xiaoma <cnxi...@gmail.com>:

cnhack TNT

unread,
Dec 7, 2010, 3:55:45 AM12/7/10
to sh...@googlegroups.com
比如说 python 就不支持 (?i:) 这种正则语句。(它可以被用在比如说我要匹配一个模式,在大小写无关的基础上,需要满足其中某个特定部分必定为大写或小写)

也不支持 \G 等锚点,这个锚点可以让我很方便的进行流式匹配,所以 perl 通过写正则做解析器非常给力。

当然并不是所有的事情都可以用正则来解决,很多时候有更好方案。但无疑就文本处理方面,perl的正则比其他语言提供了更多的遍历。

有兴趣的同学可以参考: http://perldoc.perl.org/perlretut.html


2010/12/7 Chaos Eternal <chaose...@shlug.org>

Charles Wu

unread,
Dec 7, 2010, 3:55:38 AM12/7/10
to sh...@googlegroups.com
我觉得比较一下可以看出各自的优缺点,有的放矢去学习。

2010/12/7 Chaos Eternal <chaose...@shlug.org>

hanxiao

unread,
Dec 7, 2010, 4:22:35 AM12/7/10
to sh...@googlegroups.com
On 12/07/2010 04:31 PM, qiancheng shen wrote:
twisted��python����Ƚ��������Ŀ�ܣ����ݶ���Ҹ��ӣ���Ҳ����twisted����Ӧ�ÿ��Խ̵���һ �£���ֻ��һ���django����twisted��˵Ҫ��������ࣻ
��ʵ��Ҳ����������ֻ��bt����õ�deluge����twisted���ģ��о���Ƶúܺã�������ѧһ�¡�

python�Ҳ����Ŷ��ѣ����ض��Զ��!
2010/12/7 xiaoHan <hanson...@gmail.com>
 On 12/7/2010 4:23 PM, qiancheng shen wrote:
python��twisted���ѧϰ���ߺܶ���
Ը�����꣬����ڿ����


Shell Xu

unread,
Dec 7, 2010, 9:12:47 AM12/7/10
to sh...@googlegroups.com
推荐hadoop。

2010/12/7 Lyman <lym...@gmail.com>
于 2010年12月07日 15:51, Charles Wu 写道:
> 主要是处理文本文件。例如在一个4GB左右的文本文件中找到大于0.1的所有数字,
> 并计算个数等等。
所以你的问题是处理文本最好应该选什么语言
http://stackoverflow.com/questions/704828/what-is-the-best-language-for-text-processing

> 以前用过一段时间perl,现在用python,觉得都还不错,另外听在别的公司上班的
> 同学介绍,他们在用ruby做相同的事情,所以想比较一下。
如果关注效率,perl python ruby regex benchmark 之类的关键词也可以给你足
够的参考信息。比如 http://snowplow.org/martin/rebench/


>
> 2010/12/7 qiancheng shen <qianch...@gmail.com
> <mailto:qianch...@gmail.com>>
>
>     同意小马的观点;技术需要专注。另:python处理字符串不比perl差;而且

>     Perl的语法我觉得更难理解些。Ruby不太熟悉,但是它有自己的killer app,
>     如果写web可以考虑;
>
>     2010/12/7 小马xiaoma <cnxi...@gmail.com <mailto:cnxi...@gmail.com>>
>
>         要深入学习任何一个东西,只有花时间去练习。1000小时算入门,10000

>         小时可以精通。
>
>         网球和羽毛球哪个好?应该学哪个?完全没有可比性,只要能拿到冠军,
>         都好。
>
>         2010/12/7 Charles Wu <wuq...@gmail.com <mailto:wuq...@gmail.com>>:
>         > Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得
>         这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?

>         >
>         > --
>         > Thanks & Best Regards
>         >
>         > ViaEDA IC Design Service
>         > Charles Wu
>         > Tel: 021-51619326
>         > Http://www.viaeda.com
>         >
>         >
>
>
>
>
>
> --
> Thanks & Best Regards
>
> ViaEDA IC Design Service
> Charles Wu
> Tel: 021-51619326
> Http://www.viaeda.com
>




--
无能者无所求,饱食而遨游,泛若不系之舟

Shell Xu

unread,
Dec 7, 2010, 9:14:55 AM12/7/10
to sh...@googlegroups.com
最好把php python perl全学了,就可以在简历中写“精通3P”了。

2010/12/7 Charles Wu <wuq...@gmail.com>



--
无能者无所求,饱食而遨游,泛若不系之舟

LI Daobing

unread,
Dec 7, 2010, 9:20:50 AM12/7/10
to sh...@googlegroups.com
精通 ASSHOLE

Apache, Struts, Spring, Hibernate, Oracle, Linux, English

2010/12/7 Shell Xu <shell...@gmail.com>:

--
Best Regards
LI Daobing

机械唯物主义 : linjunhalida

unread,
Dec 7, 2010, 9:26:33 AM12/7/10
to sh...@googlegroups.com
精通ORAL SEX
oracle, ruby, apache, linux, sql, emacs, x11

2010/12/7 LI Daobing <lida...@gmail.com>:

机械唯物主义 : linjunhalida

unread,
Dec 7, 2010, 9:29:18 AM12/7/10
to sh...@googlegroups.com
说正经的, 学什么语言, 重点在于身边有什么语言的高手,
这样遇到问题可以很方便第求助.
比如, 你写C++遇到一个编译问题, 又不方便把项目发到网上, 那个时候叫天天不灵阿.

xiaoyong

unread,
Dec 7, 2010, 9:39:32 AM12/7/10
to sh...@googlegroups.com
除了功能,还要考虑风格,Perl/Ruby 自由散漫,Python 严格。 
--
xiaoyong
http://xiaoyong.org/

usoluyun

unread,
Dec 7, 2010, 9:54:25 AM12/7/10
to sh...@googlegroups.com
perl6真是等的头发都白了。
perl5太好用了呗。cpan里要啥有啥。要找工作选perl错不了。

python么更全能一点。而且用c扩展方便,也有大公司支持。未来发展也是很有潜
力的。

>>>>>>>>>>>>>>> Thanks& Best Regards


>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ViaEDA IC Design Service
>>>>>>>>>>>>>>> Charles Wu
>>>>>>>>>>>>>>> Tel: 021-51619326
>>>>>>>>>>>>>>> Http://www.viaeda.com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --

>>>>>>>>>>>> Thanks& Best Regards


>>>>>>>>>>>>
>>>>>>>>>>>> ViaEDA IC Design Service
>>>>>>>>>>>> Charles Wu
>>>>>>>>>>>> Tel: 021-51619326
>>>>>>>>>>>> Http://www.viaeda.com
>>>>>>>>>>>>
>>>>>>>
>>>>
>>>>
>>>> --

>>>> Thanks& Best Regards

小马xiaoma

unread,
Dec 7, 2010, 8:25:33 PM12/7/10
to sh...@googlegroups.com
重口味

2010/12/7 Shell Xu <shell...@gmail.com>:

小马xiaoma

unread,
Dec 7, 2010, 8:29:10 PM12/7/10
to sh...@googlegroups.com
精通Fortran, unix,c/c++ , kde

cnhack TNT

unread,
Dec 7, 2010, 9:34:19 PM12/7/10
to sh...@googlegroups.com
xiaoma 这个够隐晦...

2010/12/8 小马xiaoma <cnxi...@gmail.com>

Xun Sun

unread,
Dec 8, 2010, 12:59:20 AM12/8/10
to sh...@googlegroups.com
精通ALL

AIX Linux LaTex

2010/12/8 小马xiaoma <cnxi...@gmail.com>:

--
Thanks & regards
Xun Sun

woosley. xu.

unread,
Dec 8, 2010, 2:09:36 AM12/8/10
to sh...@googlegroups.com
随便学
学精了哪个都有前途



2010/12/7 Charles Wu <wuq...@gmail.com>
Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?

--
Thanks & Best Regards
 
ViaEDA IC Design Service
Charles Wu
Tel: 021-51619326
Http://www.viaeda.com




--
Woosley.Xu



Roy

unread,
Dec 9, 2010, 1:31:47 AM12/9/10
to sh...@googlegroups.com
同意,现在人都想速成,好像学了一个语言可以走天下。
很多时候高手都是同时会几门语言的,看需求来的。

2010/12/8 woosley. xu. <redi...@gmail.com>

杨超

unread,
Dec 9, 2010, 1:39:44 AM12/9/10
to sh...@googlegroups.com
可以先学学perl,不是很难。
 
不管perl和python,都是工具,看你用哪个用的顺手,是否合适,不要太在意那些意见之争

2010/12/7 Charles Wu <wuq...@gmail.com>
Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?

--
Thanks & Best Regards
 
ViaEDA IC Design Service
Charles Wu
Tel: 021-51619326
Http://www.viaeda.com




--
svenyang

J.Y. Hsu

unread,
Dec 10, 2010, 9:53:14 AM12/10/10
to sh...@googlegroups.com
我来说说看我面试的时候的回答.


"Perl能做的简单的事情,awk/sed/shell可以做的更快, Perl能做的复杂的事情,Python可以使之更简单”

但是我也提醒面试官,UNIX来钱快,而大多数UNIX出厂就有perl 5.8.8, 一般装不上一个Python...

Availablity is very important!!

2010/12/9 杨超 <zhaoya...@gmail.com>



--
http://ucarenya.com/

meteor

unread,
Dec 11, 2010, 9:06:46 AM12/11/10
to Shanghai Linux User Group
我个人认为,Ruby是Java的自由版本.

Python我感觉怎么很像PHP啊..

机械唯物主义 : linjunhalida

unread,
Dec 11, 2010, 9:09:58 AM12/11/10
to sh...@googlegroups.com
我个人认为,Ruby有点像haskell一样函数式..
Python有点像pascal一样整齐..

2010/12/11 meteor <liuxi...@gmail.com>:

meteor

unread,
Dec 11, 2010, 9:10:27 AM12/11/10
to Shanghai Linux User Group
恩.

UNIX.

我感觉现在PC都流行Linux了.

不知道是不是大机和IBM服务器那边还在用UNIX.

另外,不知道Solaris是不是也是属于UNIX.

On 12月10日, 下午10时53分, "J.Y. Hsu" <infern...@gmail.com> wrote:
> 我来说说看我面试的时候的回答.
>
> "Perl能做的简单的事情,awk/sed/shell可以做的更快, Perl能做的复杂的事情,Python可以使之更简单”
>
> 但是我也提醒面试官,UNIX来钱快,而大多数UNIX出厂就有perl 5.8.8, 一般装不上一个Python...
>
> Availablity is very important!!
>

> 2010/12/9 杨超 <zhaoyang2...@gmail.com>


>
>
>
>
>
> > 可以先学学perl,不是很难。
>
> > 不管perl和python,都是工具,看你用哪个用的顺手,是否合适,不要太在意那些意见之争
>
> > 2010/12/7 Charles Wu <wuq...@gmail.com>
>
> >> Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?
>
> >> --
> >> Thanks & Best Regards
>
> >> ViaEDA IC Design Service
> >> Charles Wu
> >> Tel: 021-51619326

> >> Http://www.viaeda.com<http://www.viaeda.com/>
>
> > --
> > svenyang
>
> --http://ucarenya.com/

meteor

unread,
Dec 11, 2010, 9:13:48 AM12/11/10
to Shanghai Linux User Group
这个太NB了.

月收入是N万RMB了吧?

On 12月7日, 下午10时20分, LI Daobing <lidaob...@gmail.com> wrote:
> 精通 ASSHOLE
>
> Apache, Struts, Spring, Hibernate, Oracle, Linux, English
>

> 2010/12/7 Shell Xu <shell909...@gmail.com>:


>
>
>
>
>
> > 最好把php python perl全学了,就可以在简历中写"精通3P"了。
>
> > 2010/12/7 Charles Wu <wuq...@gmail.com>
>
> >> 我觉得比较一下可以看出各自的优缺点,有的放矢去学习。
>

> >> 2010/12/7 Chaos Eternal <chaoseter...@shlug.org>


>
> >>> 不,可以比较,但是得说出理由。
>
> >>> 像比如 xxx语言真烂,或者xxx语言真好 之类的空洞无味的话就不要说了。
> >>> 另外,禁止攻击。无论对人还是对语言。
>

> >>> 2010/12/7 小马xiaoma <cnxia...@gmail.com>:
> >>> > 好像slug有个不成文的规矩,禁止比较和讨论各种语言的优劣。
>
> >>> > 2010/12/7 qiancheng shen <qianchengs...@gmail.com>:
> >>> >> 现在Python对正则的支持也非常好;哈哈~~
>
> >>> >> 2010/12/7 cnhack TNT <cnhack...@gmail.com>


>
> >>> >>> Perl 对正则的支持我认为是最给力的,文本处理还是 Perl 最舒服了。
> >>> >>> 国内用 Perl 的人不多并不代表 Perl 步入晚年,Perl 社区活跃着呢。
> >>> >>> 实际上很多大企业有很多产品都是混合多种语言的,各种语言都有它自己适合的场景,我们公司的产品的不同部分就分别用了 c/c++,
> >>> >>> python,
> >>> >>> perl。其中 perl 的部分作文本处理也是核心组件之一。公司里很多工具,报表和其他系统也有很多用 perl 开发。
> >>> >>> 每年的 12 月份一开始到圣诞节,perl 社区都有 perladvent 的传统:
> >>> >>> 去年的:http://perlchina.org/advent/
> >>> >>> 今年的:http://fayland.github.com/advent.perlchina.org/
> >>> >>>http://perladvent.pm.org/2010/
> >>> >>>http://www.catalystframework.org/calendar/2010/
> >>> >>>http://advent.rjbs.manxome.org/2010/
> >>> >>>http://advent.perldancer.org/2010
> >>> >>>http://perl-users.jp/articles/advent-calendar/2010/
> >>> >>> 日本的 perl 社区比较活跃,今年涌现了不少开源的好东西。
>

> >>> >>> 2010/12/7 Shen Chenjun <chenjun.s...@gmail.com>


>
> >>> >>>> 我了解过Perl6, 从2001年开始立项,至今未Official Release,我认为这是一种进入老年的表现。
> >>> >>>> 但很多大型IT企业内部,还在用Perl编写的框架,比如:SAP, Ebay等,Perl程序员还是有市场的。
>

> >>> >>>> 2010/12/7 kind terry <kindte...@gmail.com>
>
> >>> >>>>> Perl在文本处理领域无敌,速度奇快无比.
> >>> >>>>> 另外说perl进入晚年的同志,请关心一下Perl6
>
> >>> >>>>> 2010/12/7 Shen Chenjun <chenjun.s...@gmail.com>


>
> >>> >>>>>> 处理文本是Perl的强项,但Perl的发展已经进入晚年了。
> >>> >>>>>> Python目前处于青壮年,用的人也不少,各类库都很成熟,介绍书籍也比较多,是一门比较比较主流的脚本语言。
> >>> >>>>>> Ruby随着前2年的RoR火过一把,个人认为处于青年期,库没有Python成熟,但处于上升期,最近的版本性能有所增强,快了不少。
> >>> >>>>>> 仅供参考。
>
> >>> >>>>>> 2010/12/7 Charles Wu <wuq...@gmail.com>
>
> >>> >>>>>>> 主要是处理文本文件。例如在一个4GB左右的文本文件中找到大于0.1的所有数字,并计算个数等等。
>
> >>> >>>>>>> 以前用过一段时间perl,现在用python,觉得都还不错,另外听在别的公司上班的同学介绍,他们在用ruby做相同的事情,所以想比较一下。
>

> >>> >>>>>>> 2010/12/7 qiancheng shen <qianchengs...@gmail.com>
>
> >>> >>>>>>>> 同意小马的观点;技术需要专注。另:python处理字符串不比perl差;而且Perl的语法我觉得更难理解些。Ruby不太熟悉,但是它有自己的kille-r
> >>> >>>>>>>> app,如果写web可以考虑;
>
> >>> >>>>>>>> 2010/12/7 小马xiaoma <cnxia...@gmail.com>

meteor

unread,
Dec 11, 2010, 9:18:44 AM12/11/10
to Shanghai Linux User Group
可是我现在已经发现会的有点多了.
大学学了C语言.

研究生学了.Net(C#)

第一份工作是C++.

现在刚考过了Oracle的Java的OCJP认证.

目前工作使用Java.

数了下,会C,C++,C#,Java.觉得有点头晕了.

现在又想开始学Python和JavaScript了...

On 12月9日, 下午2时31分, Roy <gregorian.zh...@gmail.com> wrote:
> 同意,现在人都想速成,好像学了一个语言可以走天下。
> 很多时候高手都是同时会几门语言的,看需求来的。
>

> 2010/12/8 woosley. xu. <redic...@gmail.com>

meteor

unread,
Dec 11, 2010, 9:24:50 AM12/11/10
to Shanghai Linux User Group
C++还算好.有StackOverflow.

我之前工作上又不会的C++的问题时,一直把问题发到StackOverflow上面的,
http://stackoverflow.com/users/365479/meteor

但是遇到C语言的一些问题,叫你只能写.h或者.c后缀的代码的时候,那个才是我觉得最郁闷的事情.

明明有Function可以直接用,但是人家不允许你去用.非要你自己写,这个好痛苦啊.

On 12月7日, 下午10时29分, 机械唯物主义 : linjunhalida <linjunhal...@gmail.com>
wrote:

机械唯物主义 : linjunhalida

unread,
Dec 11, 2010, 9:28:52 AM12/11/10
to sh...@googlegroups.com
c语言干的就是库层面的事情. 嵌入式的c数字转字符的函数都得自己写.

2010/12/11 meteor <liuxi...@gmail.com>:

Liang Guo

unread,
Dec 11, 2010, 9:29:48 AM12/11/10
to sh...@googlegroups.com
2010/12/11 meteor <liuxi...@gmail.com>:

> 恩.
>
> UNIX.
>
> 我感觉现在PC都流行Linux了.
>
> 不知道是不是大机和IBM服务器那边还在用UNIX.
>
> 另外,不知道Solaris是不是也是属于UNIX.
>

Solaris, IBM AIX, HP-UX, FreeBSD, OpenBSD, NetBSD都是正统的UNIX,
Linux是UNIX的克隆, 并不包含UNIX的代码.
IBM i系列上跑的OS/400, z系列上跑的z/OS, z/VM都不是UNIX, 都属于专有系统. 其他大机不知道跑什么系统,

可参考:
http://en.wikipedia.org/wiki/Unix
--
Liang Guo
http://bluestone.cublog.cn

机械唯物主义 : linjunhalida

unread,
Dec 11, 2010, 9:30:36 AM12/11/10
to sh...@googlegroups.com
我也是, 会的一堆, 但是这些都只是工具而已.
电工懂得用万用表, 螺丝刀等等一堆工具只是基本功,
在别人看来, 只要能够修好灯泡就好了.
问题是, 能修什么样的灯泡? 这个才是标榜自己价值的重点..

2010/12/11 meteor <liuxi...@gmail.com>:

Serenade

unread,
Dec 28, 2010, 8:01:12 AM12/28/10
to sh...@googlegroups.com
等遇上没有可以连接cpan的网络,你就只能镜像一个cpan了,到时候你就辛苦了

2010/12/7 usoluyun <usol...@gmail.com>

雨蒼

unread,
Dec 28, 2010, 11:20:42 PM12/28/10
to Shanghai Linux User Group
目前除了puppy linux以外
沒有看過哪個dist出廠沒有python的.....

On 12月10日, 下午10時53分, "J.Y. Hsu" <infern...@gmail.com> wrote:
> 我来说说看我面试的时候的回答.
>
> "Perl能做的简单的事情,awk/sed/shell可以做的更快, Perl能做的复杂的事情,Python可以使之更简单”
>
> 但是我也提醒面试官,UNIX来钱快,而大多数UNIX出厂就有perl 5.8.8, 一般装不上一个Python...
>
> Availablity is very important!!
>

> 2010/12/9 杨超 <zhaoyang2...@gmail.com>


>
>
>
>
>
>
>
>
>
> > 可以先学学perl,不是很难。
>
> > 不管perl和python,都是工具,看你用哪个用的顺手,是否合适,不要太在意那些意见之争
>
> > 2010/12/7 Charles Wu <wuq...@gmail.com>
>
> >> Perl与Python都接触过,但是只是知道点皮毛,想深入学习,大家觉得这两个各有什么优缺点。建议学哪个?另外如果加上Ruby的话,哪个更好?
>
> >> --
> >> Thanks & Best Regards
>
> >> ViaEDA IC Design Service
> >> Charles Wu
> >> Tel: 021-51619326

雨蒼

unread,
Dec 28, 2010, 11:22:47 PM12/28/10
to Shanghai Linux User Group
"該學什麼程式語言"這種問題,

通常都只會得到宗教信仰的回答

每種刀都有用途,重點是合不合手。你自己學了才知道適不適合你
跑上來問人沒有用的。

J.Y. Hsu

unread,
Dec 29, 2010, 4:27:48 AM12/29/10
to sh...@googlegroups.com
但是严肃的UNIX生产环境不但没有python,编译器也一般没有。
手头能用的就是ksh, perl 5.8.8

2010/12/29 雨蒼 <bill...@gmail.com>



--
http://ucarenya.com/

Chaos Eternal

unread,
Dec 29, 2010, 4:50:04 AM12/29/10
to sh...@googlegroups.com
严肃的unix 生产环境 已经死的差不多了。

2010/12/29 J.Y. Hsu <infe...@gmail.com>:

Gene Wu

unread,
Dec 29, 2010, 9:17:10 PM12/29/10
to sh...@googlegroups.com
这点我不赞同,大规模部署的集群里面很严肃的unix环境还是比比皆是,只是越来越多的开始拥抱linux,或多或少带了python之类的工具

2010/12/29 Chaos Eternal <chaose...@shlug.org>

Liang Guo

unread,
Dec 29, 2010, 9:45:48 PM12/29/10
to sh...@googlegroups.com
2010/12/29 J.Y. Hsu <infe...@gmail.com>:

> 但是严肃的UNIX生产环境不但没有python,编译器也一般没有。
> 手头能用的就是ksh, perl 5.8.8
>
什么是严肃的UNIX?

很多商业UNIX不装编译器,是因为编译器是需要花money买的。
shell肯定会有,perl一般会有吧?

Gene Wu

unread,
Jan 9, 2011, 5:59:56 AM1/9/11
to sh...@googlegroups.com
继续为python添油加醋,新学还是选python比较合适

Programming language Python has become programming language of 2010. This award is given to the programming language that gained most market share in 2010. Python grew 1.81% since January 2010. This is a bit more than runner up Objective-C (+1.63%). Objective-C was favorite for the title for a long time thanks to the popularity of Apple's iPhone and iPad platforms. However, it lost too much popularity the last couples of months.

Python has become the "de facto" standard in system scripting (being a successor of Perl in this), but it is used for much more different types of application areas nowadays. Python is for instance very popular among web developers, especially in combination with the Django framework. Since Python is easy to learn, more and more universities are using Python to teach programming languages.


2010/12/30 Liang Guo <bluesto...@gmail.com>

MeaCulpa

unread,
Jan 24, 2011, 10:13:06 PM1/24/11
to sh...@googlegroups.com, Chaos Eternal
国企犹存

Reply all
Reply to author
Forward
0 new messages