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
すごいErlang楽しく学んだ!
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
kei-q
October 16, 2015
Technology
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
すごいErlang楽しく学んだ!
表参道.rb #5の発表資料です。
http://omotesandorb.connpass.com/event/20289/
kei-q
October 16, 2015
More Decks by kei-q
See All by kei-q
春の鎌倉 Tech&Product Meet発表資料
keqh
0
48
Rubyistのみんなに 私の推しのDuckDBを 紹介させてください
keqh
0
92
Repro_Tech_Meetup__1_Docker.pdf
keqh
4
730
KeyRemac4MacBook.rb
keqh
0
150
PSD.rbでiPhoneアプリ開発のギョームをカイゼンしたい(仮)
keqh
0
200
Other Decks in Technology
See All in Technology
グローバル基準のSREは、運用現場でどう機能したか:成熟度アセスメントの実践 / SRE NEXT 2026
sorawatanabe
0
140
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.6k
ブラウザ研修 2026
recruitengineers
PRO
5
800
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
24k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
450
AIは実装を速くする。では、私たちは何を今作るべきか?-立場を越えてリリースに向き合ったチーム開発の実践 / 20260801 Hiromi Nakaya and Naoki Takahashi
shift_evolve
PRO
3
450
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
670
ガバメントクラウドでのランサムウェア対策
techniczna
2
1k
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
3
650
メルカリのグローバルアプリで挑んだ AlloyDB 運用と課題解決の実践記
hatappi
0
240
20260804_Q4AzureUpdateBite_FabricDataAgentの精度を高める設計.pdf
matayuuu
1
120
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
520
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.3k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
420
The Spectacular Lies of Maps
axbom
PRO
1
890
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Thoughts on Productivity
jonyablonski
76
5.3k
Discover your Explorer Soul
emna__ayadi
2
1.2k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
450
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
330
Being A Developer After 40
akosma
91
590k
Transcript
͍͢͝Erlangֶָ͘͠Μͩʂ @kei_q දࢀಓ.rb #5 2015-10-01 1
ͳͥErlang? 2
@kei_q 1 2 • ͓ࣄ: JSON APIΛ࡞ͬͯӡ༻ • Ruby/Rails •
Swift, Objective-C 2 ࠷͓ۙ͠Ζ͍ͱࢥ͏ͷ: cloudformationͷupdate-stackͱpolicy 1 झຯͰ͍ͬͯΔݴޠ: Ruby, Haskell 3
͖͔͚ͬ : RailsҎ֎ͷબࢶ JSONฦ͚ͩ͢ͳΒRailsʹͩ͜ΘΒͳͯ͘ྑ͍ ݴޠϑϨʔϜϫʔΫɺΤίγεςϜͷಛΛཧղͯ͠ɺదࡐదॴ 4
͖͔͚ͬ : shibuya.ex#1 .ex = Elixir = ErlangVM্Ͱಈ࡞͢Δݴޠ 5
ͳͥErlangΛֶ΅͏ͱࢥ͔ͬͨ • োੑͷߴ͞ʹ͍ͭͯΓ͍ͨe1 • ElixirͷલʹErlangΛ͓͍͑ͨ͞e2 • ࣌Ӎಊ BOT αʔόʔͷهࣄΛΈͯڵຯ͕Θ͍ͨ e2
ࢿྉΛಡΜͩΓErlangͷmoduleΛཧղ͢ΔͨΊʹErlangΛಡΊͨ΄͏͕ḿΓͦ͏ͱࢥͬͨ e1 ͙ͬ͢ΓΓ͍ͨ 6
7
࣮ࡍʹಡΜͰΈͯ 8
Erlangͷಠಛͳจ๏ t1 loop(N) -> receive some_standard_message -> N + 1;
other_message -> N-1; {get_count, Pid} -> Pid ! N, loop(N); update -> ?MODULE:loop(N); end. ͍͢͝ErlangຊͷAΛઌʹΛ௨͢ͷ͓͢͢Ί t1 ඌͷه߸Ҏ֎ʹandalsoͱ͔atomͱมͷ໋໊ͱ͔ൺֱԋࢉࢠͱ͔͍Ζ͍Ζಠಛ 9
ຊͷ༰ ӈਤ͍͢͝Erlangຊ22.2h1ΑΓҾ༻ h1 અͷݟग़͠ʮErlangࠈͷ࠷Լʯ 10
ಡॻϩά 11
ಡΈऴ͑ͯ 12
ͲΕ͔ʹڵຯ͕͋Ε͓͢͢Ί ErlangͷҒେ͞ͷ͕ ฒߦͱࢄ ʹΑΔͷͩͱͨ͠Βɺ ͏ Τϥʔॲཧ ͷೳྗʹΑΔͷͰ͋Γɺ ͞Βʹ3ͭΊͷΛͨΒ͢ͷ͕ OTPϑϨʔϜϫʔΫ ͳͷͰ
͢ɻ — ͍͢͝Erlangֶָ͘͠΅͏ʂ 14ষΑΓ3 3 ଠࣈεϥΠυͰՃච 13
ଞͷຊΛ͓͢͢Ί • ؔϓϩάϥϛϯάΛֶͿͨΊʹಡΉ • ʮ͍͢͝Haskellͨͷֶ͘͠΅͏!ʯ͕͓͢͢Ί • ݎ͍จମͰΑ͚ΕʮϓϩάϥϛϯάHaskellʯ 14
ײ 15
͍͢͝ ָ͍͠ ֶΔ 16
END 17
εϥΠυ࡞ʹ༻ͨ͠πʔϧ • deckset • εϥΠυ࡞ • atom • markdownฤू •
googleεϓϨουγʔτ • άϥϑ࡞ 18