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
2
250
Node.js & Ruby
Ben
June 10, 2012
Tweet
Share
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
330
Other Decks in Programming
See All in Programming
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
230
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
4
420
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
990
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
140
The Cutting Edge Of Versioning (LambdaConf 2024)
chriskrycho
0
170
Going beyond Apache Parquet's default settings
xhochy
0
140
slow types ってなんだろう?
karad
0
120
新宿ダンジョンを可視化してみた
satoshi7190
3
410
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
180
TCAとKMPを用いた新規動画配信アプリ 「ABEMA Live」の設計
tomu28
2
130
AmperとFleetを使ったAndroidアプリ
yoppie
0
270
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
690
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Done Done
chrislema
178
15k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Building Adaptive Systems
keathley
32
1.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Git: the NoSQL Database
bkeepers
PRO
423
63k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Navigating Team Friction
lara
179
13k
Designing on Purpose - Digital PM Summit 2013
jponch
111
6.5k
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