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•8mo ago

Comments

quentinp•8mo 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•8mo ago
Page didnt load for me.

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

Multiprocessing all the way!

emmelaich•8mo ago
(2021)

Good article!

punnerud•8mo 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•8mo 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•8mo ago
How does the GIL come into play here?
punnerud•8mo 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.

Internet Archive's Storage

https://blog.dshr.org/2026/01/internet-archives-storage.html
142•zdw•3d ago•31 comments

80386 Multiplication and Division

https://nand2mario.github.io/posts/2026/80386_multiplication_and_division/
40•nand2mario•3h ago•4 comments

Unrolling the Codex agent loop

https://openai.com/index/unrolling-the-codex-agent-loop/
329•tosh•13h ago•150 comments

Traintrackr – Live LED Maps

https://www.traintrackr.co.uk/
41•recursion•5d ago•11 comments

Proof of Corn

https://proofofcorn.com/
386•rocauc•16h ago•264 comments

Some C habits I employ for the modern day

https://www.unix.dog/~yosh/blog/c-habits-for-me.html
163•signa11•5d ago•81 comments

Gas Town's agent patterns, design bottlenecks, and vibecoding at scale

https://maggieappleton.com/gastown
332•pavel_lishin•17h ago•328 comments

Extracting verified C++ from the Rocq theorem prover at Bloomberg

https://bloomberg.github.io/crane/
44•clarus•4d ago•3 comments

New YC homepage

https://www.ycombinator.com/
256•sarreph•16h ago•122 comments

Banned C++ features in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md
172•szmarczak•13h ago•148 comments

Comma openpilot – Open source driver-assistance

https://comma.ai
271•JumpCrisscross•9h ago•153 comments

Telli (YC F24) is hiring eng, design, growth [on-site, Berlin]

https://careers.telli.com/
1•sebselassie•3h ago

"People are going to stop and ask you, 'How can I help?' Let them."

https://www.npr.org/2026/01/20/nx-s1-5683170/let-them-the-small-bit-of-advice-that-made-a-big-dif...
36•NaOH•6h ago•3 comments

Microsoft gave FBI set of BitLocker encryption keys to unlock suspects' laptops

https://techcrunch.com/2026/01/23/microsoft-gave-fbi-a-set-of-bitlocker-encryption-keys-to-unlock...
841•bookofjoe•16h ago•546 comments

Ask HN: What's the current best local/open speech-to-speech setup?

162•dsrtslnd23•23h ago•36 comments

Mental Models (2018)

https://fs.blog/mental-models/
97•hahahacorn•13h ago•12 comments

Booting from a vinyl record (2020)

https://boginjr.com/it/sw/dev/vinyl-boot/
317•yesturi•23h ago•108 comments

Route leak incident on January 22, 2026

https://blog.cloudflare.com/route-leak-incident-january-22-2026/
148•nomaxx117•16h ago•43 comments

Air traffic control: the IBM 9020

https://computer.rip/2026-01-17-air-traffic-control-9020.html
35•pinewurst•5d ago•3 comments

KORG phase8 – Acoustic Synthesizer

https://www.korg.com/us/products/dj/phase8/
229•bpierre•19h ago•100 comments

Proton spam and the AI consent problem

https://dbushell.com/2026/01/22/proton-spam/
512•dbushell•1d ago•362 comments

The tech monoculture is finally breaking

http://www.jasonwillems.com/technology/2025/12/17/Tech-Is-Fun-Again/
190•at1as•18h ago•251 comments

Wilson Lin on FastRender: a browser built by parallel agents

https://simonwillison.net/2026/Jan/23/fastrender/
52•lumpa•11h ago•16 comments

Show HN: Whosthere: A LAN discovery tool with a modern TUI, written in Go

https://github.com/ramonvermeulen/whosthere
243•rvermeulen98•22h ago•81 comments

The strange case of the underestimated Merge Join node

https://blog.dalibo.com/2026/01/12/under-estimated-mergejoin.html
6•daamien•4d ago•0 comments

Kotlin's rich errors: Native, typed errors without exceptions

https://cekrem.github.io/posts/kotlin-rich-errors-elm-union-types/
43•todsacerdoti•5d ago•57 comments

Repatriate the gold': German economists advise withdrawal from US vaults

https://www.theguardian.com/world/2026/jan/24/repatriate-the-gold-german-economists-advise-withdr...
16•vinni2•26m ago•2 comments

Gold fever, cold, and the true adventures of Jack London in the wild

https://www.smithsonianmag.com/history/gold-fever-deadly-cold-and-amazing-true-adventures-jack-lo...
62•janandonly•5d ago•25 comments

Losing 1½ Million Lines of Go

https://www.tbray.org/ongoing/When/202x/2026/01/14/Unicode-Properties
89•moks•4d ago•9 comments

Nobody likes lag: How to make low-latency dev sandboxes

https://www.compyle.ai/blog/nobody-likes-lag/
84•mnazzaro•16h ago•38 comments