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.

Voxtral Transcribe 2

https://mistral.ai/news/voxtral-transcribe-2
378•meetpateltech•4h ago•105 comments

Building a 24-bit arcade CRT display adapter from scratch

https://www.scd31.com/posts/building-an-arcade-display-adapter
43•evakhoury•2h ago•8 comments

Yawning has an unexpected influence on the fluid inside your brain

https://www.newscientist.com/article/2513692-yawning-has-an-unexpected-influence-on-the-fluid-ins...
26•MDWolinski•5d ago•8 comments

Attention at Constant Cost per Token via Symmetry-Aware Taylor Approximation

https://arxiv.org/abs/2602.00294
117•fheinsen•5h ago•62 comments

Tractor

https://incoherency.co.uk/blog/stories/tractor.html
84•surprisetalk•22h ago•25 comments

Claude Is a Space to Think

https://www.anthropic.com/news/claude-is-a-space-to-think
184•meetpateltech•7h ago•84 comments

RS-SDK: Drive RuneScape with Claude Code

https://github.com/MaxBittker/rs-sdk
47•evakhoury•2h ago•15 comments

Arcan-A12: Weaving a Different Web

https://www.divergent-desktop.org/blog/2026/01/26/a12web/
18•ingenieroariel•3h ago•3 comments

Study: emotional support from social media found to reduce anxiety

https://news.uark.edu/articles/80669/emotional-support-from-social-media-found-to-reduce-anxiety
47•giuliomagnifico•2h ago•47 comments

A sane but bull case on Clawdbot / OpenClaw

https://brandon.wang/2026/clawdbot
186•brdd•1d ago•309 comments

Converge (YC S23) Is Hiring Product Engineers (NYC, In-Person)

https://www.runconverge.com/careers/product-engineer
1•thomashlvt•2h ago

Claude Code for Infrastructure

https://www.fluid.sh/
8•aspectrr•1h ago•1 comments

Procedures for Repair of Potholes in Asphalt-Surfaced Pavements

https://highways.dot.gov/media/7941
42•treebrained•3d ago•31 comments

Coding Agent VMs on NixOS with Microvm.nix

https://michael.stapelberg.ch/posts/2026-02-01-coding-agent-microvm-nix/
58•secure•3d ago•30 comments

A case study in PDF forensics: The Epstein PDFs

https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/
177•DuffJohnson•4h ago•84 comments

The Great Unwind

https://occupywallst.com/yen
148•jart•1h ago•96 comments

Old Insurance Maps – Georeferencing Sanborn Fire Insurance Maps on Modern Maps

https://oldinsurancemaps.net/
64•lapetitejort•1w ago•16 comments

Show HN: Ghidra MCP Server – 110 tools for AI-assisted reverse engineering

https://github.com/bethington/ghidra-mcp
235•xerzes•12h ago•60 comments

Guinea worm on track to be 2nd eradicated human disease; only 10 cases in 2025

https://arstechnica.com/health/2026/02/guinea-worm-on-track-to-be-2nd-eradicated-human-disease-on...
162•bookofjoe•5h ago•74 comments

The Voxel Is a Cutting-Edge Theater Experiment

https://bmoreart.com/2024/09/the-voxel-is-a-cutting-edge-theater-experiment.html
22•simonw•5d ago•4 comments

Show HN: SymDerive – A functional, stateless symbolic math library

15•dinunnob•3d ago•1 comments

FBI couldn't get into WaPo reporter's iPhone because Lockdown Mode enabled

https://www.404media.co/fbi-couldnt-get-into-wapo-reporters-iphone-because-it-had-lockdown-mode-e...
451•robin_reala•5h ago•377 comments

I miss thinking hard

https://www.jernesto.com/articles/thinking_hard
1136•jernestomg•15h ago•616 comments

Brazilian Micro-SaaS Map

https://saas-map.ssr.trapiche.cloud/
79•acfilho•3d ago•3 comments

AI needs to augment rather than replace humans or the workplace is doomed

https://www.theguardian.com/technology/2026/jan/25/ai-augment-rather-than-replace-workplace-doomed
24•PaulHoule•1h ago•1 comments

Data centers in space makes no sense

https://civai.org/blog/space-data-centers
987•ajyoon•1d ago•1144 comments

High-Altitude Adventure with a DIY Pico Balloon

https://spectrum.ieee.org/explore-stratosphere-diy-pico-balloon
98•jnord•3d ago•47 comments

Goblins: Distributed, Transactional Programming with Racket and Guile

https://spritely.institute/goblins/
108•alhazrod•4d ago•16 comments

French streamer unbanked by Qonto after criticizing Palantir and Peter Thiel

https://twitter.com/Ced_haurus/status/2018716889191498172
136•hocuspocus•2h ago•37 comments

Stanford's Fake Disability Crisis Is America's Future

https://garryslist.org/posts/stanford-cheating
26•gmays•6h ago•22 comments