- 浏览: 1291321 次
- 性别:
- 来自: 江苏
最新评论
-
honey_fansy:
的确,不要自己的支持就说完美支持,我的就不行,别说我的不是fi ...
无js实现text-overflow: ellipsis; 完美支持Firefox -
fanchengfei:
事件长微博,欢迎转发:http://weibo.com/332 ...
《在路上 …》 写代码也需要一点演技 – python2.6 的 class decorator -
blued:
没有报错,但排版效果一点都没有 咋回事。请指教
python排版工具 -
szxiaoli:
耍人呀,效果在哪儿呀
滑动效果 -
accaolei:
这个能监到控子目录吗?,我测试了一下,发现子目录里的文件监控不 ...
windows监控目录改动
本来做一个勤勤恳恳的码农我应该学习佩雷尔曼前辈的作风 --- "佩雷尔曼反复说他已经退出了数学界,不再认为自己是职业数学家了。"
不过鉴于Gtalk跳出很多朋友 -- 写PHP的和写Java的 -- 很高兴的告诉我伟大的CSDN上出现了一条新闻:
[独家]Google将限制Python语言的应用 开发社区热议 http://news.csdn.net/a/20091116/214803.html
加上很多菜鸟们无知的写到"看得心都碎了。"
我这颗不甘寂寞的心久久不能平静。
还是写一点东西吧。
不过,先做一个广告,我在卖python空间 http://stdyun.com/vhost 。
同时有一个论坛 http://groups.google.com/group/stdyun-vhost?hl=zh-cn
也欢迎大家加入。
11月11号开始小规模出售,目前已经卖出11个,预定几个,距离一台机器卖50个目标还很遥远,不过距离卖出30个新增另一个机房第二台服务器已经很接近了:)
鉴于CSDN编辑翻译的非常非常非常糟糕 -- 断章取义,词不及义,加上不懂Python。
大家还是先去看看原帖 http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e
原帖在Unladen Swallow的论坛上。Unladen Swallow是Python的一个分支,由Google的一组开发人员组成。
我来翻译一小段:
kgn
I'm told that Google employees are being discouraged from using Python for new projects,
which seems silly given how much Python code and Python support comes out of Google.
I've hunted for more information but haven't found any.
Do you know any details, or is this just a rumor?
我听说Google不鼓励员工在新项目中用Python。
Google把如此多是Python代码和Python支持挪走听起来很傻。
我想再八卦一下,可惜没找到什么爆料。
你了解更多细节吗,又或者只是谣传。
Collin Winter
Well, simple common sense is going to limit Python's applicability when operating at Google's scale:
it's not as fast as Java or C++, threading sucks, memory usage is higher, etc.
One of the design constraints we face when designing any new system is,
"
what happens when the load goes up by 10x or 100x?
What happens if the whole planet thinks your new service is awesome?
"
Any technology that makes satisfying that constraint harder -- and I think Python falls into this category -- *should* be discouraged if it doesn't have a very strong case made in its favor on other merits.
You have to balance Python's strengths with its weaknesses:
your engineers may be more productive using Python,
but if they have to work around more platform-level performance/scaling limitations as volume increases, do you come out ahead?
etc.
恩,显而易见,一些缺陷将限制Google在做大规模时使用Python:
没Java或是C++那么快,糟糕的线程,高的内存占用,等等。
我们开始设计任何一个新系统时,我们需要面对的问题是:
当负载增加了10倍或者100倍系统会怎样?
当全世界都赞叹你的新应用令人难忘时会怎么样?
在这样有高难度的挑战面前,什么技术都很难让人满意 -- 并且,我认为Python也是属于这类 -- 如果没有什么特别的应用场景,在其他方面使其将功赎罪的话,"应该"不被鼓励使用。
你需要权衡Python的优缺点:
你的工程师用Python生产力会更高。
但是,随着压力膨胀,当你不得不去面对更多平台级别的性能/可扩展性时,你能领先(问题)一步吗?
等等
--------------------------------------------------------------------
点评:
到此为止,大家可以看到,其实这两人就是在随便扯扯 -- 大意就是,Python不是万能,一切都是要权衡的 -- 与那标题党的标题基本没有什么关系 。
这简直就是废话 -- 从来没有一个 Pythoner 认为 Python 是万能的 -- Python是我们伟大的胶水 -- 倒是有很多Cpper和Javaer认为自己的神是万能的。
--------------------------------------------------------------------
接着看下面的邮件,CSDN的编辑不懂Python,没搞懂Cython是什么,把它和CPython混淆了。
CPython是python的官方解释器。
Cython是用类似Python语法,给Python写C扩展的方式。
Cython is a language that makes writing C extensions for the Python language as easy as Python itself. Cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.
Cython是一种语言,让用C给Python写扩展和写Python一样容易。Cython从广为人知的Pyrex的基础上发展起来,但有更多的转换函数和优化。
事实上,Python+Cython是一种很爽的组合方式,如同 Tom Machinski 所说
"""
Specifically, if an engineer wishes to pursue a performance-intensive
project in Python, why not tell him to use Cython (or Python with some
C extensions) rather than force him to a completely different language
like Java or C++.
An engineer who picks Python as his first choice is probably familiar
enough with the language to utilize Cython / C-extension effectively,
and would probably rather do that than use any of those completely
different languages. As a bonus, Google gets a tool that's probably
easier to maintain than your common C++ codebase.
确切地说,如果一个工程师希望在Python的项目中追求性能,为什么不告诉他如何使用Cython(或蟒蛇和一些C扩展),而不是强迫他一个完全不同的语言:如Java或C + +。
一个Pythoner的程序员,不难熟悉运用Cython / C扩展来追求效率。而且这样做或许会比用其他完全不同的语言更合适。
同时,Google也能得到一个比C++代码库更容易维护工具。
"""
当然,一般而言,普通代码用Cython优化没什么明显效果,用它封装一些瓶颈的函数就可以了 -- 更多时候是用来把C库变成Python的库 。
=====================================
好吧,大家就不要扯淡了。
庄子逍遥游有云:
且夫水之积也不厚,则其负大舟也无力。
覆杯水于坳堂之上,则芥为之舟;
置杯焉则胶,水浅而舟大也。
风之积也不厚,则其负大翼也无力。
故九万里则风斯在下矣,
而后乃今培风;背负青天而莫之夭阏者,而后乃今将图南。
有资格去设计这么大应用的时候再去指手画脚吧,Python写网站抗个日PV几KW还是很小case的。
Google怎么做,只是用来吹牛的聊资罢了,何况Python之父还在Google呢。
现在 -- 该干嘛干嘛去。
再批判一下CSDN,当年误导我钻研C++ Template,浪费了一年半载的光阴。
唉,我又浪费青春在口水战中了。。。
不过鉴于Gtalk跳出很多朋友 -- 写PHP的和写Java的 -- 很高兴的告诉我伟大的CSDN上出现了一条新闻:
[独家]Google将限制Python语言的应用 开发社区热议 http://news.csdn.net/a/20091116/214803.html
加上很多菜鸟们无知的写到"看得心都碎了。"
我这颗不甘寂寞的心久久不能平静。
还是写一点东西吧。
不过,先做一个广告,我在卖python空间 http://stdyun.com/vhost 。
同时有一个论坛 http://groups.google.com/group/stdyun-vhost?hl=zh-cn
也欢迎大家加入。
11月11号开始小规模出售,目前已经卖出11个,预定几个,距离一台机器卖50个目标还很遥远,不过距离卖出30个新增另一个机房第二台服务器已经很接近了:)
鉴于CSDN编辑翻译的非常非常非常糟糕 -- 断章取义,词不及义,加上不懂Python。
大家还是先去看看原帖 http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e
原帖在Unladen Swallow的论坛上。Unladen Swallow是Python的一个分支,由Google的一组开发人员组成。
我来翻译一小段:
kgn
I'm told that Google employees are being discouraged from using Python for new projects,
which seems silly given how much Python code and Python support comes out of Google.
I've hunted for more information but haven't found any.
Do you know any details, or is this just a rumor?
我听说Google不鼓励员工在新项目中用Python。
Google把如此多是Python代码和Python支持挪走听起来很傻。
我想再八卦一下,可惜没找到什么爆料。
你了解更多细节吗,又或者只是谣传。
Collin Winter
Well, simple common sense is going to limit Python's applicability when operating at Google's scale:
it's not as fast as Java or C++, threading sucks, memory usage is higher, etc.
One of the design constraints we face when designing any new system is,
"
what happens when the load goes up by 10x or 100x?
What happens if the whole planet thinks your new service is awesome?
"
Any technology that makes satisfying that constraint harder -- and I think Python falls into this category -- *should* be discouraged if it doesn't have a very strong case made in its favor on other merits.
You have to balance Python's strengths with its weaknesses:
your engineers may be more productive using Python,
but if they have to work around more platform-level performance/scaling limitations as volume increases, do you come out ahead?
etc.
恩,显而易见,一些缺陷将限制Google在做大规模时使用Python:
没Java或是C++那么快,糟糕的线程,高的内存占用,等等。
我们开始设计任何一个新系统时,我们需要面对的问题是:
当负载增加了10倍或者100倍系统会怎样?
当全世界都赞叹你的新应用令人难忘时会怎么样?
在这样有高难度的挑战面前,什么技术都很难让人满意 -- 并且,我认为Python也是属于这类 -- 如果没有什么特别的应用场景,在其他方面使其将功赎罪的话,"应该"不被鼓励使用。
你需要权衡Python的优缺点:
你的工程师用Python生产力会更高。
但是,随着压力膨胀,当你不得不去面对更多平台级别的性能/可扩展性时,你能领先(问题)一步吗?
等等
--------------------------------------------------------------------
点评:
到此为止,大家可以看到,其实这两人就是在随便扯扯 -- 大意就是,Python不是万能,一切都是要权衡的 -- 与那标题党的标题基本没有什么关系 。
这简直就是废话 -- 从来没有一个 Pythoner 认为 Python 是万能的 -- Python是我们伟大的胶水 -- 倒是有很多Cpper和Javaer认为自己的神是万能的。
--------------------------------------------------------------------
接着看下面的邮件,CSDN的编辑不懂Python,没搞懂Cython是什么,把它和CPython混淆了。
CPython是python的官方解释器。
Cython是用类似Python语法,给Python写C扩展的方式。
Cython is a language that makes writing C extensions for the Python language as easy as Python itself. Cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.
Cython是一种语言,让用C给Python写扩展和写Python一样容易。Cython从广为人知的Pyrex的基础上发展起来,但有更多的转换函数和优化。
事实上,Python+Cython是一种很爽的组合方式,如同 Tom Machinski 所说
"""
Specifically, if an engineer wishes to pursue a performance-intensive
project in Python, why not tell him to use Cython (or Python with some
C extensions) rather than force him to a completely different language
like Java or C++.
An engineer who picks Python as his first choice is probably familiar
enough with the language to utilize Cython / C-extension effectively,
and would probably rather do that than use any of those completely
different languages. As a bonus, Google gets a tool that's probably
easier to maintain than your common C++ codebase.
确切地说,如果一个工程师希望在Python的项目中追求性能,为什么不告诉他如何使用Cython(或蟒蛇和一些C扩展),而不是强迫他一个完全不同的语言:如Java或C + +。
一个Pythoner的程序员,不难熟悉运用Cython / C扩展来追求效率。而且这样做或许会比用其他完全不同的语言更合适。
同时,Google也能得到一个比C++代码库更容易维护工具。
"""
当然,一般而言,普通代码用Cython优化没什么明显效果,用它封装一些瓶颈的函数就可以了 -- 更多时候是用来把C库变成Python的库 。
=====================================
好吧,大家就不要扯淡了。
庄子逍遥游有云:
且夫水之积也不厚,则其负大舟也无力。
覆杯水于坳堂之上,则芥为之舟;
置杯焉则胶,水浅而舟大也。
风之积也不厚,则其负大翼也无力。
故九万里则风斯在下矣,
而后乃今培风;背负青天而莫之夭阏者,而后乃今将图南。
有资格去设计这么大应用的时候再去指手画脚吧,Python写网站抗个日PV几KW还是很小case的。
Google怎么做,只是用来吹牛的聊资罢了,何况Python之父还在Google呢。
现在 -- 该干嘛干嘛去。
再批判一下CSDN,当年误导我钻研C++ Template,浪费了一年半载的光阴。
唉,我又浪费青春在口水战中了。。。
评论
2 楼
zhengyun
2009-11-17
合着是有外行的小编挑事儿啊
1 楼
est
2009-11-17
CSDN这次troll的好啊。。哈哈。。
Google那么高的访问量,在一些场合不用python是明智的啊。而且google是完全无视php了,这不打击了80%的Web开发者么。哈哈。。。
Google那么高的访问量,在一些场合不用python是明智的啊。而且google是完全无视php了,这不打击了80%的Web开发者么。哈哈。。。
发表评论
-
python排版工具
2009-10-15 14:22 3448http://pypi.python.org/pypi/pyt ... -
Fast Asynchronous Python Web Server (Fapws is short)
2009-08-15 12:12 1816http://github.com/william-os4y/ ... -
python奇技淫巧
2009-07-23 22:27 2458http://wiki.python.org/moin/By ... -
跨平台 获取系统信息的python库 http://support.hyperic.com/disp
2009-06-12 11:49 3594The Sigar API provides a portab ... -
频繁集统计 python 封装
2009-05-29 15:49 2622封装的是附件这篇paper的count 因为对比发现这个的综合 ... -
libsvm (python封装) 学习笔记 1
2009-05-19 14:28 41942009-05-19 14:10:38 #!/usr/bin ... -
lcs.py 最长公共子串算法
2009-05-05 15:50 2928感觉用来匹配相似文件比最短编辑距离更靠谱,最短编辑应该是用来纠 ... -
lrucache.py 最近最少使用算法
2009-05-04 13:23 2876lrucache.py 最近最少使用算法 2009-05-04 ... -
史上最快 异步消息队列zeromq 简介
2009-04-30 21:40 27222是的,我喜欢Z开头的东西. http://www.zer ... -
相似单词
2009-03-18 00:54 1738给你一个单词a,如果通过交换单词中字母的顺序可以得到另外的单词 ... -
is_cn_char
2009-03-14 13:39 1305unicode码 def is_cn_char(i): ... -
写一个python的urldecode
2009-03-03 10:57 5080from urllib import unquote def ... -
今天才发现python的sort有个key参数,我好圡...
2009-02-28 20:59 3052>>> a=range(10) >& ... -
发一个山寨版python的Orm
2009-02-24 23:49 2209发一个山寨版的Orm 大概用法见 http://docs. ... -
pyrex学习笔记
2009-02-24 03:36 16790. easy_install pyrex 1.写pyrex ... -
python的一个有趣的细节
2009-02-24 02:00 1335python3.0一个有趣的细节 2009-02-24 01: ... -
python备玩候选者
2009-02-24 00:34 1672* 张沈鹏 推荐网址当然要有一个部署的东西 Exs ... -
python读取mp3 ID3信息
2009-02-18 16:57 2597pyid3不好用,常常有不认识的. mutagen不错,不过 ... -
又写了一个python的route模块
2009-01-14 01:18 2072是的 我很无聊 -
mxTidy - HTML Tidy for Python
2009-01-05 10:50 5194抓取的html不处理一下很容易破坏页面的布局 官网的py ...
相关推荐
Google Python 规范,网上能够找到的最好的中文版本,带书签.翻译资料也很好.可以用来作为公司 python 规范的模板.希望能够帮到大家
Python编码规范(Google),Python编码规范(Google),Python编码规范(Google),Python编码规范(Google),Python编码规范(Google)
python下载谷歌卫星有标签的瓦片地图
google的python练习,google的python练习,google的python练习
google的python编码规范.pdf
python抓取高德POI数据,突破数据量限制,包含了python脚本程序和相关输入文件
网上找到的Goolge Python编码规范。包含两个版本,Google Python Style Guide中文版_li3p.pdf,Google-python-style-guide中文版_guoqiao.pdf。两份文档内容基本一致,guoqiao翻译的格式比较好,带详细书签。
主要为大家详细介绍了python模拟事件触发机制的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
网上收集的Goolge Python编码规范。包含两个版本,Google Python Style Guide中文版_li3p.pdf,Google-python-style-guide中文版_guoqiao.pdf。两份文档内容基本一致,guoqiao翻译的格式比较好,而且带详细书签。
google python风格指南,http://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_style_rules/
基于Python的离线Google地图操作实现.pdf
google的python编码规范
google python 教学 课程,odt 类型文件LibreOffice可以打开(开源免费的office软件,windows上也可以安装),微软的office没有试过能不能打开。
Sequential Event Experiment based on Travel note crawled from XieCheng,基于50W携程出行游记的采集与顺承事件图谱构建
python实现调用google,里面包含js代码段,python代码段,建议用第三方开发工具pycharm;里面有第三方依赖包,使用前请先pip安装所依赖的安装包,调用入口function.py,直接运行function.py即可
Linux 安装Google SDK时要求安装Python 2.7或以上版本
python python python python pythonpython python python python python
《Python带我起飞——入门、进阶、商业实战.pdf》
Python
Python的GIL会对CPU密集型的程序产生影响,如果完全使用Python来编程,怎么避开GIL的限制呢?