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
0
210
すごいErlang楽しく学んだ!
表参道.rb #5の発表資料です。
http://omotesandorb.connpass.com/event/20289/
kei-q
October 16, 2015
Tweet
Share
More Decks by kei-q
See All by kei-q
春の鎌倉 Tech&Product Meet発表資料
keqh
0
32
Rubyistのみんなに 私の推しのDuckDBを 紹介させてください
keqh
0
70
Repro_Tech_Meetup__1_Docker.pdf
keqh
4
710
KeyRemac4MacBook.rb
keqh
0
140
PSD.rbでiPhoneアプリ開発のギョームをカイゼンしたい(仮)
keqh
0
190
Other Decks in Technology
See All in Technology
AIに視覚を与えモバイルアプリケーション開発をより円滑に行う
lycorptech_jp
PRO
1
520
OCI技術資料 : 外部接続 VPN接続 詳細
ocise
1
10k
AI駆動開発とRAGプロダクトへの挑戦の軌跡 - 弁護士ドットコムでの学びから -
bengo4com
2
820
Getting started with Google Antigravity
meteatamel
0
360
Interop Tokyo 2025 ShowNet Team Memberで学んだSRv6を基礎から丁寧に
miyukichi_ospf
0
180
Agent Ready になるためにデータ基盤チームが今年やること / How We're Making Our Data Platform Agent-Ready
zaimy
0
160
フルスタックGoでスコア改ざんを防いだ話
ponyo877
0
520
AI活用を"目的"にしたら、データの本質が見えてきた - Snowflake Intelligence実験記 / chasing-ai-finding-data
pei0804
0
540
使って学ぼう MCP (と GitHub Codespaces)
tsubakimoto_s
1
220
あすけん_Developers_Summit_2026_-_Vibe_Coding起点での新機能開発で__あすけん_が乗り越えた壁.pdf
iwahiro
0
740
【2026年版】生成AIによる情報システムへのインパクト
taka_aki
0
170
プロダクト開発の品質を守るAIコードレビュー:事例に見る導入ポイント
moongift
PRO
1
410
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
63
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
The untapped power of vector embeddings
frankvandijk
2
1.6k
The Cult of Friendly URLs
andyhume
79
6.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
130
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.1k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Done Done
chrislema
186
16k
Test your architecture with Archunit
thirion
1
2.2k
Abbi's Birthday
coloredviolet
2
5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
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