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
2
260
Node.js & Ruby
Ben
June 10, 2012
Tweet
Share
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
360
Other Decks in Programming
See All in Programming
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
130
20260320登壇資料
pharct
0
140
へんな働き方
yusukebe
6
2.9k
AI 開発合宿を通して得た学び
niftycorp
PRO
0
180
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
ベクトル検索のフィルタを用いた機械学習モデルとの統合 / python-meetup-fukuoka-06-vector-attr
monochromegane
2
580
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
200
RailsのValidatesをSwift Macrosで再現してみた
hokuron
0
140
「速くなった気がする」をデータで疑う
senleaf24
0
110
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
120
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
170
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
870
HDC tutorial
michielstock
1
590
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
How to make the Groovebox
asonas
2
2.1k
Unsuck your backbone
ammeep
672
58k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
130
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
900
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
780
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Documentation Writing (for coders)
carmenintech
77
5.3k
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