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
Ruby is not slow anymore
Search
Pavel Kalashnikov
April 03, 2023
Programming
0
680
Ruby is not slow anymore
Slide 25 has the video. You can find it here
https://youtu.be/qxZ2ste7RyA
Pavel Kalashnikov
April 03, 2023
Tweet
Share
Other Decks in Programming
See All in Programming
Cache Me If You Can
ryunen344
2
4k
testingを眺める
matumoto
1
140
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
170
AI時代のUIはどこへ行く?
yusukebe
18
9.1k
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
2.5k
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
3
1.5k
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
2.8k
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
150
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
110
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
540
API Platform 4.2: Redefining API Development
soyuka
0
110
パッケージ設計の黒魔術/Kyoto.go#63
lufia
3
440
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
A Modern Web Designer's Workflow
chriscoyier
696
190k
Gamification - CAS2011
davidbonilla
81
5.4k
Writing Fast Ruby
sferik
628
62k
How to train your dragon (web standard)
notwaldorf
96
6.2k
The Cult of Friendly URLs
andyhume
79
6.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
113
20k
Six Lessons from altMBA
skipperchong
28
4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Transcript
Ruby is not slow anymore @kalashnikovisme
Pasha Kalashnikov @kalashnikovisme Backend Engineer @ @evilmartians
None
@kalashnikovisme @evilmartians They say
Ruby is too slow @kalashnikovisme @evilmartians They say What does
it mean?
1 2 3 4 5 6 7 8 9 10
11 12 13 14 the_fastest_lang.rb faster.cpp @kalashnikovisme @evilmartians def sum_eq_n?(arr, n) return true if arr.empty? && n == 0 arr.product(arr).reject do |a,b| a == b end.any? { |a,b| a + b == n } end Is this slow?
1 2 3 4 5 6 7 8 9 10
11 12 13 14 the_fastest_lang.rb faster.cpp @kalashnikovisme @evilmartians def some_method sleep Random.rand(1_000_000) end or this?
what is slow? @kalashnikovisme @evilmartians But
@kalashnikovisme @evilmartians What virtual machine is slow?
@kalashnikovisme @evilmartians What virtual machine is slow? (interpreter, runtime)
MRI / YARV - slow ? @kalashnikovisme @evilmartians What virtual
machine? (interpreter, runtime)
MRI / YARV - slow ? @kalashnikovisme @evilmartians JRuby /
JVM - slow ? What virtual machine? (interpreter, runtime)
MRI / YARV - slow ? @kalashnikovisme @evilmartians JRuby /
JVM - slow ? Rubinius - slow ? What virtual machine? (interpreter, runtime)
@kalashnikovisme
@kalashnikovisme
@kalashnikovisme hack yourself
@kalashnikovisme Ruby
@kalashnikovisme Rust
Year of Rust @kalashnikovisme @evilmartians 2022 in the Ruby community
None
None
Proof of concept @kalashnikovisme @evilmartians Let’s make a The fastest
JSON parser Ruby gem ever!!!
https://youtu.be/qxZ2ste7RyA
@kalashnikovisme @evilmartians Ruby Class Magnus Type String RString Integer Integer
Float Float Array RArray Hash RHash Symbol Symbol Class RClass Module RModule
Thanks for watching @kalashnikovisme @evilmartians and don’t forget to subscribe!
@kalashnikovisme @kalashnikovisme kalashnikovisme.medium.com
[email protected]
@evilmartians @evilmartians https://evilmartians.com