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.

Meta’s AI smart glasses and data privacy concerns

https://www.svd.se/a/K8nrV4/metas-ai-smart-glasses-and-data-privacy-concerns-workers-say-we-see-e...
982•sandbach•9h ago•560 comments

British Columbia is permanently adopting daylight time

https://www.cbc.ca/news/canada/british-columbia/b-c-adopting-year-round-daylight-time-9.7111657
744•ireflect•11h ago•372 comments

Daily Driving GrapheneOS

https://blog.matthewbrunelle.com/8-4-months-of-daily-driving-grapheneos/
71•zdw•2h ago•35 comments

Ars Technica fires reporter after AI controversy involving fabricated quotes

https://futurism.com/artificial-intelligence/ars-technica-fires-reporter-ai-quotes
218•danso•6h ago•135 comments

Simple screw counter

https://mitxela.com/projects/screwcounter
94•jk_tech•2d ago•21 comments

I built a pint-sized Macintosh

https://www.jeffgeerling.com/blog/2026/pint-sized-macintosh-pico-micro-mac/
8•ingve•55m ago•0 comments

Show HN: I built a sub-500ms latency voice agent from scratch

https://www.ntik.me/posts/voice-agent
359•nicktikhonov•10h ago•103 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/magazine/2026/03/09/buckle-up-for-bumpier-skies
20•littlexsparkee•2h ago•4 comments

Intent-Based Commits

https://github.com/adamveld12/ghost
40•adamveld12•3h ago•27 comments

Moldova broke our data pipeline

https://www.avraam.dev/blog/moldova-broke-our-pipeline
38•almonerthis•2d ago•26 comments

Physicists developing a quantum computer that’s entirely open source

https://physics.aps.org/articles/v19/24
93•tzury•8h ago•20 comments

First in-utero stem cell therapy for fetal spina bifida repair is safe: study

https://health.ucdavis.edu/news/headlines/first-ever-in-utero-stem-cell-therapy-for-fetal-spina-b...
293•gmays•17h ago•51 comments

DOS Memory Management

https://www.os2museum.com/wp/dos-memory-management/
27•ingve•2d ago•0 comments

New iPad Air, powered by M4

https://www.apple.com/newsroom/2026/03/apple-introduces-the-new-ipad-air-powered-by-m4/
376•Garbage•17h ago•601 comments

Guilty Displeasures

https://www.hopefulmons.com/p/what-are-your-guilty-displeasures
58•aregue•1d ago•62 comments

Seed of Might Color Correction Process (2023) [pdf]

https://andrewvanner.github.io/som/SoM_CC_Process_Day.pdf
84•haunter•9h ago•20 comments

Launch HN: OctaPulse (YC W26) – Robotics and computer vision for fish farming

97•rohxnsxngh•15h ago•33 comments

Elevated Errors in Claude.ai

https://status.claude.com/incidents/yf48hzysrvl5
95•LostMyLogin•4h ago•83 comments

Motorola announces a partnership with GrapheneOS

https://motorolanews.com/motorola-three-new-b2b-solutions-at-mwc-2026/
2169•km•1d ago•793 comments

Guido van Rossum Interviews Thomas Wouters (Python Core Dev)

https://gvanrossum.github.io/interviews/Thomas.html
15•azhenley•1d ago•1 comments

The Cathode Ray Tube site

https://www.crtsite.com/didactic-crt.html
40•joebig•1d ago•3 comments

iPhone 17e

https://www.apple.com/newsroom/2026/03/apple-introduces-iphone-17e/
259•meetpateltech•17h ago•365 comments

Show HN: Govbase – Follow a bill from source text to news bias to social posts

https://govbase.com
187•foxfoxx•14h ago•76 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
60•surprisetalk•1d ago•33 comments

I built an RGB controller with Arduino

https://svana.name/2026/02/i-built-an-rgb-controller-with-arduino/
5•msvana•2d ago•0 comments

Inside the M4 Apple Neural Engine, Part 1: Reverse Engineering

https://maderix.substack.com/p/inside-the-m4-apple-neural-engine
322•zdw•1d ago•92 comments

RCade: Building a Community Arcade Cabinet

https://www.frankchiarulli.com/blog/building-the-rcade/
78•evakhoury•4d ago•14 comments

The 185-Microsecond Type Hint

https://blog.sturdystatistics.com/posts/type_hint/
66•kianN•9h ago•8 comments

Ask HN: Who is hiring? (March 2026)

205•whoishiring•16h ago•237 comments

Programmable Cryptography (2024)

https://0xparc.org/writings/programmable-cryptography-1
65•fi-le•2d ago•37 comments