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.wasm に関する進捗報告
Search
shigeru. nakajima
August 19, 2023
Programming
1.6k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ruby.wasm に関する進捗報告
https://rhc.connpass.com/event/288535/
shigeru. nakajima
August 19, 2023
Transcript
30 slides
WA RB ruby.wasm 進捗報告 2023/08/19 ledsun (中島滋:株式会社ラグザイア) 於 RubyKaigi 2023
follow up
Load Gem From Browser WA RB RubyKaigi 2023の トークタイトル
ブラウザでGemを読み込 むために頑張っている話。 今日はその続きです。 WA RB require_relative require の2段階で進めている
ブラウザで Rubyをキメると 気持ちいい WA RB もっとも重要
不満 WA RB
依存関係を 自動的に解決し てほしい。 WA RB
WA RB <script type="text/ruby" src="wordle_search.rb"></script> <script type="text/ruby" src="main.rb"></script> require_relative "wordle_search"
ほしいもの 現状
ruby.wasmで requrie_relative を動かしたい WA RB
5月は できてなかった WA RB
Recursive loads do not work WA RB
WA RB 縦に並ベ たら動く a.rbから他 のファイルを 読み込むと固 まる
2022年10月 はじめた WA RB
RubyKaigi 2022 の翌月 WA RB
もうすぐ一年 WA RB
WA RB
ここで デモ WA RB したかったの ですが、昨日 からビルドが 通らなくて・・・
第一部完! WA RB
原因 WA RB
WA RB JavaScriptから Rubyスクリプトを実行
WA RB JavaScript RubyVM eval 起動 fetch
WA RB JavaScript RubyVM JavaScript RubyVM Rubyに 戻っていない 起動 fetch
eval
ruby.wasmのPormiseを待つス ケジューラーはFiberで実装されて いる。FiberはRubyの世界しか知 らない。 JavaScriptとRubyのコールスタッ クがまざるとFiberが適切な位置に 戻れない。 WA RB
WA RB JavaScript RubyVM JavaScript RubyVM Rubyの間に JavaScriptが いると困る 起動
fetch eval
WA RB JavaScript RubyVM eval fetch 起動 Rubyに戻して evalすれば OK!
WA RB fetch eval
第二部 予告 WA RB
ruby.wasmで require を動かしたい WA RB Gemを Loadしたい
WA RB さいごに 大事なことをもう一度
ブラウザで Rubyをキメると 気持ちいい WA RB
WA RB 提供 終
More Decks by shigeru. nakajima
See All by shigeru. nakajima
.NETでruby.wasmを動かしてみた
ledsun
0
130
Introduce dRuby
ledsun
0
590
Watching Ruby in browsers
ledsun
0
380
Using Ruby in the browser is wonderful
ledsun
1
5.5k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.8k
Hacking Guide of the ruby.wasm
ledsun
0
2.2k
私の作ったruby.wasm アプリケーション
ledsun
0
930
Load gem from browser
ledsun
2
2.3k
パラメタライズドテスト
ledsun
0
830
Other Decks in Programming
See All in Programming
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.6k
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
protojson における文字化けの扱い
kazuki1023
0
470
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
200
Kiro Crewによる開発体験ーKiro CrewでStrands Decider 2B に関する技術検証をやってみた
satoshi256kbyte
1
230
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
260
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
210
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
120
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
620
[SF Ruby Conf 2025] Rails X
palkan
3
1.6k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Curious Case for Waylosing
cassininazir
1
630
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
KATA
mclloyd
PRO
35
16k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
The untapped power of vector embeddings
frankvandijk
2
2k