Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node.js & Ruby
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ben
June 10, 2012
Programming
270
2
Share
Node.js & Ruby
Ben
June 10, 2012
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
360
Other Decks in Programming
See All in Programming
Claspは野良GASの夢をみるか
takter00
0
130
inferと仲良くなる10分間
ryokatsuse
1
270
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
130
誰も頼んでない機能を出荷した話
zekutax
0
150
分析エージェント精度向上における データアナリストの役割
oura_shoya
0
130
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
150
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
260
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
1.4k
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.3k
JavaDoc 再入門
nagise
0
190
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
390
3Dシーンの圧縮
fadis
1
450
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
230
Thoughts on Productivity
jonyablonski
76
5.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
How to Ace a Technical Interview
jacobian
281
24k
Become a Pro
speakerdeck
PRO
31
6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Un-Boring Meetings
codingconduct
0
300
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Accessibility Awareness
sabderemane
1
130
Designing for humans not robots
tammielis
254
26k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Transcript
None
Node.js 优势: 异步处理 ◦ 高性能 劣势:
JavaScript语言的先天不足 ◦ CoffeeScript的后天补救 ◦ Google’s Daat? 虽然社区活跃度高,但无力颠覆RoR
无力颠覆RoR Ruby也有Event Machine 高效开发Web应用(没有之一) 性能瓶颈对于大多数创业型网站而言只是 “白日梦”
结论 Node.js只是RoR的Event Machine的替代 品 除非真的遇到性能瓶颈,否则Node.js只 会徒增开发&维护成本
比Node.js更好的选择 Node.js基于V8引擎,跟JavaScript一样, 是单线程的 即使再怎么异步,也只能使用一个CPU 多CPU编程语言推荐: Erlang
Go
Node.js里的好东西? require "execjs“ ExecJS.compile(‘code’) 实例: https://github.com/lautis/uglifier/blob/ma ster/lib/uglifier.rb