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
Watching Ruby in browsers
Search
shigeru. nakajima
September 08, 2024
Programming
370
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Watching Ruby in browsers
2024年8月31日 RubyKaigi 2024 follow up(
https://rhc.connpass.com/event/320709/
) の発表資料です。
shigeru. nakajima
September 08, 2024
More Decks by shigeru. nakajima
See All by shigeru. nakajima
.NETでruby.wasmを動かしてみた
ledsun
0
110
Introduce dRuby
ledsun
0
580
Using Ruby in the browser is wonderful
ledsun
1
5.4k
Rubyで書いたテトリスをブラウザで動かしてみた
ledsun
0
2.8k
ruby.wasm に関する進捗報告
ledsun
0
1.6k
Hacking Guide of the ruby.wasm
ledsun
0
2.1k
私の作ったruby.wasm アプリケーション
ledsun
0
930
Load gem from browser
ledsun
2
2.3k
パラメタライズドテスト
ledsun
0
820
Other Decks in Programming
See All in Programming
Getting Started with Vibe Coding
miccheng
0
170
Groovy as a human and AI friendly programming language
paulk
0
170
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
340
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
210
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
0
140
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
250
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
700
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
340
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
Crash Auto Pipelines
veronikapj
1
330
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.4k
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
650
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
600
Git: the NoSQL Database
bkeepers
PRO
433
67k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
730
The Invisible Side of Design
smashingmag
301
52k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Building AI with AI
inesmontani
PRO
1
1.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
360
We Have a Design System, Now What?
morganepeng
55
8.4k
Transcript
WA RB Ruby in the browser 観察日記 2024/08/31 ledsun (中島滋:株式会社ラグザイア)
於 RubyKaigi 2024 follow up
Self-introduction •ledsun@ github or X •Based in Tokyo •I am
programing web applications by Ruby on Rails and JavaScript WA RB
WA RB
WA RB
WA RB
RubyKaigi 2024で話したこと 1. ruby.wasm に追加した ruby in the browser 向け便利機能を紹介
(特に require_relative ) 2. 便利機能を使ったフレームワークを紹介 WA RB
Kaigi Effect WA RB
https://blog.tmtms.net/entry/202405-mysql-params WA RB さっそく使ってもらえた
ソースコードをみる と気になる点が WA RB
WA RB /lib/init.rb 内の記述
scriptタグで読みこんだ Rubyスクリプト中の require_relativeの起点は rubyVMを起動したHTML ファイル WA RB
WA RB 起点を指定出来る
WA RB
次の目標 WA RB
ruby.wasm + WebSocketで dRuby in the browser WA RB youchanさんがopal-drbやってた
WA RB
sendメソッドで エラーが起きる WA RB `method_missing': undefined method `Hello, world! from
Ruby' for an instance of JS::Object (NoMethodError)
JavaScriptオブジェクトのメソッド 呼び出しをmehtod_missingで 実装している WA RB
RubyにはObject#sendメソッドが あるので、method_missingは呼 ばれない WA RB
WA RB callメソッドを使えば 動かせる
WebSocket#send をそのまま呼びたい WA RB
WA RB 解決案の種類
バイパス WA RB
JavaScriptオブジェクトに Object#sendしたいん だっけ? WA RB
JavaScriptオブジェクト にconventional methods要る? WA RB
ためしにBasicObejectを 継承したら予想外の動き をした WA RB
WA RB 'Hoge::Fuga#bar': uninitialized constant Hoge::Fuga::Hoge (NameError)
あとでRubyistたちと相談 したいです。 WA RB
dRuby in the browser に期待していること WA RB
アプリケーションのプロトコル を作るための基盤がほしい WA RB HTTP RESTful アプリケーションのプロトコル WebSocket dRuby アプリケーションのプロトコル
Ruby in the browser でmiroみたいな共同 編集アプリケーションが つくれる、かも? WA RB
WA RB Presented by 終