由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Python vs J2EE
相关主题
学python要学到什么程度才算professional?用python开发website
最近在看《python源码剖析》python并不算google带火的
python太慢了我知道为啥ruby这些framework没有用v8引擎原理的原因了
什么FP能替代python有人上Spark用python API的么
有什么比较适合engineer用的语言吗?为什么我认为 Python 3 没有前途?(zz)
cyphon,cpython,numba,julia,pypy,为什么都不是主流Python -> Go -> Python (PyPy)
哪位大俠能简单解释一下怎麼用pypy么用java写的用户界面速度慢,用户体验很差.为什么还这么多人用java写GUI的软件?
spring annotationpython比java慢这么多呀
相关话题的讨论汇总
话题: python话题: java话题: j2ee话题: languages话题: dynamic
进入Programming版参与讨论
1 (共1页)
s*****e
发帖数: 893
1
做大型商业应用, 比如 web service development
A. 基于Jave, J2EE,和相关的Framework, such as Glassfish.
B. 基于Python, web-dev framework比如Zope
目前似乎A是绝对主流(.Net可能是老二)。
但是在未来,这2个当中,B有没有很大潜力慢慢成为主流呢? 毕竟Python有很多优点
,尤其是开发效率高.
讨论一下
w***g
发帖数: 5958
2
谁是主流不光看那个优点多,也好看背后的靠山是谁。

【在 s*****e 的大作中提到】
: 做大型商业应用, 比如 web service development
: A. 基于Jave, J2EE,和相关的Framework, such as Glassfish.
: B. 基于Python, web-dev framework比如Zope
: 目前似乎A是绝对主流(.Net可能是老二)。
: 但是在未来,这2个当中,B有没有很大潜力慢慢成为主流呢? 毕竟Python有很多优点
: ,尤其是开发效率高.
: 讨论一下

g*****g
发帖数: 34805
3
Dynamic languages like Python do not use static typing,
do not use checked exceptions. So potentially an untested
small block can fuck up pretty bad in production. External
resources like DB and Socket connection may not be properly
closed in the process, and such resource leak can bring down
the entire server. For this reason alone, I don't think Python
will ever be mainstream for critical applications such as those
in financial industry. Also Python lacks performance. While hardware
is cheap, memory is a dozen a dime, 10+ times slower on the same hardware
is not acceptable for most public domain applications. And this is
unlikely to change much due to Python's intrepreted nature.
http://shootout.alioth.debian.org/u32q/compare.php?lang=python3
New languages like Scala have way more potential than Python. Both
OO and functional, Actor model for concurrency. Concise enough compared
to most dynamic languages.
BTW, I think the dynamic languages' productivity is overrated. You can't
simply compare LOC. Modern IDE can generate much boiler plate code for
static-type language (e.g. import statements, try/catch block can be
automatically generated in Java IDEs) and find dumb mistakes in compile
time. Dynamic language can't enjoy as much.

【在 s*****e 的大作中提到】
: 做大型商业应用, 比如 web service development
: A. 基于Jave, J2EE,和相关的Framework, such as Glassfish.
: B. 基于Python, web-dev framework比如Zope
: 目前似乎A是绝对主流(.Net可能是老二)。
: 但是在未来,这2个当中,B有没有很大潜力慢慢成为主流呢? 毕竟Python有很多优点
: ,尤其是开发效率高.
: 讨论一下

I**********e
发帖数: 62
4
真能写。不过好像没提GIL。呵呵。
static typing, JIT什么的,Python也可以有的。GIL的问题也会解决的。
Python的变种很多,表只盯着CPython。我觉得Pypy, RRython, Cython什么的都挺有前
途的

hardware

【在 g*****g 的大作中提到】
: Dynamic languages like Python do not use static typing,
: do not use checked exceptions. So potentially an untested
: small block can fuck up pretty bad in production. External
: resources like DB and Socket connection may not be properly
: closed in the process, and such resource leak can bring down
: the entire server. For this reason alone, I don't think Python
: will ever be mainstream for critical applications such as those
: in financial industry. Also Python lacks performance. While hardware
: is cheap, memory is a dozen a dime, 10+ times slower on the same hardware
: is not acceptable for most public domain applications. And this is

c*****e
发帖数: 3226
5
python is useless,I t does not have any significant strength such as multi-
threads, efficience, fault torence..
it is only a good replacement for perl,bash etc script languages.

【在 I**********e 的大作中提到】
: 真能写。不过好像没提GIL。呵呵。
: static typing, JIT什么的,Python也可以有的。GIL的问题也会解决的。
: Python的变种很多,表只盯着CPython。我觉得Pypy, RRython, Cython什么的都挺有前
: 途的
:
: hardware

g*****g
发帖数: 34805
6
In case you don't know, Python was created in late 1980s. If Java's
an old bitch, Python is simply older. Yet, not enough company backing
,I know Google makes it somewhat popular but that doesn't compare to the
money Sun/Oracle/IBM invested in Java.
And sure, Python can make all the changes you mention. But then it loses
its only strength.

【在 I**********e 的大作中提到】
: 真能写。不过好像没提GIL。呵呵。
: static typing, JIT什么的,Python也可以有的。GIL的问题也会解决的。
: Python的变种很多,表只盯着CPython。我觉得Pypy, RRython, Cython什么的都挺有前
: 途的
:
: hardware

d***q
发帖数: 1119
7
i currently used py to build a back end of real time embedded tracking
system. It is a cool thing..
as you talked about pypy, i think it still need a decade to become mature.
btw: i use cython heavily for performance-critical part. it is quite easy to
move some slow parts to c code by cython.

【在 I**********e 的大作中提到】
: 真能写。不过好像没提GIL。呵呵。
: static typing, JIT什么的,Python也可以有的。GIL的问题也会解决的。
: Python的变种很多,表只盯着CPython。我觉得Pypy, RRython, Cython什么的都挺有前
: 途的
:
: hardware

d***q
发帖数: 1119
8
the major problem of python is the GIL..i don't quite think guido will
finally remove it from pvm, after all, there are tons of third party libs
has been built and used based on GIL.
however people intend to use multi-process to bypass this rule recently.

【在 I**********e 的大作中提到】
: 真能写。不过好像没提GIL。呵呵。
: static typing, JIT什么的,Python也可以有的。GIL的问题也会解决的。
: Python的变种很多,表只盯着CPython。我觉得Pypy, RRython, Cython什么的都挺有前
: 途的
:
: hardware

z****g
发帖数: 339
9
大型商业应用,java还是占主导地位的。
Python适合快速开发,迭代式开发,国内的豆瓣就是一例。Java适合大兵团作战。
你看twitter 一开始用ROR开发,是因为公司规模小,用ROR迅速抢占地盘捞钱。然后随
着规模增大逐步将代码替换为Java。
目前情况是Java比较成熟,程序员多,工资水平低,花点钱一招就能招一群,适合大公
司。
Python现在会的人还不多,不容易招到好的人,未来估计会改善,不过现在市面上还是
Java的多。

【在 s*****e 的大作中提到】
: 做大型商业应用, 比如 web service development
: A. 基于Jave, J2EE,和相关的Framework, such as Glassfish.
: B. 基于Python, web-dev framework比如Zope
: 目前似乎A是绝对主流(.Net可能是老二)。
: 但是在未来,这2个当中,B有没有很大潜力慢慢成为主流呢? 毕竟Python有很多优点
: ,尤其是开发效率高.
: 讨论一下

g*****g
发帖数: 34805
10
Twitter从ROR换到Java纯粹是因为性能的需要,当用户数到了一定规模,
10%的性能提高都是一大笔钱,何况3倍的性能提高。
至于Python,比Java年纪还大,到现在会的人不多,你也别指望未来
有啥变化。
说到工资的你可以看看这个link。程序员其实差别都不大,但Java
绝对不是你说得工资水平低。恰恰相反。
http://www.indeed.com/salary?q1=j2ee&l1=&q2=c%2B%2B&l2=&q3=java

【在 z****g 的大作中提到】
: 大型商业应用,java还是占主导地位的。
: Python适合快速开发,迭代式开发,国内的豆瓣就是一例。Java适合大兵团作战。
: 你看twitter 一开始用ROR开发,是因为公司规模小,用ROR迅速抢占地盘捞钱。然后随
: 着规模增大逐步将代码替换为Java。
: 目前情况是Java比较成熟,程序员多,工资水平低,花点钱一招就能招一群,适合大公
: 司。
: Python现在会的人还不多,不容易招到好的人,未来估计会改善,不过现在市面上还是
: Java的多。

d***q
发帖数: 1119
11
python is still suitable for glue language...i have many parts written by c+
+ and used in python.
It is a trend to use ctypes solely with python to build a tiny but
comprehensive standard library, It was reported that a guy used this skill
to fit a full functional py into a 4M flash drive.

【在 z****g 的大作中提到】
: 大型商业应用,java还是占主导地位的。
: Python适合快速开发,迭代式开发,国内的豆瓣就是一例。Java适合大兵团作战。
: 你看twitter 一开始用ROR开发,是因为公司规模小,用ROR迅速抢占地盘捞钱。然后随
: 着规模增大逐步将代码替换为Java。
: 目前情况是Java比较成熟,程序员多,工资水平低,花点钱一招就能招一群,适合大公
: 司。
: Python现在会的人还不多,不容易招到好的人,未来估计会改善,不过现在市面上还是
: Java的多。

r****y
发帖数: 26819
12
is there a flash drive of 4M?

c+

【在 d***q 的大作中提到】
: python is still suitable for glue language...i have many parts written by c+
: + and used in python.
: It is a trend to use ctypes solely with python to build a tiny but
: comprehensive standard library, It was reported that a guy used this skill
: to fit a full functional py into a 4M flash drive.

1 (共1页)
进入Programming版参与讨论
相关主题
python比java慢这么多呀有什么比较适合engineer用的语言吗?
哪有关于python调用c的tutorial啊cyphon,cpython,numba,julia,pypy,为什么都不是主流
为啥大家都比较python的web framework呢哪位大俠能简单解释一下怎麼用pypy么
有熟悉cython的大牛吗?spring annotation
学python要学到什么程度才算professional?用python开发website
最近在看《python源码剖析》python并不算google带火的
python太慢了我知道为啥ruby这些framework没有用v8引擎原理的原因了
什么FP能替代python有人上Spark用python API的么
相关话题的讨论汇总
话题: python话题: java话题: j2ee话题: languages话题: dynamic