Great answer to the question "Can someone explain to me what #Coroutines are?"
https://www.reddit.com/r/Kotlin/comments/162d2lv/comment/jxwouwx/
#projectreactor #coroutines #fromthearchives
I'm starting to write my first lines. For now it's just to make sure that #boost #asio works the way I think it does and that I can write my event loop the way I want to. So exciting! I can already tell that I will have a passionate love-hate relationship with the #cpp #coroutines.
#AGBIC Day 20
Because I'm using #coroutines everywhere, I decided to create a centralized system for them, instead of having like 4 systems that each work differently.
Now it'll be easier to run things like the #AI and the #dialog box at the same time. (Check out that box!) #pico8
#agbic #coroutines #ai #dialog #pico8 #gamejam #gamedevelopment #gamedev #indiedev #programming
I made the simplest "dialog" system I could make in #pico8. This will be how the dark void talks to you. (Spinning orbs unrelated.)
Because it should run alongside the game, it's controlled by a coroutine. (I know, I'm overusing #coroutines, but it was easy to get this working!)
#pico8 #coroutines #lua #gamejam #gamedevelopment #indiedev #programming
Yes!
I added an #animation that moves the cursor to an arbitrary location. IMHO, this makes the #AI look way more natural.
I also refactored the AI #code to use #coroutines, just like my animation system. Once the calculations start taking longer than a frame, I'll need it.
#pico8 #lua #gamejam #gamedev #gamedevelopment #indiedev #programming
#animation #ai #code #coroutines #pico8 #lua #gamejam #gamedev #gamedevelopment #indiedev #programming
#AGBIC Day 9
I have a simple animation system using #Lua #coroutines in #pico8. Right now, I added animation pausing to this system, so I could avoid having #game logic in the animation #code. This refactor makes it feel a lot less hacky.
Pic 1: before
Pic 2: after
#agbic #lua #coroutines #pico8 #game #code #gamejam #gamedev #gamedevelopment #indiedev #programming
as a fan of oldskool dystopic/apoc fiction & drama TV (esp from the 60s to 80s, & UK/Euro) let me just say Meta's choice of the Threads name is terrible... & PTSD-inducing
as a decades-long programmer with plenty of scars from doing & seeing multi-threaded programming at scale, well, let me just say Meta's choice of the Threads name is also terrible... & PTSD inducing
#programming
#multithreading
#concurrency
#parallelism
#threading
#fibers
#coroutines
#goroutines
#processes
#meta #threads #programming #multithreading #concurrency #parallelism #threading #fibers #coroutines #goroutines #processes
Processes, Threads, Coroutines in Various Programming Languages.
Apart from giving an overview of the topic, I compare the runtime thread count of three different codes in five languages.
A hello world application.
An app that makes three blocking HTTP GET requests.
And finally an async/coroutine/green thread solution for making those same HTTP GET requests.
I was surprised by some results. :)
Code: https://github.com/simonracz/threads-streaming
#linux #threads #processes #coroutines #go #rust #java #c++ #c #python #syscalls
#linux #threads #processes #coroutines #go #rust #Java #c #python #syscalls
When discussing concurrency and #coroutines with colleagues, I always come back to this splendid presentation: https://www.youtube.com/watch?v=MCs5OvhV9S4
Don't miss the webinar on Thursday #Kotlin!
As always there is too much I want to talk about😅 Composing different #arrowkt DSLs and #KotlinX #Coroutines to running #Kotlin JVM/Native
#JetBrains #Ktor on #Kubernetes with zero-downtime.
& be sure to bring all your questions! ☺️
https://info.jetbrains.com/kotlin-webinar-february16-2023.html?utm_campaign=webinar-february16-2023
#kotlin #arrowkt #kotlinx #coroutines #jetbrains #ktor #kubernetes
I wrote the third part of my #blog post series: “Implementing Co, a Small Language With Coroutines #3: Adding #Coroutines”. https://abhinavsarkar.net/posts/implementing-co-3/
Reply to this toot to post comments on the article.
#programming #programminglanguages #plt #compilers #haskell #concurrency
#blog #coroutines #programming #programminglanguages #plt #compilers #haskell #concurrency
Yes I built that myself using many many dowels. The LEDs also run on custom software on an ESP8266 (NodeMCU firmware) using #coroutines. Yes that's a shibazi zuo (333mm variant)
It's happenning again, #QCoro has a new release 🎉 #cpp #qt #coroutines https://qcoro.dvratil.cz/news/2023/2023-01-31-qcoro-0.8.0-announcement/
#Kotlin #Coroutines keep getting better 😍 This 1.8 feature is 🔥
> The "was optimized out" feature optimizes variables when you use suspend functions. However, it is difficult to debug code with optimized variables because you don't see their values.
I wrote a blog post about implementing a small interpreted #programming language With #coroutines: https://abhinavsarkar.net/posts/implementing-co-1/
#ProgrammingLanguages #plt #haskell
#programming #coroutines #programminglanguages #plt #haskell
Any recommendations for a smooth introduction to #Kotlin #Coroutines? Tutorials, books, webinars? Anything?
@notimetoplay Well, implementing #coroutines in a #programming language is non-trivial, you can't just push all your local state on a single stack anymore. But I agree that they are very nice to have. See this article for one of the benefits: https://www.magicsplat.com/blog/coro-iterate/ . Coroutines are also great for event-based code that would otherwise become a maze of callbacks.
I have a Spring Boot 3 Webflux Kotlin Reactor app where all controller points are suspended functions. Assuming I cannot use AtomicInteger I have a singleton service keeping track of number of requests served. Do I need to protect increment and get via a Mutex? I think yes, but I am little confused over the single EventLoop model of Netty, they do use pool of worker threads , is everything thread safe in Webflux Netty world by design? #kotlin #java #spring #springboot #coroutines #askfediverse
#kotlin #java #spring #springboot #coroutines #askfediverse