Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ruby.wasm に関する進捗報告
Search
shigeru. nakajima
August 19, 2023
Programming
1.4k
0
Share
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
57
Introduce dRuby
ledsun
0
540
Watching Ruby in browsers
ledsun
0
220
Using Ruby in the browser is wonderful
ledsun
1
4.9k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.7k
Hacking Guide of the ruby.wasm
ledsun
0
2k
私の作ったruby.wasm アプリケーション
ledsun
0
870
Load gem from browser
ledsun
2
2.1k
パラメタライズドテスト
ledsun
0
770
Other Decks in Programming
See All in Programming
Explore CoroutineScope
tomoeng11
0
180
なぜあなたのコードには「コシ」がないのか?〜AI時代に問う、最後まで美味しい設計と戦略〜 #phpconkagawa / phpconkagawa2026
shogogg
0
150
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.7k
Agentic UI in the Frontend: Architectures with Open Standards @JAX 2026 in Mainz
manfredsteyer
PRO
0
110
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
110
書き換えて学ぶTemporal #fukts
pirosikick
2
360
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
3
360
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
160
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
140
Agentic Elixir
whatyouhide
0
450
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
260
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
100
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
740
Technical Leadership for Architectural Decision Making
baasie
3
360
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
370
My Coaching Mixtape
mlcsv
0
120
How to make the Groovebox
asonas
2
2.2k
KATA
mclloyd
PRO
35
15k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
280
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Paper Plane (Part 1)
katiecoart
PRO
0
7.3k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Agile that works and the tools we love
rasmusluckow
331
21k
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 提供 終