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
VRChat.rb_4_Ractorで始める並列処理.pdf
Search
ItoJum
June 10, 2026
27
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
VRChat.rb_4_Ractorで始める並列処理.pdf
ItoJum
June 10, 2026
More Decks by ItoJum
See All by ItoJum
VRChat.rb_11_メタプログラミングRubyのご紹介.pdf
itojum
0
31
従業員データ基盤でのパターンマッチをご紹介_Roppongi.rb スポンサーLT
itojum
0
76
DXRuby互換のPicoRuby.wasmライブラリを作っている
itojum
1
64
RubyKaigi_2026_follow_up_SmartHRスポンサーLT
itojum
0
330
サマーインターンシップのメン ターをやって得た学び5選_あつまれ!若⼿エンジニアのLT&ゆるっと交流会
itojum
0
420
SmartHRを支える従業員データ基盤とそのインフラ_Innovative Crosstalk Jamboree Geeks '26
itojum
0
510
VRChat.rbの野望.pdf
itojum
0
27
なぜtree-sitter-rubyの日本語シンボルはシンタックスハイライトされないのか
itojum
0
110
Ractorを試してみるぞ!+メタバースにおける地域.rbをやっているぜ
itojum
0
66
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
540
エンジニアに許された特別な時間の終わり
watany
109
250k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
How to build a perfect <img>
jonoalderson
1
6.2k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
480
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
600
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
650
The Cost Of JavaScript in 2023
addyosmani
55
10k
Transcript
1
タイムテーブル 2 時間 内容 発表者 22:00 開場 & 交流タイム開始 --
22:30 Ractorで始める並列処理 いとじゅん 22:35 関ヶ原Ruby会議01参陣の感想 isoshigi 22:40 お前はまだRubyの型を知らない すぎうり 22:45 好きなRubyGem発表ドラゴン kanatanoyuuyake 23:00 記念撮影 & クロージング みんな
Ractorで始める並列処理 VRChat.rb #4 いとじゅん
Ractorって何? • Rubyにおける並列処理機能 • Ruby3.0から実験的に導入されている • なんかいろいろ期待の機能らしい ◦ GVLという排他制御の制限を回避し、 真の並列処理
を行えるらしい ◦ 変更可能なオブジェクトを共有できない ◦ 強そう 4
Ractorを試してみる • 趣味でSSGフレームワークを作ろうとしている ◦ Pure RubyのオレオレSSGフレームワーク欲しい • せっかくなのでRactorを突っ込んでみたい • 実験的な機能は積極的に使ってフィードバックとかしたいよね
5
並列処理ちゃんとできるか試したい 6
動かしてみる 7 • 環境 ◦ Macbook air ◦ Apple M2チップ
▪ 8コア • 処理内容 ◦ 10,000ファイルのmdをhtmlにする ◦ Front Matter 付き ◦ 気まぐれにERBも入れてる
障壁 • kramdown(mdをhtmlに変換してくれるGem)が動かない ◦ 内部で使われている定数がなんか可変なため ◦ なんかいろいろcacheしているため • 困ったにゃぁ •
時代は大AI時代なので、Ractor対応のMarkdownパーサを作っ た 8
動かしてみる 9 % bundle exec hakuto build # Ractorなし #
Build finished in 8.434s % bundle exec hakuto build 1 # Ractor 1 # Build finished in 9.038s % bundle exec hakuto build 2 # Ractor 2 # Build finished in 5.548s % bundle exec hakuto build 4 # Ractor 4 # Build finished in 3.566s % bundle exec hakuto build 8 # Ractor 8 # Build finished in 3.163s % bundle exec hakuto build 16 # Ractor 16 # Build finished in 3.351s % bundle exec hakuto build 32 # Ractor 32 # Build finished in 3.657s • 環境 ◦ Macbook air ◦ Apple M2チップ ▪ 8コア • 処理内容 ◦ 10,000ファイルのmdをhtmlにする ◦ Front Matter 付き ◦ 気まぐれにERBも入れてる
並列処理できてそうでうれしいね おわり 10
技術・学術系イベントHub https://vrc-ta-hub.com/ 11
次回のVRChat.rbは~? • 日時:2026/06/23㈫ 22:00~23:00 • 会場:ここ 12
Vket 2026 Summer 技術学術WEEK 2026/07/21 LTして欲しい なぁ...(懇願 13