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.5k
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
More Decks by shigeru. nakajima
See All by shigeru. nakajima
.NETでruby.wasmを動かしてみた
ledsun
0
110
Introduce dRuby
ledsun
0
580
Watching Ruby in browsers
ledsun
0
370
Using Ruby in the browser is wonderful
ledsun
1
5.4k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.8k
Hacking Guide of the ruby.wasm
ledsun
0
2.1k
私の作ったruby.wasm アプリケーション
ledsun
0
920
Load gem from browser
ledsun
2
2.3k
パラメタライズドテスト
ledsun
0
810
Other Decks in Programming
See All in Programming
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
20
21k
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.8k
wkhtmltopdfの次どうするか問題2026
willnet
2
1.9k
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2.2k
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
120
Are APIs Still Relevant in the AI Era?
soyuka
0
430
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
340
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
130
最近”作らせてる” ローカルAIアプリの話
akit37
0
140
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
350
カツオ、ご期待ください
suneo3476
0
150
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
110
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
730
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
270
Test your architecture with Archunit
thirion
2
2.4k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
My Coaching Mixtape
mlcsv
0
340
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
300
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
400
For a Future-Friendly Web
brad_frost
184
10k
Transcript
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 提供 終