Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
Transcript
6 slides
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
More Decks by Ben
See All by Ben
2.5 个人如何开发一款跨终端的产品?
benz303
1
380
Other Decks in Programming
See All in Programming
Spec-driven Development with AI
simas
PRO
0
2.3k
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
270
AppFunctionsの内部実装を紐解く
hiroaki404
0
110
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1k
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
290
祈るテストから、探索するテストへ 〜Lincheckではじめる並行処理テスト〜
yyh_gl
0
400
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
230
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.4k
Distance field of Julia set
kinakomoti321
0
330
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
220
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
110
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
390
Practical Orchestrator
shlominoach
192
12k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640
A designer walks into a library…
pauljervisheath
211
25k
Rails Girls Zürich Keynote
gr2m
96
14k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
840
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
600
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.3k
Become a Pro
speakerdeck
PRO
31
6.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k