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.

Cloud VM benchmarks 2026

https://devblog.ecuadors.net/cloud-vm-benchmarks-2026-performance-price-1i1m.html
133•dkechag•4h ago•61 comments

CasNum

https://github.com/0x0mer/CasNum
236•aebtebeten•8h ago•27 comments

"Warn about PyPy being unmaintained"

https://github.com/astral-sh/uv/pull/17643
48•networked•3h ago•10 comments

MonoGame: A .NET framework for making cross-platform games

https://github.com/MonoGame/MonoGame
24•azhenley•3h ago•6 comments

A decade of Docker containers

https://cacm.acm.org/research/a-decade-of-docker-containers/
265•zacwest•12h ago•188 comments

Emacs internals: Deconstructing Lisp_Object in C (Part 2)

https://thecloudlet.github.io/blog/project/emacs-02/
39•thecloudlet•2d ago•0 comments

Show HN: A weird thing that detects your pulse from the browser video

https://pulsefeedback.io/
45•kilroy123•3d ago•24 comments

Dumping Lego NXT firmware off of an existing brick (2025)

https://arcanenibble.github.io/dumping-lego-nxt-firmware-off-of-an-existing-brick.html
169•theblazehen•1d ago•11 comments

Yoghurt delivery women combatting loneliness in Japan

https://www.bbc.com/travel/article/20260302-the-yoghurt-delivery-women-combatting-loneliness-in-j...
230•ranit•16h ago•135 comments

Autoresearch: Agents researching on single-GPU nanochat training automatically

https://github.com/karpathy/autoresearch
77•simonpure•9h ago•21 comments

I don't know if my job will still exist in ten years

https://www.seangoedecke.com/will-my-job-still-exist/
38•nomdep•5h ago•5 comments

Best Performance of a C++ Singleton

https://andreasfertig.com/blog/2026/03/best-performance-of-a-cpp-singleton/
16•jandeboevrie•1d ago•4 comments

In 1985 Maxell built a bunch of life-size robots for its bad floppy ad

https://buttondown.com/suchbadtechads/archive/maxell-life-size-robots/
80•rfarley04•3d ago•9 comments

The surprising whimsy of the Time Zone Database

https://muddy.jprs.me/links/2026-03-06-the-surprising-whimsy-of-the-time-zone-database/
73•jprs•10h ago•12 comments

FLASH radiotherapy's bold approach to cancer treatment

https://spectrum.ieee.org/flash-radiotherapy
194•marc__1•13h ago•60 comments

macOS code injection for fun and no profit (2024)

https://mariozechner.at/posts/2024-07-20-macos-code-injection-fun/
84•jstrieb•3d ago•15 comments

The stagnancy of publishing and the disappearance of the midlist

https://www.honest-broker.com/p/the-day-ny-publishing-lost-its-soul
73•wallflower•8h ago•50 comments

Lisp-style C++ template meta programming

https://github.com/mistivia/lmp
33•mistivia•7h ago•1 comments

How important was the Battle of Hastings?

https://www.historytoday.com/archive/head-head/how-important-was-battle-hastings
18•benbreen•3d ago•18 comments

Overheads (2023)

https://blog.xoria.org/hidden-overheads/
16•surprisetalk•1d ago•2 comments

LLM Writing Tropes.md

https://tropes.fyi/tropes-md
134•walterbell•8h ago•50 comments

Compiling Prolog to Forth [pdf]

https://vfxforth.com/flag/jfar/vol4/no4/article4.pdf
103•PaulHoule•4d ago•9 comments

Re-creating the complex cuisine of prehistoric Europeans

https://arstechnica.com/science/2026/03/recreating-the-complex-cuisine-of-prehistoric-europeans/
71•apollinaire•1d ago•31 comments

The influence of anxiety: Harold Bloom and literary inheritance

https://thepointmag.com/examined-life/the-influence-of-anxiety/
22•apollinaire•3d ago•2 comments

SigNoz (YC W21) is hiring for engineering, growth and product roles

https://signoz.io/careers
1•pranay01•12h ago

Bourdieu's theory of taste: a grumbling abrégé (2023)

https://dynomight.net/bourdieu/
46•sebg•2d ago•15 comments

Ki Editor - an editor that operates on the AST

https://ki-editor.org/
387•ravenical•18h ago•137 comments

Put the zip code first

https://zipcodefirst.com
317•dsalzman•6h ago•230 comments

A Grand Vision for Rust

https://blog.yoshuawuyts.com/a-grand-vision-for-rust/
25•todsacerdoti•3d ago•10 comments

Files are the interface humans and agents interact with

https://madalitso.me/notes/why-everyone-is-talking-about-filesystems/
194•malgamves•18h ago•115 comments