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
発見!Ruby 9
Search
rokuosan
July 18, 2026
Technology
59
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
発見!Ruby 9
rokuosan
July 18, 2026
More Decks by rokuosan
See All by rokuosan
internal/testlog で遊ぼう
rokuosan
0
600
CloudflareのBetaサービスでローカルなLLMを安全に公開する
rokuosan
0
470
Workers を定期実行する方法は一つじゃない
rokuosan
0
580
OpenNext + Hono on Cloudflare でイマドキWeb開発スタックを実現する
rokuosan
0
720
Kotlin で始める MCP 入門
rokuosan
0
360
【学内向け】主観でやるオレオレ RubyKaigi 2025 Recap
rokuosan
0
55
Kotlin で Discord の絵文字コミュニケーションを盛り上げたい!
rokuosan
0
44
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
370
KC3 2024 Dockerで始める自宅サーバー入門
rokuosan
0
910
Other Decks in Technology
See All in Technology
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
170
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
280
IoTデバイスを繋げるプロトコルMatterをAndroidで使用する方法
harutiro
0
120
『GOエコノミー 』(相乗りサービス) におけるスペック駆動開発
mot_techtalk
1
310
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
17
120k
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
280
Kernel testing frameworks
ennael
PRO
0
110
AIに攻撃される前に、AIに攻撃させる
tsuchikazu
0
150
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
130
SDDの運用にめげずに向き合った話
sansantech
PRO
1
130
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
310
[2026 Oracle Technical Deep Dive] Apache Iceberg × Oracle AI Database -Oracle Autonomous AI Lakehouseが実現するAI時代のデータ基盤- (2026年9月17日開催)
oracle4engineer
PRO
0
120
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
A Tale of Four Properties
chriscoyier
163
24k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
480
Embracing the Ebb and Flow
colly
88
5.2k
We Are The Robots
honzajavorek
0
390
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Deep Space Network (abreviated)
tonyrice
0
350
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Believing is Seeing
oripsolob
1
240
Thoughts on Productivity
jonyablonski
76
5.4k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Transcript
rokuosan id:rokuokun @rokuosan_dev 発 見 ! Ruby 9
自己 紹介 rokuosan (読み: ろくお) • id:rokuokun / @rokuosan_dev 京都の
Kotlin コミュニティ Kyoto.kt やってます
Ruby 9 を発 見 した
Ruby 9 があるとき〜
ワハハ
めでたい気持ちになってください
Ruby 9 がない時〜
😭
悲しい気持ちになってください
発 見 したら
Ruby 9 発 見 !
ワハハ
Ruby 9 … ?
Ruby 9 発 見 ならず… 😢
Ruby 4
Ruby 4 Ruby 4 リリースおめでとう 今は 4.0.6 が最新(2026-07-14 リリース)
Ruby 4 Ruby 4 をグッと睨むと Ruby 9 に 見 えてきませんか?
Ruby 4
Ruby 9
None
Ruby 9 発 見 !
object_id
object_id (CRuby) オブジェクトの識別 子 となる整数値 基本的にどのような整数が割り当てられるかは不定 Immutable なオブジェクトな 一 部は同じ内容なら同じIDを返す
https://docs.ruby-lang.org/ja/latest/method/Object/i/object_id.html
object_id
なぜ 4 は 9 ??
Integer Class (CRuby) 整数を即値またはヒープオブジェクトとして表現 • 即値 → Fixnum • ヒープ
→ Bignum 即値は VALUE に整数値を 入 れる • 6 4 bit → -(2^62) 〜 2^62 - 1 が即値 • 即値なら LSB に 1 をセット • つまり即値は必ず奇数になる
Integer(Fixnum) の object_id は計算可能 実質的にこのように計算できる • VALUE = (整数値 <<
1) + 1 4 を計算してみる • ( 1 0 0 << 1 ) + 1 = 1 0 0 1 ( 2 ) • 1001 は10進数で 9 include/ruby/internal/arithmetic/long.h を眺めてくれ
完全に理解
気持ちになってみる
1 1 + 9 = ? ⏲ クイズタイム 💯
1 1 + 9 = 1 9 ⏲ クイズタイム 💯
5 + 4 = 9 ⏲ クイズタイム( 人 間向け) 💯
ObjectSpace#_id 2 ref ⏲ 裏ワザ 💯
💯 ⏲ 余談 💯
💯 ← 4 ⏲ 余談 💯
赤 くて4だから Ruby 4 ⏲ 余談 💯
Ruby 4 Ruby 4 をグッと睨むと Ruby 9 に 見 えてきませんか?
Ruby 4 見 えましたね
Ruby 1 . 9
Ruby のリリース https://www.ruby-lang.org/ja/downloads/releases/
Ruby 1 . 9 . 1 1 . 9 .x
初の安定版 2009/01/30 リリース
Ruby 1 . 9 . 1 1 . 9 .x
初の安定版 2 0 0 9 / 0 1 / 3 0 リリース
Ruby 1 . 9 . 1 1 . 9 .x
初の安定版 2 0 0 9 / 0 1 / 3 0 リリース → 実質Ruby 9
Ruby 9 発 見 !
余談: Ruby 1 . 9 development release 2007/12/25 リリース
余談: ルビー
宝 石 ルビー Ruby と双璧をなす存在 1カラットあたりの値段が 高 い https://www.gia.edu/ruby
モース硬度
モース硬度 宝 石 の硬さを 示 す値 詳しくは Wiki みて https://ja.wikipedia.org/wiki/Ϟʔεߗ
Ruby のモース硬度
9
Ruby 9 発 見 !
余談: 感想
Ruby 9 を 見 つけられてよかった
みんなが 見 つけた Ruby 9 を教えて
rokuosan id:rokuokun @rokuosan_dev 発 見 ! Ruby 9