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
420
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
Module Harmony について
yosuke_furukawa
PRO
3
1.2k
どこでも使える Cloudflare Workers!
codehex
5
360
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
0
110
Implementing Domain Driven Design with Spring
maciejwalkowiak
2
1k
플레이어 SDK 개발자의 Kotlin Multiplatform 도입기
mojs
0
140
Mapのパフォーマンス向上のために検討されているSwissTableを理解する
replu
2
1.2k
Goキャッシュライブラリgolang-lruをLet Read and Understand!!
taniyarn
0
130
LTのやり方
yosuke_furukawa
PRO
13
1.6k
spaCy meets LLMs: Using Generative AI for Structured Data
inesmontani
PRO
1
330
自作HTTPルーターから新しいServeMuxへ
bmf_san
3
1.2k
RustのReturn-position impl trait in trait (RPITIT) の実装を雑に見てみる
tako8ki
1
140
PandasAI:生成AIがデータ分析業務にもたらすパラダイムシフト
negi111111
4
210
Featured
See All Featured
In The Pink: A Labor of Love
frogandcode
138
21k
Music & Morning Musume
bryan
42
5.7k
Git: the NoSQL Database
bkeepers
PRO
423
64k
Building Applications with DynamoDB
mza
89
5.7k
BBQ
matthewcrist
80
8.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
5
250
Speed Design
sergeychernyshev
2
73
It's Worth the Effort
3n
180
27k
Into the Great Unknown - MozCon
thekraken
16
1.2k
The World Runs on Bad Software
bkeepers
PRO
62
9k
Making Projects Easy
brettharned
110
5.6k
The Pragmatic Product Professional
lauravandoore
28
6k
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