Nicolas Fränkel · @frankel
864 followers · 1094 posts · Server mastodon.top

Great answer to the question "Can someone explain to me what are?"

reddit.com/r/Kotlin/comments/1

#coroutines #kotlin

Last updated 1 year ago

Nicolas Fränkel · @frankel
864 followers · 1094 posts · Server mastodon.top
· @holmgren
6 followers · 18 posts · Server cryptodon.lol

I'm starting to write my first lines. For now it's just to make sure that 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 .

#boost #asio #cpp #coroutines

Last updated 1 year ago

Josiah Winslow · @winslowjosiah
43 followers · 260 posts · Server hachyderm.io

Day 20

Because I'm using 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 and the box at the same time. (Check out that box!)

#agbic #coroutines #ai #dialog #pico8 #gamejam #gamedevelopment #gamedev #indiedev #programming

Last updated 1 year ago

Josiah Winslow · @winslowjosiah
43 followers · 259 posts · Server hachyderm.io

I made the simplest "dialog" system I could make in . 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 , but it was easy to get this working!)

#pico8 #coroutines #lua #gamejam #gamedevelopment #indiedev #programming

Last updated 1 year ago

Josiah Winslow · @winslowjosiah
39 followers · 241 posts · Server hachyderm.io

Yes!

I added an that moves the cursor to an arbitrary location. IMHO, this makes the look way more natural.

I also refactored the AI to use , just like my animation system. Once the calculations start taking longer than a frame, I'll need it.

#animation #ai #code #coroutines #pico8 #lua #gamejam #gamedev #gamedevelopment #indiedev #programming

Last updated 1 year ago

Josiah Winslow · @winslowjosiah
36 followers · 237 posts · Server hachyderm.io

Day 9

I have a simple animation system using in . Right now, I added animation pausing to this system, so I could avoid having logic in the animation . 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

Last updated 1 year ago

#!/usr/bin/jason_howard · @jhoward
280 followers · 504 posts · Server social.sdf.org

I propose be renamed to .

#mastodon #coroutines

Last updated 1 year ago

synlogic · @synlogic
116 followers · 1690 posts · Server toot.io

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










#meta #threads #programming #multithreading #concurrency #parallelism #threading #fibers #coroutines #goroutines #processes

Last updated 1 year ago

Simon Racz · @simonracz
20 followers · 47 posts · Server discuss.systems

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. :)

youtu.be/ehW2dv0IPIM

Code: github.com/simonracz/threads-s

++

#linux #threads #processes #coroutines #go #rust #Java #c #python #syscalls

Last updated 2 years ago

noreply · @noreply
0 followers · 1 posts · Server fosstodon.org

When discussing concurrency and with colleagues, I always come back to this splendid presentation: youtube.com/watch?v=MCs5OvhV9S

#coroutines

Last updated 2 years ago

Simon Vergauwen · @vergauwen_simon
238 followers · 70 posts · Server fosstodon.org

Don't miss the webinar on Thursday !

As always there is too much I want to talk about😅 Composing different DSLs and to running JVM/Native
on with zero-downtime.

& be sure to bring all your questions! ☺️

info.jetbrains.com/kotlin-webi

#kotlin #arrowkt #kotlinx #coroutines #jetbrains #ktor #kubernetes

Last updated 2 years ago

Abhinav 🔂 · @abnv
153 followers · 460 posts · Server fantastic.earth

I wrote the third part of my post series: “Implementing Co, a Small Language With Coroutines #3: Adding ”. abhinavsarkar.net/posts/implem

Reply to this toot to post comments on the article.

#blog #coroutines #programming #programminglanguages #plt #compilers #haskell #concurrency

Last updated 2 years ago

Yes I built that myself using many many dowels. The LEDs also run on custom software on an ESP8266 (NodeMCU firmware) using . Yes that's a shibazi zuo (333mm variant)

#coroutines

Last updated 2 years ago

danvratil · @danvratil
23 followers · 1 posts · Server fosstodon.org
Simon Vergauwen · @vergauwen_simon
219 followers · 61 posts · Server fosstodon.org

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.

go.jetbrains.com/NDI2LVFWRC0xM=

#kotlin #coroutines

Last updated 2 years ago

Abhinav 🔂 · @abnv
135 followers · 313 posts · Server fantastic.earth
Bartek · @bmalkow
54 followers · 597 posts · Server 101010.pl

Any recommendations for a smooth introduction to ? Tutorials, books, webinars? Anything?

#kotlin #coroutines

Last updated 2 years ago

Colin Macleod · @CGM
20 followers · 224 posts · Server mastodon.scot

@notimetoplay Well, implementing in a 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: magicsplat.com/blog/coro-itera . Coroutines are also great for event-based code that would otherwise become a maze of callbacks.

#programming #coroutines

Last updated 2 years ago

· @garrowbregenza
21 followers · 140 posts · Server mastodon.social

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

Last updated 2 years ago