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
kei-q
October 16, 2015
Technology
0
170
すごい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
Rubyistのみんなに 私の推しのDuckDBを 紹介させてください
keqh
0
8
Repro_Tech_Meetup__1_Docker.pdf
keqh
4
600
KeyRemac4MacBook.rb
keqh
0
92
PSD.rbでiPhoneアプリ開発のギョームをカイゼンしたい(仮)
keqh
0
140
Other Decks in Technology
See All in Technology
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
3
630
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
1.3k
日経電子版のStoreKit2フルリニューアル
shimastripe
1
150
Application Development WG Intro at AppDeveloperCon
salaboy
0
200
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
110
プロダクト活用度で見えた真実 ホリゾンタルSaaSでの顧客解像度の高め方
tadaken3
0
200
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
The Role of Developer Relations in AI Product Success.
giftojabu1
0
140
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
530
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
強いチームと開発生産性
onk
PRO
35
11k
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Producing Creativity
orderedlist
PRO
341
39k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Agile that works and the tools we love
rasmusluckow
327
21k
Being A Developer After 40
akosma
87
590k
We Have a Design System, Now What?
morganepeng
50
7.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Happy Clients
brianwarren
98
6.7k
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