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.
|