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
Ben
June 10, 2012
Programming
270
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.js & Ruby
Ben
June 10, 2012
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
370
Other Decks in Programming
See All in Programming
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
380
トークンをケチるな、設計しろ:GitHub Copilotを賢く使うコンテキスト戦略
ochtum
0
320
『コードを書く以外の』エンジニアリング〜課金基盤移行プロジェクト推進のためのTips4選
yuriko1211
0
500
エンジニアにデザインハーネスを 〜デザインプロセスを規定するためのハーネス〜 / Design harness from an engineer's perspective
rkaga
2
1.5k
ローカルLLMでどこまでコードが書けるか -縮小版 / How much code can be written on a local LLM Shortened
kishida
2
190
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.8k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
260
Foundation Models frameworkで画像分析
ryodeveloper
1
120
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
390
【やさしく解説 設計編 #1】「ドメイン駆動」と「実装駆動」ってなに? 〜設計の考え方を、たとえ話で学ぼう〜
panda728
PRO
1
120
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
520
AI がコードを書く時代における新卒エンジニアの仕事風景 (2026) / New Graduate Engineers in the Era of AI Coding (2026)
sushichan044
0
220
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
GitHub's CSS Performance
jonrohan
1033
470k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
A designer walks into a library…
pauljervisheath
211
24k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
390
How to train your dragon (web standard)
notwaldorf
97
6.7k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Practical Orchestrator
shlominoach
191
11k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
220
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