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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Ben
June 10, 2012
Programming
2
260
Node.js & Ruby
Ben
June 10, 2012
Tweet
Share
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
350
Other Decks in Programming
See All in Programming
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
980
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
550
Implementation Patterns
denyspoltorak
0
280
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
今から始めるClaude Code超入門
448jp
7
8.5k
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
ぼくの開発環境2026
yuzneri
0
120
ThorVG Viewer In VS Code
nors
0
770
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
「ブロックテーマでは再現できない」は本当か?
inc2734
0
730
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
GraphQLとの向き合い方2022年版
quramy
50
14k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Spectacular Lies of Maps
axbom
PRO
1
520
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
240
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Prompt Engineering for Job Search
mfonobong
0
160
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
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