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
0
1.3k
ruby.wasm に関する進捗報告
https://rhc.connpass.com/event/288535/
shigeru. nakajima
August 19, 2023
Tweet
Share
More Decks by shigeru. nakajima
See All by shigeru. nakajima
.NETでruby.wasmを動かしてみた
ledsun
0
36
Introduce dRuby
ledsun
0
510
Watching Ruby in browsers
ledsun
0
200
Using Ruby in the browser is wonderful
ledsun
1
4.5k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.6k
Hacking Guide of the ruby.wasm
ledsun
0
1.9k
私の作ったruby.wasm アプリケーション
ledsun
0
820
Load gem from browser
ledsun
2
2k
パラメタライズドテスト
ledsun
0
730
Other Decks in Programming
See All in Programming
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.6k
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
Raku Raku Notion 20260128
hareyakayuruyaka
0
350
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
2026年 エンジニアリング自己学習法
yumechi
0
140
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
320
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
CSC307 Lecture 09
javiergs
PRO
1
840
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
990
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
66k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
260
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Unsuck your backbone
ammeep
671
58k
The Limits of Empathy - UXLibs8
cassininazir
1
220
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
830
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
How STYLIGHT went responsive
nonsquared
100
6k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Spectacular Lies of Maps
axbom
PRO
1
530
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 提供 終