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.

Antirender: remove the glossy shine on architectural renderings

https://antirender.com/
1339•iambateman•16h ago•320 comments

Euro firms must ditch Uncle Sam's clouds and go EU-native

https://www.theregister.com/2026/01/30/euro_firms_must_ditch_us/
112•jamesblonde•1h ago•51 comments

Sumerian Star Map Recorded the Impact of an Asteroid (2024)

https://archaeologyworlds.com/5500-year-old-sumerian-star-map-recorded/
61•griffzhowl•4h ago•25 comments

Automatic Programming

https://antirez.com/news/159
108•dvrp•2h ago•76 comments

Show HN: I trained a 9M speech model to fix my Mandarin tones

https://simedw.com/2026/01/31/ear-pronunication-via-ctc/
266•simedw•11h ago•95 comments

We have ipinfo at home or how to geolocate IPs in your CLI using latency

https://blog.globalping.io/we-have-ipinfo-at-home-or-how-to-geolocate-ips-in-your-cli-using-latency/
19•jimaek•2h ago•4 comments

Insane Growth Goldbridge (YC F25) Is Hiring a Forward Deployed Engineer

https://www.ycombinator.com/companies/goldbridge/jobs/78gGEHh-forward-deployed-engineer
1•alvinsalehi•22m ago

Direct Current Data Centers

https://terraformindustries.wordpress.com/2026/01/30/direct-current-data-centers/
36•jk_tech•12h ago•19 comments

A Step Behind the Bleeding Edge: A Philosophy on AI in Dev

https://somehowmanage.com/2026/01/22/a-step-behind-the-bleeding-edge-monarchs-philosophy-on-ai-in...
33•Ozzie_osman•1d ago•4 comments

My Ridiculously Robust Photo Management System (Immich Edition)

https://jaisenmathai.com/articles/my-ridiculously-robust-photo-management-system-immich-edition/
49•jmathai•2d ago•21 comments

Peerweb: Decentralized website hosting via WebTorrent

https://peerweb.lol/
274•dtj1123•15h ago•93 comments

A novelist who took on the Italian mafia and lived

https://www.thetimes.com/culture/books/article/sicilian-man-leonardo-sciascia-rise-mafia-struggle...
50•Thevet•3d ago•31 comments

Show HN: Phage Explorer

https://phage-explorer.org/
74•eigenvalue•7h ago•17 comments

Naples' 1790s civil war was intensified by moral panic over Real Analysis (2023)

https://lareviewofbooks.org/article/foundational-anxieties-modern-mathematics-and-the-political-i...
54•OgsyedIE•8h ago•12 comments

Moltbook

https://www.moltbook.com/
1493•teej•1d ago•710 comments

An anecdote about backward compatibility

https://blog.plover.com/2026/01/26/#wrterm
46•speckx•4d ago•8 comments

CERN accepts $1B in private cash towards Future Circular Collider

https://physicsworld.com/a/cern-accepts-1bn-in-private-cash-towards-future-circular-collider/
33•zeristor•2h ago•14 comments

HTTP Cats

https://http.cat/
398•surprisetalk•22h ago•68 comments

Show HN: SF Microclimates

https://github.com/solo-founders/sf-microclimates
36•weisser•5d ago•31 comments

Ashcan Comic

https://en.wikipedia.org/wiki/Ashcan_comic
40•benbreen•1d ago•7 comments

htmx: Server Sent Event (SSE) Extension

https://htmx.org/extensions/sse/
23•tosh•1h ago•3 comments

Kimi K2.5 Technical Report [pdf]

https://github.com/MoonshotAI/Kimi-K2.5/blob/master/tech_report.pdf
312•vinhnx•19h ago•116 comments

Disrupting the largest residential proxy network

https://cloud.google.com/blog/topics/threat-intelligence/disrupting-largest-residential-proxy-net...
171•cdrnsf•2d ago•152 comments

Surely the crash of the US economy has to be soon

https://wilsoniumite.com/2026/01/27/surely-it-has-to-be-soon/
344•Wilsoniumite•1d ago•461 comments

Stonebraker on CAP theorem and Databases (2010)

https://perspectives.mvdirona.com/2010/04/stonebraker-on-cap-theorem-and-databases/
68•onurkanbkrc•12h ago•30 comments

Coding is when we're least productive

https://codemanship.wordpress.com/2026/01/30/coding-is-when-were-least-productive/
46•vinhnx•10h ago•22 comments

Designing a Passively Safe API

https://www.danealbaugh.com/articles/passively-safe-apis
31•dalbaugh•4d ago•6 comments

The engineer who invented the Mars rover suspension in his garage [video]

https://www.youtube.com/watch?v=QKSPk_0N4Jc
333•UltraSane•4d ago•48 comments

Archyl – The modern platform for C4 model documentation

https://www.archyl.com/
6•eko•4d ago•4 comments

Code is cheap. Show me the talk

https://nadh.in/blog/code-is-cheap/
241•ghostfoxgod•1d ago•200 comments