由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 为啥大家都比较python的web framework呢
相关主题
Python Concurrency 主流是用啥Python vs J2EE
难得好文,Linkedin如何用Node beat Python,Ruby,Javapython比java慢这么多呀
请教python高手异步编程的问题哪有关于python调用c的tutorial啊
我想用Python做个群发短信功能,不知道有没有现成的模板python太慢了
Anyone attended Pycon 2013 last week?什么FP能替代python
vert.x vs tornado? : to mr.zhao学python要学到什么程度才算professional?
这次node把python也给干了有什么比较适合engineer用的语言吗?
为什么我认为 Python 3 没有前途?(zz)有熟悉cython的大牛吗?
相关话题的讨论汇总
话题: python话题: embedded话题: web话题: twisted话题: 比较
进入Programming版参与讨论
1 (共1页)
s********k
发帖数: 6180
1
我们大量用python,基本不用web,最多到Twisted 做TCP,大量用coroutines做异步处
理,Gevent之类. 我自己基本就是C + python. C做网络,python做大量外围和异步工作
所以每次看到比较ruby我都一头雾水,没人比较python在其他方面的优劣?很多网络公
司(不是web公司),比如做switch, router之类也大量用python。高人来比较下这方
d***q
发帖数: 1119
2
I am using python/twisted for real time machine control. use TCP,UDP only.
some performance critical parts are written in cython/c++.
I also use Luajit (can be integrated with python easily).
s********k
发帖数: 6180
3
real time part is based on python or C/C++, it seems your company has
similar tech stack as ours.

【在 d***q 的大作中提到】
: I am using python/twisted for real time machine control. use TCP,UDP only.
: some performance critical parts are written in cython/c++.
: I also use Luajit (can be integrated with python easily).

d***q
发帖数: 1119
4

use cython&c++. cython is great.

【在 s********k 的大作中提到】
: real time part is based on python or C/C++, it seems your company has
: similar tech stack as ours.

n***e
发帖数: 723
5
哦,似乎python包一般都不小啊,请问你们怎么把python环境压到switch能用的大小?

工作

【在 s********k 的大作中提到】
: 我们大量用python,基本不用web,最多到Twisted 做TCP,大量用coroutines做异步处
: 理,Gevent之类. 我自己基本就是C + python. C做网络,python做大量外围和异步工作
: 所以每次看到比较ruby我都一头雾水,没人比较python在其他方面的优劣?很多网络公
: 司(不是web公司),比如做switch, router之类也大量用python。高人来比较下这方
: 面

s********k
发帖数: 6180
6
I am not doing switch. we deploy our network using C on embedded/RTOS, and
python on server/cloud side. but some of my colleagues from networking
company told me they use a lot of python in switch/router also

【在 n***e 的大作中提到】
: 哦,似乎python包一般都不小啊,请问你们怎么把python环境压到switch能用的大小?
:
: 工作

d***q
发帖数: 1119
7

It is possible. check this: http://wiki.python.org/moin/EmbeddedPython
my colleague cross compile from the sources codes and remove many standard
libraries, finally the whole vm can run with 600K RAM.
if you do really care about embedded sys. I suggest using lua or luajit. it
is smaller and faster.

【在 s********k 的大作中提到】
: I am not doing switch. we deploy our network using C on embedded/RTOS, and
: python on server/cloud side. but some of my colleagues from networking
: company told me they use a lot of python in switch/router also

s********k
发帖数: 6180
8
thanks, we will use C in embedded side, since it is much matured technology
than python on embedded side. our embedded networks are connected to server
and then data center, for which python the real player since we can leverage
twisted/Gevent to handle a lot of none blocking issues.
I will take a look at your recommended link

it

【在 d***q 的大作中提到】
:
: It is possible. check this: http://wiki.python.org/moin/EmbeddedPython
: my colleague cross compile from the sources codes and remove many standard
: libraries, finally the whole vm can run with 600K RAM.
: if you do really care about embedded sys. I suggest using lua or luajit. it
: is smaller and faster.

1 (共1页)
进入Programming版参与讨论
相关主题
有熟悉cython的大牛吗?Anyone attended Pycon 2013 last week?
stackoverflow上随便一个nodejs跟其他同类的比较vert.x vs tornado? : to mr.zhao
让子goodbug 20倍的赌局这次node把python也给干了
akka能和C++程序通信吗?为什么我认为 Python 3 没有前途?(zz)
Python Concurrency 主流是用啥Python vs J2EE
难得好文,Linkedin如何用Node beat Python,Ruby,Javapython比java慢这么多呀
请教python高手异步编程的问题哪有关于python调用c的tutorial啊
我想用Python做个群发短信功能,不知道有没有现成的模板python太慢了
相关话题的讨论汇总
话题: python话题: embedded话题: web话题: twisted话题: 比较