frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How async/await works in Python (2021)

https://tenthousandmeters.com/blog/python-behind-the-scenes-12-how-asyncawait-works-in-python/
61•sebg•9mo ago

Comments

quentinp•9mo ago
While it stays at the Python level, https://github.com/AndreLouisCaron/a-tale-of-event-loops really helped me to understand how asyncio and Trio are implemented. I had no idea how sleeps worked before reading that post.
incomingpain•9mo ago
Page didnt load for me.

https://realpython.com/async-io-python/

Multiprocessing all the way!

emmelaich•9mo ago
(2021)

Good article!

punnerud•9mo ago
A more simplified version:

Synchronous code is like a single-lane road where cars (tasks) must travel one after another in perfect sequence. If one car stops for gas (waiting for I/O), every car behind it must stop too. While orderly and predictable, this creates massive traffic jams as tasks wait unnecessarily for others to complete before they can proceed.

Pure asynchronous code (with callbacks) is like dispatching multiple cars onto independent routes with no coordination. Cars move freely without waiting for each other, but they arrive at unpredictable times and following their progress becomes chaotic. It's efficient but creates a complex tangle of paths that becomes hard to maintain.

Async/await combines the best of both approaches with a multi-lane highway system. Cars follow clear, synchronous-looking routes (making code readable), but only wait at strategic "await" exit ramps when truly necessary. When a car needs data, it signals with "await", pulls off the highway temporarily, and other cars continue flowing past. Once its operation completes, it merges back into traffic and continues. This gives you the logical simplicity of synchronous code with the performance benefits of asynchronous execution - cars only wait at crossroads when they must, maximizing throughput while maintaining order.

The genius of async/await is that it lets developers write code that looks sequential while the runtime handles all the complex traffic management under the hood.

explodes•9mo ago
Excellent write up. I appreciate the level of details here showing the history from the days of old, before async/await were even keywords.
bilsbie•9mo ago
How does the GIL come into play here?
punnerud•9mo ago
GIL is like a "red-cap" on the head for the CPU-core running the task, so you would not be able to run true Async without GIL. Have to hand the "red-cap" back, for the next task.

Instead of using a global lock ("red-cap"), Python objects have introduced a specialized reference counting system that distinguishes between "local" references (owned by a single thread) and "shared" references (accessed by multiple threads).

In that way enabling to remove GIL in the long run, now starting with making it optional.

Toyota Fluorite: "console-grade" Flutter game engine

https://fluorite.game/
125•bsimpson•2h ago•53 comments

GLM-5: From Vibe Coding to Agentic Engineering

https://z.ai/blog/glm-5
181•meetpateltech•2h ago•102 comments

NetNewsWire Turns 23

https://netnewswire.blog/2026/02/11/netnewswire-turns.html
18•robin_reala•46m ago•1 comments

Claude Code Is Being Dumbed Down

https://symmetrybreak.ing/blog/claude-code-is-being-dumbed-down/
88•WXLCKNO•29m ago•62 comments

GLM-OCR: Accurate × Fast × Comprehensive

https://github.com/zai-org/GLM-OCR
135•ms7892•4d ago•51 comments

It's not finance, it's your pensions

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
29•kome•5d ago•30 comments

WiFi Could Become an Invisible Mass Surveillance System

https://scitechdaily.com/researchers-warn-wifi-could-become-an-invisible-mass-surveillance-system/
166•mgh2•4d ago•80 comments

A shortage of tenors

https://www.economist.com/culture/2026/02/09/the-world-is-suffering-from-a-shortage-of-tenors
31•petethomas•1d ago•15 comments

We rendered and embedded one million CAD files

https://cad-search-three.vercel.app/
16•DavidFerris•19h ago•6 comments

It's all a blur

https://lcamtuf.substack.com/p/its-all-a-blur
281•zdw•5d ago•57 comments

FAA halts all flights at El Paso airport for 10 days

https://www.nytimes.com/2026/02/11/us/faa-el-paso-flight-restrictions.html
241•edward•9h ago•425 comments

Single bone in Spain offers first direct evidence of Hannibal's war elephants

https://phys.org/news/2026-02-hannibal-famous-war-elephants-bone.html
8•Archelaos•4d ago•0 comments

Show HN: AI agents play SimCity through a REST API

https://hallucinatingsplines.com
120•aed•2d ago•43 comments

Should your developer company go open source?

https://extremefoundership.substack.com/p/should-your-developer-company-go
10•paraphrenia•1h ago•5 comments

Why Vampires Live Forever

https://machielreyneke.com/blog/vampires-longevity/
168•machielrey•3h ago•67 comments

Rome is studded with cannon balls (2022)

https://essenceofrome.com/rome-is-studded-with-cannon-balls
76•thomassmith65•4d ago•6 comments

Exposure Simulator

http://www.andersenimages.com/tutorials/exposure-simulator/
96•sneela•7h ago•37 comments

The Day the Telnet Died

https://www.labs.greynoise.io/grimoire/2026-02-10-telnet-falls-silent/
466•pjf•20h ago•337 comments

Show HN: Renovate – The Kubernetes-Native Way

https://github.com/mogenius/renovate-operator
31•JanLepsky•4h ago•13 comments

AI-First Company Memos

https://the-ai-native.company/
80•bobismyuncle•3h ago•128 comments

Lessons you will learn living in a snowy place

https://eukaryotewritesblog.com/2026/01/21/very-snowy-place/
246•surprisetalk•5d ago•238 comments

Railway (PaaS) global outage

https://status.railway.com
70•TealMyEal•3h ago•56 comments

Communities are not fungible

https://www.joanwestenberg.com/communities-are-not-fungible/
160•tardibear•11h ago•74 comments

The Feynman Lectures on Physics (1961-1964)

https://www.feynmanlectures.caltech.edu/
440•rramadass•1d ago•116 comments

Windows Notepad App Remote Code Execution Vulnerability

https://www.cve.org/CVERecord?id=CVE-2026-20841
658•riffraff•12h ago•412 comments

CoLoop (YC S21) Is Hiring Ex Technical Founders in London

https://www.workatastartup.com/jobs/90016
1•mrlowlevel•11h ago

Chrome extensions spying on users' browsing data

https://qcontinuum.substack.com/p/spying-chrome-extensions-287-extensions-495
399•qcontinuum1•8h ago•164 comments

The Singularity will occur on a Tuesday

https://campedersen.com/singularity
1291•ecto•1d ago•699 comments

Ask HN: Why are electronics still so unrecyclable?

38•alexandrehtrb•3h ago•80 comments

A Cosmic Miracle: A Remarkably Luminous Galaxy at z=14.44 Confirmed with JWST

https://astro.theoj.org/article/156033-a-cosmic-miracle-a-remarkably-luminous-galaxy-at-_z_-sub-s...
82•yread•10h ago•42 comments