Hacker News with Generative AI: Asynchronous Programming

Ask HN: Who's building on Python NoGIL? (ycombinator.com)
I am interested in knowing the things the community is building specifically taking into account the NoGIL aspect of python. Like is someone building frameworks around using Threads instead of Async?
BlackSheep: Fast ASGI web framework for Python (github.com/Neoteroi)
BlackSheep is an asynchronous web framework to build event based web applications with Python. It is inspired by Flask, ASP.NET Core, and the work by Yury Selivanov.
Asynchronous Rust on Cortex-M Microcontrollers (2023) (memfault.com)
In the realm of embedded software, the demand for efficient and responsive applications is ever-increasing.
Async closures in Rust have been stabilized (github.com/rust-lang)
This report proposes the stabilization of #![feature(async_closure)] (RFC 3668). This is a long-awaited feature that increases the expressiveness of the Rust language and fills a pressing gap in the async ecosystem.
Show HN: Lfi – a lazy functional sync, async, and concurrent iteration library (lfi.dev)
lfi is a lazy functional sync, async, and concurrent iteration library
Async Django in Production (jonathanadly.com)
We believe async Django is ready for production. In theory, there should be no performance loss when using async Django instead of FastAPI for the same tasks. Django's built-in features greatly simplify and enhance the developer experience. Using async involves some complexity, as the entire code path must be async. In AI workloads, this complexity is often a worthwhile tradeoff.
Playground Wisdom: Threads Beat Async/Await (pocoo.org)
It's been a few years since I wrote about my challenges with async/await-based systems and how they just seem to not support back pressure well. A few years later, I do not think that this problem has subsided much, but my thinking and understanding have perhaps evolved a bit. I'm now convinced that async/await is, in fact, a bad abstraction for most languages, and we should be aiming for something better instead and that I believe to be thread.
Async await: the worst thing to happen to programming? (andrewzuo.com)
I recently saw this meme about async and await.
Bthreads: A Simple and Easy Paradigm for Clojure (thomascothran.tech)
Asynchronous programs are hard to reason about. But is this intrinsic to asynchrony? Or might we be using the wrong paradigms?
Toasty, an async ORM for Rust (tokio.rs)
Toasty is an asynchronous ORM for the Rust programming language that prioritizes ease of use. Toasty supports SQL and NoSQL databases, including DynamoDB and Cassandra (soon).
Async Rust in Three Parts (jacko.io)
Blocking code is a leaky abstraction (notgull.net)
Asynchronous code does not require the rest of your code to be asynchronous. I can’t say the same for blocking code.
Show HN: Kameo – Fault-tolerant async actors built on Tokio (github.com/tqwewe)
Kameo is a lightweight Rust library for building fault-tolerant, distributed, and asynchronous actors.
Show HN: Bringing multithreading to Python's async event loop (github.com/NeilBotelho)
This is an attempt at building an asyncio compatible event loop that is multithreaded. I.e. you will finally be able to use asyncio and actually have it be multithreaded ! I've written a blog post explaining more about the why and how of this project.
Automatic async to sync code conversion (psycopg.org)
Psycopg 3 provides both a sync and an async Python interface: for each object used to perform I/O operations, such as Connection, Cursor, there is an async counterpart: AsyncConnection, AsyncCursor, with an intuitive interface: just add the right async or await keyword where needed:
Waiting on many things at once with io_uring (mazzo.li)
When doing systems programming we often need to wait for something to happen. Common examples might be waiting for some data to come through a socket or waiting on a lock. We also often want to wait on any of several conditions to become true. A web server might be handling many sockets at once, waiting for any number of them to become readable or writeable.
Show HN: Io_uring for Ruby (github.com/digital-fabric)
IOU is a Ruby gem for working with the io_uring API. IOU provides a simple and idiomatic API for working with io_uring.
The await event horizon in JavaScript (2023) (frontside.com)
I avoid async/await in JavaScript (2022) (medium.com)
Queues invert control flow but require flow control (enterpriseintegrationpatterns.com)
Panic at the Async Runtime Shutdown (mattkeeter.com)
Async Rust: The new billion-dollar mistake? by Sylvain Kerkour (kerkour.com)
Synchronous Core, Asynchronous Shell (sulami.xyz)
Rust FSM-based Resumable Postgres tasks (github.com/imbolc)
How/Why to Sweep Async Tasks Under a Postgres Table [video] (youtube.com)
Async Ruby on Rails (thoughtbot.com)
Async Rust Isn't Bad: You Are (n8s.site)
Async Rust Complexity (chriskrycho.com)
Temporal Python – A durable, distributed asyncio event loop (2023) (temporal.io)
How Python asyncio works: recreating it from scratch (jacobpadilla.com)