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
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
発見!Ruby 9
rokuosan
July 18, 2026
Transcript
56 slides
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
More Decks by rokuosan
See All by rokuosan
internal/testlog で遊ぼう
rokuosan
0
630
CloudflareのBetaサービスでローカルなLLMを安全に公開する
rokuosan
0
600
Workers を定期実行する方法は一つじゃない
rokuosan
0
650
OpenNext + Hono on Cloudflare でイマドキWeb開発スタックを実現する
rokuosan
0
760
Kotlin で始める MCP 入門
rokuosan
0
390
【学内向け】主観でやるオレオレ RubyKaigi 2025 Recap
rokuosan
0
58
Kotlin で Discord の絵文字コミュニケーションを盛り上げたい!
rokuosan
0
56
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
380
KC3 2024 Dockerで始める自宅サーバー入門
rokuosan
0
920
Other Decks in Technology
See All in Technology
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
4
2.2k
OpenTelemetryで変わった 新時代のCloudWatchメトリクス監視
tsukuboshi
0
510
AIフレンドリーなGenerative UIをJSXで
uhyo
2
830
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
260
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
18k
NutanixへのSSHアクセスの今後について
shadowhat
0
190
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
120
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
130
パスワードのない鍵で、 データを手元に置く
ginjihayashi
0
400
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
350
技術同人誌を作る方法
yoshimura_datam
0
100
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
4 Signs Your Business is Dying
shpigford
187
23k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to Ace a Technical Interview
jacobian
280
24k
Prompt Engineering for Job Search
mfonobong
0
610
A better future with KSS
kneath
240
18k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
480