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 3 Redux
Search
Bozhidar Batsov
April 11, 2019
Programming
0
590
Ruby 3 Redux
Slide deck from my presentation at RubyDay 2019 in Verona, Italy.
Bozhidar Batsov
April 11, 2019
Tweet
Share
More Decks by Bozhidar Batsov
See All by Bozhidar Batsov
Clojure: The Bad Parts
bbatsov
0
75
Weird Ruby (RubyDay 2024, Verona)
bbatsov
0
160
Sustainable OSS (Balkan Ruby 2024, Sofia)
bbatsov
0
170
Ruby's Creed (RubyDay 2023, Verona)
bbatsov
0
31
Victims of Complexity
bbatsov
0
320
Ruby 3.0 Redux (Spark Academy, Jan 2021)
bbatsov
1
280
Ruby 3.0 Redux (Pivorak 4.0)
bbatsov
0
480
The Elements of Programming Style (HackConf 2019)
bbatsov
0
210
The Groundhog Day Development Method (HackConf 2019)
bbatsov
0
290
Other Decks in Programming
See All in Programming
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
Fragmented Architectures
denyspoltorak
0
140
Vibe codingでおすすめの言語と開発手法
uyuki234
0
210
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
0
210
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
150
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
600
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
390
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
120
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
110
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
2
2.3k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Skip the Path - Find Your Career Trail
mkilby
0
52
Large-scale JavaScript Application Architecture
addyosmani
515
110k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
130
Building an army of robots
kneath
306
46k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
280
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
420
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
88
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Transcript
None
Ciao!
Божидар
Bozhidar
Bozhidar
Bug cool
@bbatsov
Sofia, Bulgaria Sofia, Bulgaria
None
None
bbatsov
metaredux.com
Ruby & Rails style guides
None
None
None
None
None
None
Not on Ruby’s Core Team
None
None
None
None
Matz on Ruby
Language Maturity
The Ruby Community
Ruby is not dying
None
None
We have to feed the community intellectually. — Matz
We have to keep moving forward. — Matz
Backwards Compatibility
We’re not going to repeat the Python 3 mistakes! —
Matz
Victim of the Hype Cycle
None
Rails Mania (2008)
Ruby Today
Ruby Today
2025
Matz’s Retirement
None
Ruby 4
Ruby 4x4
Ruby 4 is going to be 4 times faster than
Ruby 3
Ruby 4 is going to be 12 times faster than
Ruby 2
Ruby 4 is finally going to be fast enough!
None
What about Ruby 3?
–Matz “We’ll aim to release Ruby 3 for the Olympic
Games in Tokyo in 2020.”
Ruby 3 Goals •Improved programming safety •Faster performance •Better concurrency/parallelism
support •Better tools
Optional static typing?
Duck inference?
Actors?
Stream based model?
Ownership based model?
Guilds?
3 times faster performance?
Smaller Goals •Sane keyword arguments (?!!?!) •Pattern Matching •Deprecation of
quirky features •Frozen string literals
None
Ruby 3.0 Redux
Dictionary Definitions
Ruby
noun 1. a precious stone consisting of corundum in colour
varieties varying from deep crimson or purple to pale rose. 2. a programming language optimised for programmer happiness
3
number 1. equivalent to the sum of one and two;
one more than two; 3 2. A mystical version rarely achieved by most software projects.
Redux
adjective 1. brought back, revived Emacs era redux 2. (usually
postpositive) (esp of an artistic work) presented in a new way Apocalypse Now Redux
None
Ruby 3.0 is not a single magic release
Ruby 3.0 is an idea
None
Ruby follows SemVer
Ruby 3 is going to be 3 times faster than
Ruby 2.0
Generational GC (Ruby 2.1)
Incremental GC (Ruby 2.2)
MJIT (Ruby 2.6)
Deprecation of flip-flops (Ruby 2.6)
Ruby 2.7
Numbered block parameters
numbers.map { Math.log2(@1) }
foo.bar { @1 + @2 }
h = Hash.new { @1[@2] = "Go Fish: #{@2}" }
h = Hash.new { @1[@2] = "Go Fish: #{@2}" }
None
https://bugs.ruby-lang.org/issues/15723
Method reference operator
[2, 4, 8, 16, 32].map { |n| Math.log2(n) }
[2, 4, 8, 16, 32].map(&method(Math.log2))
[2, 4, 8, 16, 32].map(&Math.:log2)
[2, 4, 8, 16, 32].map { Math.log2($1) }
Beginless range
Beginless range
Beginningless range
arr[..3]
items.where(price: ..20)
None
Ruby 3.0 (Current Status)
Better Tools
RubyGems 3
The bundling of Bundler (Ruby 2.6)
Gemifying the Standard Library (ongoing progress)
Default vs Bundled Gems
Default Gems • Bundler • RubyGems • date • irb
• json • …
Bundled Gems • minitest • did_you_mean • rake • …
stdgems.org
Ruby 3x3
Only applies to certain benchmarks
Ruby 2.6 is 65% faster than Ruby 2.0
None
10% average speedup per release
None
MJIT is the biggest hope for Ruby 3x3
Guilds
None
None
Developed outside the Ruby’s main repo
https://github.com/ko1/ruby/tree/guild
Work in progress ™
Parallel Programming in Ruby 3 with Guilds (http://www.atdot.net/~ko1/activities/2018_rubyconf2018.pdf)
Sane Keyword Arguments
https://bugs.ruby-lang.org/issues/14183
# The following calls pass keyword arguments foo(..., key: val)
foo(..., **hsh) foo(..., key: val, **hsh)
# The following calls pass **normal** arguments foo(..., {key: val})
foo(..., hsh) foo(..., {key: val, **hsh})
Breaking change!!!
Migration warning in Ruby 2.7
Pattern Matching (https://bugs.ruby-lang.org/issues/14912)
What’s not in Ruby 3.0?
Optional Static Typing
Actors
Stream processing
Frozen string literals
Deprecation of autoload
Community Impact
Community Contributed Features • UTF-8 • Enumerator • Generational GC
• Keyword Arguments • JIT • Concurrency
Community Contributions • Rake • Bundler • Documentation & Tutorials
• A ton of amazing libraries • Rails • …
None
Real Namespaces (https://bugs.ruby-lang.org/issues/14982)
RubyKaigi Updates
None
Felina
Grazie! twitter: @bbatsov github: @bbatsov https://metaredux.com https://emacsredux.com RubyDay 2019 Verona,
Italy 11.04.2019