Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Implementing_State_Machines_in_Kotlin.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
prassee
April 08, 2020
Programming
69
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Implementing_State_Machines_in_Kotlin.pdf
prassee
April 08, 2020
Transcript
12 slides
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 !!!
More Decks by prassee
See All by prassee
State_of_LSP_in_Kotlin.pdf
prassee
0
72
FINAGLE - AN INTRO TO RPC & ASYNC PROGRAMMING IN JVM
prassee
1
140
Other Decks in Programming
See All in Programming
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
240
Будущее локальных LLM – Алексей Голобурдин, PythoNN
sobolevn
0
120
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.9k
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.9k
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
670
Getting Started with Vibe Coding
miccheng
0
220
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
はじめてのPLATEAU
nokonoko1203
1
650
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
LLM 101
dalinaum
0
490
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.1k
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
300
Featured
See All Featured
Crafting Experiences
bethany
1
440
Why Our Code Smells
bkeepers
PRO
340
58k
KATA
mclloyd
PRO
35
16k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Docker and Python
trallard
47
4.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Design in an AI World
tapps
1
390
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
530
We Have a Design System, Now What?
morganepeng
55
8.4k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
3.8k