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
Tatsuya Touma
October 16, 2015
Technology
0
170
すごいErlang楽しく学んだ!
表参道.rb #5の発表資料です。
http://omotesandorb.connpass.com/event/20289/
Tatsuya Touma
October 16, 2015
Tweet
Share
More Decks by Tatsuya Touma
See All by Tatsuya Touma
Repro_Tech_Meetup__1_Docker.pdf
keqh
4
590
KeyRemac4MacBook.rb
keqh
0
91
PSD.rbでiPhoneアプリ開発のギョームをカイゼンしたい(仮)
keqh
0
140
Other Decks in Technology
See All in Technology
疎通2024
sadnessojisan
5
900
「家族アルバム みてね」における運用管理・ オブザーバビリティの全貌 / Overview of Operation Management and Observability in FamilyAlbum
isaoshimizu
4
110
技術ブログや登壇資料を秒で作るコツ伝授します
minorun365
PRO
23
5.2k
The XZ Backdoor Story
fr0gger
0
2.7k
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
15
40k
PlaywrightによるE2Eテスト入門 / Introduction to E2E Testing with Playwright
rhumie
3
1k
EitherT_with_Future
aoiroaoino
1
940
四国クラウドお遍路 2024 in 高知 オープニング
yukataoka
0
170
自社開発した大規模言語モデルをどうプロダクションに乗せて運用していくか〜インフラ編〜
pfn
PRO
18
5.4k
セキュリティ監視の内製化 効率とリスク
mixi_engineers
PRO
7
870
Eventual Detection Engineering
ken5scal
0
1.2k
Oracle Autonomous Database:サービス概要のご紹介
oracle4engineer
PRO
1
6.9k
Featured
See All Featured
The Brand Is Dead. Long Live the Brand.
mthomps
53
37k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Documentation Writing (for coders)
carmenintech
65
4.3k
4 Signs Your Business is Dying
shpigford
179
21k
BBQ
matthewcrist
83
9.1k
Writing Fast Ruby
sferik
623
60k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
Code Reviewing Like a Champion
maltzj
518
39k
Building Your Own Lightsaber
phodgson
101
6k
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
Practical Orchestrator
shlominoach
185
10k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
103
47k
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