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

Comments

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

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

Multiprocessing all the way!

emmelaich•10mo ago
(2021)

Good article!

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

Google releases Gemma 4 open models

https://deepmind.google/models/gemma/gemma-4/
1330•jeffmcjunkin•14h ago•386 comments

Decisions that eroded trust in Azure – by a former Azure Core engineer

https://isolveproblems.substack.com/p/how-microsoft-vaporized-a-trillion
581•axelriet•14h ago•215 comments

Tailscale's new macOS home

https://tailscale.com/blog/macos-notch-escape
408•tosh•12h ago•198 comments

C89cc.sh – standalone C89/ELF64 compiler in pure portable shell

https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
100•gaigalas•1d ago•15 comments

Cursor 3

https://cursor.com/blog/cursor-3
366•adamfeldman•12h ago•296 comments

Free stuff makes us irrational

https://thehustle.co/why-free-stuff-makes-us-irrational
45•Anon84•4d ago•36 comments

Artemis II's toilet is a moon mission milestone

https://www.scientificamerican.com/article/artemis-iis-toilet-is-a-moon-mission-milestone/
206•1659447091•1d ago•82 comments

Qwen3.6-Plus: Towards real world agents

https://qwen.ai/blog?id=qwen3.6
486•pretext•15h ago•173 comments

Good ideas do not need lots of lies in order to gain public acceptance (2008)

https://blog.danieldavies.com/2004/05/d-squared-digest-one-minute-mba.html
221•sedev•12h ago•88 comments

Show HN: Home Maker: Declare Your Dev Tools in a Makefile

https://thottingal.in/blog/2026/03/29/home-maker/
24•sthottingal•4d ago•12 comments

LinkedIn is searching your browser extensions

https://browsergate.eu/
1650•digitalWestie•17h ago•694 comments

The Joy of Numbered Streets

https://humantransit.org/2026/03/the-joy-of-numbered-streets-or-call-it-39th-avenue.html
34•dmit•6d ago•13 comments

George Goble has died

https://www.legacy.com/us/obituaries/wlfi/name/george-goble-obituary?id=61144779
137•finaard•12h ago•25 comments

Significant progress made on Xbox 360 recompilation

https://readonlymemo.com/rexglue-xbox-360-recompilation-interview/
101•tetrisgm•4d ago•22 comments

Vector Meson Dominance

https://johncarlosbaez.wordpress.com/2026/03/29/vector-meson-dominance/
10•chmaynard•4d ago•0 comments

A Few Good Magazines From the 70s and 80s

https://www.bi6.us/CO/MG.HTML
51•OhMeadhbh•7h ago•14 comments

Show HN: Made a little Artemis II tracker

https://artemis-ii-tracker.com/
75•codingmoh•7h ago•30 comments

The True Shape of Io's Steeple Mountain

https://www.weareinquisitive.com/news/hidden-in-the-shadow
4•carlosjobim•4d ago•0 comments

OpenAI Acquires TBPN

https://openai.com/index/openai-acquires-tbpn/
191•surprisetalk•12h ago•154 comments

Inside Nepal's Fake Rescue Racket

https://kathmandupost.com/money/2026/03/27/inside-nepal-s-fake-rescue-racket
277•lode•18h ago•118 comments

JSON Canvas Spec (2024)

https://jsoncanvas.org/spec/1.0/
100•tobr•3d ago•31 comments

ParadeDB (YC S23) Is Hiring Database Internal Engineers (Rust)

https://paradedb.notion.site/
1•philippemnoel•8h ago

Memo: A language that remembers only the last 12 lines of code

https://danieltemkin.com/Esolangs/Memo/
42•notem•8h ago•17 comments

Maze Algorithms (1997)

https://www.astrolog.org/labyrnth/algrithm.htm
35•marukodo•2d ago•5 comments

Artemis computer running two instances of MS outlook; they can't figure out why

https://bsky.app/profile/nikigrayson.com/post/3miik2wzosk25
374•mooreds•15h ago•283 comments

Post Mortem: axios NPM supply chain compromise

https://github.com/axios/axios/issues/10636
77•Kyro38•6h ago•42 comments

Sweden goes back to basics, swapping screens for books in the classroom

https://undark.org/2026/04/01/sweden-schools-books/
802•novaRom•19h ago•393 comments

Tor Alva: The Tallest 3D-Printed Building in the World

https://cacm.acm.org/blogcacm/tor-alva-the-tallest-3d-printed-building-in-the-world/
24•sohkamyung•7h ago•4 comments

Prefer do notation over Applicative operators when assembling records (2024)

https://haskellforall.com/2024/05/prefer-do-notation-over-applicative
39•wazHFsRy•2d ago•5 comments

Lemonade by AMD: a fast and open source local LLM server using GPU and NPU

https://lemonade-server.ai
487•AbuAssar•19h ago•107 comments