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.

Television is 100 years old today

https://diamondgeezer.blogspot.com/2026/01/tv100.html
532•qassiov•12h ago•184 comments

Any application that can be written in a system language, eventually will be

https://www.avraam.dev/blog/system-language-corollary
24•almonerthis•3d ago•25 comments

ChatGPT Containers can now run bash, pip/npm install packages and download files

https://simonwillison.net/2026/Jan/26/chatgpt-containers/
192•simonw•7h ago•170 comments

The Hidden Engineering of Runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
178•crescit_eundo•6d ago•52 comments

AI code and software craft

https://alexwennerberg.com/blog/2026-01-25-slop.html
91•alexwennerberg•8h ago•56 comments

There is an AI code review bubble

https://www.greptile.com/blog/ai-code-review-bubble
173•dakshgupta•11h ago•136 comments

Apple introduces new AirTag with longer range and improved findability

https://www.apple.com/newsroom/2026/01/apple-introduces-new-airtag-with-expanded-range-and-improv...
283•meetpateltech•12h ago•389 comments

RIP Low-Code 2014-2025

https://www.zackliscio.com/posts/rip-low-code-2014-2025/
153•zackliscio•10h ago•66 comments

People who know the formula for WD-40

https://www.wsj.com/business/the-secret-society-of-people-who-know-the-formula-for-wd-40-e9c0ff54
85•fortran77•5h ago•157 comments

JuiceSSH – Give me my pro features back

https://nproject.io/blog/juicessh-give-me-back-my-pro-features/
225•jandeboevrie•9h ago•111 comments

Dithering – Part 2: The Ordered Dithering

https://visualrambling.space/dithering-part-2/
124•ChrisArchitect•7h ago•17 comments

You have to know how tech companies work

https://www.seangoedecke.com/knowing-how-to-drive-the-car/
35•alexwennerberg•3h ago•22 comments

Windows 11's Patch Tuesday nightmare gets worse

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
167•01-_-•11h ago•134 comments

Show HN: TetrisBench – Gemini Flash reaches 66% win rate on Tetris against Opus

https://tetrisbench.com/tetrisbench/
73•ykhli•8h ago•32 comments

The Adolescence of Technology

https://www.darioamodei.com/essay/the-adolescence-of-technology
138•jasondavies•9h ago•94 comments

Pharos: The Lighthouse at Alexandria

https://penelope.uchicago.edu/encyclopaedia_romana/greece/paganism/pharos.html
12•teleforce•6d ago•2 comments

France Aiming to Replace Zoom, Google Meet, Microsoft Teams, etc.

https://twitter.com/lellouchenico/status/2015775970330882319
547•bwb•10h ago•463 comments

Fedora Asahi Remix is now working on Apple M3

https://bsky.app/profile/did:plc:okydh7e54e2nok65kjxdklvd/post/3mdd55paffk2o
436•todsacerdoti•8h ago•168 comments

iPhone 5s Gets New Software Update 13 Years After Launch

https://www.macrumors.com/2026/01/26/iphone-5s-software-update/
35•angott•1h ago•12 comments

Porting 100k lines from TypeScript to Rust using Claude Code in a month

https://blog.vjeux.com/2026/analysis/porting-100k-lines-from-typescript-to-rust-using-claude-code...
161•ibobev•12h ago•109 comments

Qwen3-Max-Thinking

https://qwen.ai/blog?id=qwen3-max-thinking
416•vinhnx•11h ago•379 comments

Why autosave is not recovery

https://zippers.dev/blog/why-savior-exists
3•Pepp38•2d ago•1 comments

Y Combinator website no longer lists Canada as a country it invests in

https://betakit.com/y-combinator-website-no-longer-lists-canada-as-a-country-it-invests-in/
94•TheLegace•3h ago•49 comments

San Francisco Graffiti

https://walzr.com/sf-graffiti
148•walz•16h ago•176 comments

OpenFlexure Microscope

https://openflexure.org/projects/microscope/
55•o4c•5d ago•10 comments

After two years of vibecoding, I'm back to writing by hand

https://atmoio.substack.com/p/after-two-years-of-vibecoding-im
650•mobitar•13h ago•499 comments

Show HN: Only 1 LLM can fly a drone

https://github.com/kxzk/snapbench
144•beigebrucewayne•15h ago•79 comments

Google AI Overviews cite YouTube more than any medical site for health queries

https://www.theguardian.com/technology/2026/jan/24/google-ai-overviews-youtube-medical-citations-...
364•bookofjoe•12h ago•197 comments

Find 'Abbey Road when type 'Beatles abbey rd': Fuzzy/Semantic search in Postgres

https://rendiment.io/postgresql/2026/01/21/pgtrgm-pgvector-music.html
74•nethalo•5d ago•22 comments

Not all Chess960 positions are equally complex

https://arxiv.org/abs/2512.14319
49•MaysonL•4d ago•24 comments