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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ben
June 10, 2012
Programming
260
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
「Linuxサーバー構築標準教科書」を読んでみた #ツナギメオフライン.7
akase244
0
1.4k
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
370
10 Tips of AWS ~Gen AI on AWS~
licux
5
350
存在論的プログラミング: 時間と存在を記述する
koriym
5
870
AIエージェントで業務改善してみた
taku271
0
520
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
510
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
2.5k
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
170
Nuxt Server Components
wattanx
0
270
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
770
How Swift's Type System Guides AI Agents
koher
0
250
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
240
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
140
Leo the Paperboy
mayatellez
7
1.6k
Six Lessons from altMBA
skipperchong
29
4.2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
270
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.3k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.6k
New Earth Scene 8
popppiees
3
2.1k
Site-Speed That Sticks
csswizardry
13
1.2k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
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