由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 这次node把python也给干了
相关主题
python下怎么解决GIL?uber用的python作的api.不是java, php
scala并发还在讨论Python 2.7 vs Python 3.x的看这个
python + django可以作multi-threading,php multi-threading貌貌似node.js比vert.x跟流行
难得好文,Linkedin如何用Node beat Python,Ruby,JavaScala Clojure 难以抉择
蜥蜴和好虫掐起来了play 这个框架如何?感觉工作机会不少
Node 完胜 Ruby呀据说现在流行Isomorphic JavaScript
core java里有跟C++ std::async类似的东西吗?请给老程序员给推荐一本C#的书
go channel和clojure core.async哪个好大牛们讨论一下异步编程吧
相关话题的讨论汇总
话题: python话题: jvm话题: node话题: our话题: async
进入Programming版参与讨论
1 (共1页)
p*****2
发帖数: 21240
1
The Switch: Python to Node.js
https://journal.paul.querna.org/articles/2011/12/18/the-switch-python-to-
node-js/
看来python问题也很多呀
d*******r
发帖数: 3299
2
看了,有用信息很多, 多谢转帖。
不过对 Python 的主要抱怨在 Twisted的复杂 和 Django的笨重。正好这2个我都不喜
欢,以后估计也不会用。写简单的单进程concurrency我就准备用 Python 自带的
generator/yield 了,写 web 很多人都开始用 Flask 代替 Django 了吧。不过单进程
要快,确实得上 Node.sj&V8.
摘抄些有用信息:
The zen of Node.js is its minimalist core, both in size and in features. You
can read the core lib Javascript in a day, and one more day for the C++.
Don't venture into v8 itself, that is a rabbit hole, but you can pretty
quickly understand how Node.js itself works.
Our experience was that we just needed to pick one good tool to contain
callback flows, and use it everywhere.
We use @Caolan's excellent Async library. Our code is not 5 level deep
nested callbacks.
Async library 这东西板上有用过的经验么?
这一段是在黑 Java & JVM:
Our conclusion was, that it came down to was a choice between the JVM
platform and Node.js. It is obvious that the JVM platform is one of the best
ways to build large distributed systems right now. Look at everything
Twitter, LinkedIn and others are doing. I personally have serious
reservations about investing on top of the JVM, and Oracles recent behavior
(here, here) isn't encouraging.
After much humming and hawing, we picked Node.js.
p*****2
发帖数: 21240
3

You
写简单的单进程concurrency我就准备用 Python 自带的
generator/yield 了
这个后边就是异步吗?也是event loop的,跟node类似?

【在 d*******r 的大作中提到】
: 看了,有用信息很多, 多谢转帖。
: 不过对 Python 的主要抱怨在 Twisted的复杂 和 Django的笨重。正好这2个我都不喜
: 欢,以后估计也不会用。写简单的单进程concurrency我就准备用 Python 自带的
: generator/yield 了,写 web 很多人都开始用 Flask 代替 Django 了吧。不过单进程
: 要快,确实得上 Node.sj&V8.
: 摘抄些有用信息:
: The zen of Node.js is its minimalist core, both in size and in features. You
: can read the core lib Javascript in a day, and one more day for the C++.
: Don't venture into v8 itself, that is a rabbit hole, but you can pretty
: quickly understand how Node.js itself works.

d*******r
发帖数: 3299
4
http://dabeaz.com/coroutines/
http://www.dabeaz.com/coroutines/Coroutines.pdf
2009年的,不知道现在最新的玩法有变化没,我准备回头用的时候再自习琢磨。
主要好处是 generator/yield 都是 python 自带的 (类似的方法可能还能在 Node.js
上玩),不像 gevent 那样遭guido老大嫌弃,也不像 Twisted 那么复杂.
1 (共1页)
进入Programming版参与讨论
相关主题
大牛们讨论一下异步编程吧蜥蜴和好虫掐起来了
哪位大侠比较一下java和python?Node 完胜 Ruby呀
又看了一下go 感觉Java毫无压力core java里有跟C++ std::async类似的东西吗?
python Global Lockgo channel和clojure core.async哪个好
python下怎么解决GIL?uber用的python作的api.不是java, php
scala并发还在讨论Python 2.7 vs Python 3.x的看这个
python + django可以作multi-threading,php multi-threading貌貌似node.js比vert.x跟流行
难得好文,Linkedin如何用Node beat Python,Ruby,JavaScala Clojure 难以抉择
相关话题的讨论汇总
话题: python话题: jvm话题: node话题: our话题: async