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.

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
879•alexharri•16h ago•108 comments

MIT's Computer Systems Security (2024)

https://css.csail.mit.edu/6.858/2024/
39•barishnamazov•3h ago•3 comments

A programming language based on grammatical cases of Turkish

https://github.com/kip-dili/kip
135•nhatcher•7h ago•46 comments

The recurring dream of replacing developers

https://www.caimito.net/en/blog/2025/12/07/the-recurring-dream-of-replacing-developers.html
326•glimshe•13h ago•257 comments

Xous Operating System

https://xous.dev/
96•eustoria•3d ago•27 comments

We put Claude Code in Rollercoaster Tycoon

https://labs.ramp.com/rct
383•iamwil•5d ago•222 comments

If you put Apple icons in reverse it looks like someone getting good at design

https://mastodon.social/@heliographe_studio/115890819509545391
264•lateforwork•4h ago•135 comments

Raising money fucked me up

https://blog.yakkomajuri.com/blog/raising-money-fucked-me-up
164•yakkomajuri•9h ago•52 comments

The Olivetti Company

https://www.abortretry.fail/p/the-olivetti-company
144•rbanffy•6d ago•29 comments

Show HN: ChunkHound, a local-first tool for understanding large codebases

https://github.com/chunkhound/chunkhound
55•NadavBenItzhak•6h ago•11 comments

Light Mode InFFFFFFlation

https://willhbr.net/2025/10/20/light-mode-infffffflation/
160•Fudgel•5h ago•122 comments

Below the Surface: Archeological Finds from the Amsterdam Noord/Zuid Metro Line

https://belowthesurface.amsterdam/en/vondsten
67•stefanvdw1•6d ago•9 comments

An Elizabethan mansion's secrets for staying warm

https://www.bbc.com/future/article/20260116-an-elizabethan-mansions-secrets-for-staying-warm
123•Tachyooon•10h ago•143 comments

IRISC: An ARMv7 assembly interpreter and computer architecture simulator

https://polysoftit.co.uk/irisc-web/
17•rtybanana•3h ago•2 comments

How London cracked mobile phone coverage on the Underground

https://www.ianvisits.co.uk/articles/how-london-finally-cracked-mobile-phone-coverage-on-the-unde...
19•beardyw•4d ago•5 comments

The thing that brought me joy

https://www.stephenlewis.me/blog/the-thing-that-brought-me-joy/
74•monooso•9h ago•30 comments

M8SBC-486 (Homebrew 486 computer)

https://maniek86.xyz/projects/m8sbc_486.php
97•rasz•6d ago•8 comments

Show HN: Speed Miners – A tiny RTS resource mini-game

https://speedminers.fun/
11•nickponline•6h ago•0 comments

What twenty years of DevOps has failed to do

https://www.honeycomb.io/blog/you-had-one-job-why-twenty-years-of-devops-has-failed-to-do-it
45•mooreds•8h ago•91 comments

Counterfactual evaluation for recommendation systems

https://eugeneyan.com/writing/counterfactual-evaluation/
66•kurinikku•22h ago•5 comments

There's no single best way to store information

https://www.quantamagazine.org/why-theres-no-single-best-way-to-store-information-20260116/
80•7777777phil•11h ago•43 comments

The Resonant Computing Manifesto

https://resonantcomputing.org/
48•sinak•11h ago•17 comments

A New Era for FIRST LEGO League: Inspiring the Next Generation of Learners

https://community.firstinspires.org/new-era-first-lego-league-future-edition
12•jchin•5d ago•1 comments

Map To Poster – Create Art of your favourite city

https://github.com/originalankur/maptoposter
231•originalankur•17h ago•59 comments

The 600-year-old origins of the word 'hello'

https://www.bbc.com/culture/article/20260113-hello-hiya-aloha-what-our-greetings-reveal
93•1659447091•15h ago•64 comments

ClickHouse acquires Langfuse

https://langfuse.com/blog/joining-clickhouse
200•tin7in•18h ago•92 comments

The Dilbert Afterlife

https://www.astralcodexten.com/p/the-dilbert-afterlife
467•rendall•1d ago•307 comments

Common misunderstandings about large software companies

https://philipotoole.com/common-misunderstandings-about-large-software-companies/
79•otoolep•5d ago•41 comments

What are Tithe Maps (2021)

https://mapreading.co.uk/what-are-tithe-maps/
17•thomasjb•5d ago•2 comments

Show HN: Streaming gigabyte medical images from S3 without downloading them

https://github.com/PABannier/WSIStreamer
140•el_pa_b•19h ago•45 comments