shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

268
active users

#coroutines

0 posts0 participants0 posts today
Hacker News<p>C++ Coroutines Advanced: Converting std:future to asio:awaitable</p><p><a href="https://www.ddhigh.com/en/2025/07/15/cpp-coroutine-future-to-awaitable/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">ddhigh.com/en/2025/07/15/cpp-c</span><span class="invisible">oroutine-future-to-awaitable/</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++ <a href="https://mastodon.social/tags/Coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coroutines</span></a> <a href="https://mastodon.social/tags/Advanced" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Advanced</span></a> <a href="https://mastodon.social/tags/std" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>std</span></a>::future <a href="https://mastodon.social/tags/asio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>asio</span></a>:awaitable <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/async" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>async</span></a> <a href="https://mastodon.social/tags/await" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>await</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++</p>
Hacker News<p>Hacking Coroutines into C</p><p><a href="https://wiomoc.de/misc/posts/hacking_coroutines_into_c.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">wiomoc.de/misc/posts/hacking_c</span><span class="invisible">oroutines_into_c.html</span></a></p><p><a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/Hacking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hacking</span></a> <a href="https://mastodon.social/tags/Coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coroutines</span></a> <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://mastodon.social/tags/TechInnovation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechInnovation</span></a> <a href="https://mastodon.social/tags/ProgrammingTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingTips</span></a></p>
Karsten Schmidt<p>Earlier today I released a new version of <a href="https://thi.ng/fibers" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">thi.ng/fibers</span><span class="invisible"></span></a> aka building blocks and operators for coroutine-based multitasking and alternative to async-await. It's one of the more recent packages, but also one which is quickly cementing itself as one of the most powerful &amp; flexible tools of the whole <a href="https://mastodon.thi.ng/tags/ThingUmbrella" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ThingUmbrella</span></a> collection, similar to how <a href="https://thi.ng/transducers" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">thi.ng/transducers</span><span class="invisible"></span></a> &amp; <a href="https://thi.ng/rstream" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">thi.ng/rstream</span><span class="invisible"></span></a> have done in other contexts...</p><p>Recent versions have included new helpers to improve interop between fibers and async functions and to simplify time-sliced processing of child tasks and/or iterables (incl. via transducers).</p><p>The attached code snippet shows an example excerpt of how this is used in the recent (and even more recently updated) <a href="https://mastodon.thi.ng/tags/HowToThing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HowToThing</span></a> Mastodon UI demo. See linked toot for demo link &amp; fully commented source code...</p><p><a href="https://mastodon.thi.ng/@toxi/111069280667363259" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mastodon.thi.ng/@toxi/11106928</span><span class="invisible">0667363259</span></a></p><p><a href="https://mastodon.thi.ng/tags/TypeScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeScript</span></a> <a href="https://mastodon.thi.ng/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.thi.ng/tags/Coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coroutines</span></a> <a href="https://mastodon.thi.ng/tags/Async" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Async</span></a></p>
Uli Kusterer (Not a kitteh)<p>Can a Swift async method return multiple results over time? Different types, so I don’t think I can use AsyncSequence? Something like (pseudocode)</p><p>let (showProgress: async Bool, result: async MyThing) = await doSomethingLengthy()<br>if await showProgress {<br> showProgressScreen()<br>}<br>processResult(await result)</p><p>?</p><p>doSomethingLengthy() would guarantee that doProgress is fulfilled before result, in case that helps.</p><p>Or must it be a 2-method delegate?</p><p><a href="https://chaos.social/tags/swiftlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftlang</span></a> <a href="https://chaos.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://chaos.social/tags/asyncAwait" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>asyncAwait</span></a> <a href="https://chaos.social/tags/coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coroutines</span></a></p>
Karsten Schmidt<p>After some friendly inquiry by <span class="h-card" translate="no"><a href="https://post.lurk.org/@computersandblues" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>computersandblues</span></a></span>, I spent a few hours today adding basic CSP (<a href="https://mastodon.thi.ng/tags/CommunicatingSequentialProcesses" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommunicatingSequentialProcesses</span></a>) primitives for <a href="https://thi.ng/fibers" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">thi.ng/fibers</span><span class="invisible"></span></a> and writing some preliminary documentation. I'm amazed how simple (and easy!) it was this time around (compared to <a href="https://thi.ng/csp" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">thi.ng/csp</span><span class="invisible"></span></a>) and it's giving me big hopes for the fiber based approach in general...</p><p>Readme section:<br><a href="https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/README.md#csp-primitives-communicating-sequential-processes" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/umbrella/blo</span><span class="invisible">b/develop/packages/fibers/README.md#csp-primitives-communicating-sequential-processes</span></a></p><p>2-channel ping/pong example:<br><a href="https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/README.md#csp-pingpong-example" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/umbrella/blo</span><span class="invisible">b/develop/packages/fibers/README.md#csp-pingpong-example</span></a></p><p>Source code &amp; doc strings:<br><a href="https://github.com/thi-ng/umbrella/blob/develop/packages/fibers/src/csp.ts" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/thi-ng/umbrella/blo</span><span class="invisible">b/develop/packages/fibers/src/csp.ts</span></a></p><p><a href="https://mastodon.thi.ng/tags/ThingUmbrella" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ThingUmbrella</span></a> <a href="https://mastodon.thi.ng/tags/TypeScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeScript</span></a> <a href="https://mastodon.thi.ng/tags/Coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coroutines</span></a> <a href="https://mastodon.thi.ng/tags/CSP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSP</span></a> <a href="https://mastodon.thi.ng/tags/CooperativeMultitasking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CooperativeMultitasking</span></a></p>
Abhinav 🌏<p>I wrote the fourth part of my <a href="https://fantastic.earth/tags/blog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blog</span></a> series “Implementing Co, a small programming language with <a href="https://fantastic.earth/tags/coroutines" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coroutines</span></a>”. And this time, we add support for channels in <a href="https://fantastic.earth/tags/Co" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Co</span></a> for inter-coroutine communication. <a href="https://abhinavsarkar.net/posts/implementing-co-4/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">abhinavsarkar.net/posts/implem</span><span class="invisible">enting-co-4/</span></a></p><p><a href="https://fantastic.earth/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://fantastic.earth/tags/PLT" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PLT</span></a> <a href="https://fantastic.earth/tags/ProgrammingLanguages" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ProgrammingLanguages</span></a> <a href="https://fantastic.earth/tags/Compilers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Compilers</span></a> <a href="https://fantastic.earth/tags/Haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Haskell</span></a> <a href="https://fantastic.earth/tags/concurrency" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>concurrency</span></a></p>