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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
51
Introduce dRuby
ledsun
0
540
Watching Ruby in browsers
ledsun
0
210
Using Ruby in the browser is wonderful
ledsun
1
4.8k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.7k
Hacking Guide of the ruby.wasm
ledsun
0
2k
私の作ったruby.wasm アプリケーション
ledsun
0
860
Load gem from browser
ledsun
2
2.1k
パラメタライズドテスト
ledsun
0
760
Other Decks in Programming
See All in Programming
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
210
Kingdom of the Machine
yui_knk
2
890
The Less-Told Story of Socket Timeouts
coe401_
3
610
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
580
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
250
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
1.1k
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
110
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
810
AI-DLC Deep Dive
yuukiyo
9
4.8k
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
360
의존성 주입과 모듈화
fornewid
0
150
[RubyKaigi 2026] Require Hooks
palkan
1
230
Featured
See All Featured
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
150
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
220
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
770
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
280
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
320
Balancing Empowerment & Direction
lara
6
1.1k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Unsuck your backbone
ammeep
672
58k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Practical Orchestrator
shlominoach
191
11k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
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 提供 終