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
enlarged: extend your own programming language
Search
seki at druby.org
June 14, 2018
Programming
0
78
enlarged: extend your own programming language
RubyKaigiから帰ってきてLT会のLT。RubyKaigi 2018のトークの増補版だよ!
seki at druby.org
June 14, 2018
Tweet
Share
More Decks by seki at druby.org
See All by seki at druby.org
RWC 2024 DICOM & ISO/IEC 2022
m_seki
0
390
ERB, ancient and future
m_seki
3
870
ERB Hacks
m_seki
1
1.4k
わりこまれるはなし
m_seki
0
800
ぼくのかんがえたさいきょうのけいやくによるプログラミング
m_seki
1
1.2k
Learn Ractor
m_seki
1
2.6k
How many copies did you buy the first print?
m_seki
1
720
Create my own search engine.
m_seki
1
5.3k
Rinda in the real-world embedded systems.
m_seki
0
430
Other Decks in Programming
See All in Programming
MCP調べてみました! / Exploring MCP
uhzz
2
2.3k
読書シェア会 vol.4 『ダイナミックリチーミング 第2版』
kotaro666
0
110
Creating Awesome Change in SmartNews! En
martin_lover
0
110
Flutterでllama.cppをつかってローカルLLMを試してみた
sakuraidayo
0
120
SwiftDataのカスタムデータストアを試してみた
1mash0
0
140
RuboCop: Modularity and AST Insights
koic
2
2.3k
flutter_kaigi_mini_4.pdf
nobu74658
0
140
Optimizing JRuby 10
headius
0
550
Bedrock × Confluenceで簡単(?)社内RAG
iharuoru
1
110
Ruby's Line Breaks
yui_knk
4
2.7k
インプロセスQAにおいて大事にしていること / In-process QA Meetup
medley
0
130
エンジニアが挑む、限界までの越境
nealle
1
310
Featured
See All Featured
Embracing the Ebb and Flow
colly
85
4.7k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
The Cult of Friendly URLs
andyhume
78
6.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Designing for Performance
lara
608
69k
Thoughts on Productivity
jonyablonski
69
4.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
Designing for humans not robots
tammielis
253
25k
Site-Speed That Sticks
csswizardry
6
530
The World Runs on Bad Software
bkeepers
PRO
68
11k
Typedesign – Prime Four
hannesfritz
41
2.6k
Transcript
Extend your own programming language
[email protected]
-5Ͱ૿ิ
͠Β͓͍ͪͩ͘͘͞ ✓ ͝ཡͷεϙϯαʔͷఏڙ ʹΑΓ͓ૹΓ͠·͢
slide sponsors " " ! !!! @moro @ tricknotes dRuby
Web ( ) https://t.co/fLhzWll5gY @hisashim Rails 700 https://t.co/wAMLWDekJh?amp=1 @igaiga555 https://lambdanote.com @golden_lucky @vestige_
slide sponsors 5 !! 6 2 Scratch Day in !!
@mame iSeq iSeq @youchan Speee Ruby @koichiroo RubyKaigi 2018 2 @ktou RubyWorld Conference 2018 yancya @yancya
slide sponsors seki @tsuboi @ogijun people.suzuri.jp hsbt tatsuosakurai kenchan june29
zaimy tnmt umazura 4 -20 pixiv FANBOX halfmoon_0419 usa shimashima35 igaiga
Extend your own programming language
[email protected]
-5Ͱ૿ิ
RubyKaigi 2018 Ruby Ruby MinRuby dRuby
RubyKaigi 2018 ...
MinRuby Ruby Ruby MinRuby
MinRubyͷίϯςΩετ AST - genv - lenv - Marshal.dump
ঢ়ଶΛอଘʗ࠶ݱͰ͖Δ ...
ετϨʔδʹอଘʗ࠶ݱ Ruby
ωοτϫʔΫʹอଘʗ࠶ݱ HTTP dRuby TupleSpace / Linda
TupleSpace Linda
TupleSpaceαʔόΛ༻ҙ͢Δ drbunix:/tmp/my_ts URI
;ͭ͏ϑΝΠϧ͔Βىಈ parse AST genv, lenv evaluate
TupleSpace͔Βͷىಈ TupleSpace AST, genv, lenv take evaluate
ϓϩηεϚΠάϨʔγϣϯ TupleSpace
ϫʔΧΛىಈ͢ΔτϦοΫ [:ts_eval, ...] take [:ts_call, ...] write [:ts_call, ...] AST,
genv, lenv evaluate while true it = ts.take([:ts_eval, nil, nil, nil, nil]) it[0] = :ts_call ts.write(it) spawn_worker end
TupleSpaceΛಉظ͢ΔΈ TupleSpace Linda write take/read TS ͍͔ͭ͜ͷΛ͍ͨ͠
ͭ·Γ TS TS MinRuby
Docker, Rinda, Ring, MinRuby ෳͷίϯςφʹஔ͞Εͨ3JOEBͷλϓϧεϖʔεΛ3JOHΛͬͯΦʔέε τϨʔγϣϯ ઃఆͳ͠Ͱಉظͤ͞Δͱ͜Ζ·Ͱ࡞ͬͨɻݱࡏϝογϡ ঢ়ʹଓ͠߹͍ͬͯΔͷͰɺ"HFOUΛͬͯ௨৴ΛݮΒͯ͠Έ͍ͨɻ