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
Implementing_State_Machines_in_Kotlin.pdf
Search
prassee
April 08, 2020
Programming
0
45
Implementing_State_Machines_in_Kotlin.pdf
prassee
April 08, 2020
Tweet
Share
More Decks by prassee
See All by prassee
State_of_LSP_in_Kotlin.pdf
prassee
0
41
FINAGLE - AN INTRO TO RPC & ASYNC PROGRAMMING IN JVM
prassee
1
120
Other Decks in Programming
See All in Programming
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
280
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
320
CSC307 Lecture 14
javiergs
PRO
0
480
The free-lunch guide to idea circularity
hollycummins
0
310
CSC307 Lecture 15
javiergs
PRO
0
260
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
390
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
580
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.3k
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
270
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
230
Ruby and LLM Ecosystem 2nd
koic
1
1.2k
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.1k
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
570
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
150
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Being A Developer After 40
akosma
91
590k
Site-Speed That Sticks
csswizardry
13
1.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.2k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
Leo the Paperboy
mayatellez
4
1.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
790
Become a Pro
speakerdeck
PRO
31
5.9k
Transcript
Implementing State Machines in Kotlin Presented by Prasanna Kumar
About me - Data Engineer @ Kognitiv - Blog @
https://blog.prassee.me/ - Github - https://github.com/prassee/ - Started Kotlin recently !!!! Lets begin !!!!
Agenda - Introduction to State Machine - Modelling a state
machine for “Tumbling Window” - Concurrency in Kotlin - quick tour - Coroutines - Channels - Implementation - code walk through - Q&A
Introduction to State Machine
Modelling a state machine - “Tumbling Window” https://mapr.com/ebooks/intro-to-apache-flink/chapter-4-handling-time.html
Modelling a state machine - “Tumbling Window” (contd)
Coroutine Concurrency in Kotlin - Coroutines https://proandroiddev.com/kotlin-coroutines-channels-csp-android-db441400965f
suspend fun main() = coroutineScope { for (i in 0
until 10) { launch { delay(1000L - i * 10) print("❤$i ") } } } Concurrency in Kotlin - Coroutines
Coroutine Concurrency in Kotlin - Channels https://proandroiddev.com/kotlin-coroutines-channels-csp-android-db441400965f
Show Time !!! https://github.com/prassee/sm-with-k otlin
?
Thank You !!!