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.

Anthropic's original take home assignment open sourced

https://github.com/anthropics/original_performance_takehome
103•myahio•2h ago•27 comments

Disaster planning for regular folks (2015)

https://lcamtuf.coredump.cx/prep/index-old.shtml
70•AlphaWeaver•2h ago•36 comments

A 26,000-year astronomical monument hidden in plain sight (2019)

https://longnow.org/ideas/the-26000-year-astronomical-monument-hidden-in-plain-sight/
415•mkmk•11h ago•89 comments

Libbbf: Bound Book Format, A high-performance container for comics and manga

https://github.com/ef1500/libbbf
12•zdw•1h ago•0 comments

Are arrays functions?

https://futhark-lang.org/blog/2026-01-16-are-arrays-functions.html
93•todsacerdoti•1d ago•51 comments

California is free of drought for the first time in 25 years

https://www.latimes.com/california/story/2026-01-09/california-has-no-areas-of-dryness-first-time...
322•thnaks•7h ago•162 comments

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

https://github.com/mastra-ai/mastra
132•calcsam•13h ago•42 comments

Instabridge has acquired Nova Launcher

https://novalauncher.com/nova-is-here-to-stay
165•KORraN•10h ago•110 comments

Which AI Lies Best? A game theory classic designed by John Nash

https://so-long-sucker.vercel.app/
87•lout332•7h ago•42 comments

The Unix Pipe Card Game

https://punkx.org/unix-pipe-game/
197•kykeonaut•12h ago•65 comments

Provably unmasking malicious behavior through execution traces

https://arxiv.org/abs/2512.13821
34•PaulHoule•7h ago•4 comments

Unconventional PostgreSQL Optimizations

https://hakibenita.com/postgresql-unconventional-optimizations
302•haki•15h ago•47 comments

The GDB JIT Interface

https://bernsteinbear.com/blog/gdb-jit/
8•surprisetalk•4d ago•2 comments

Who owns Rudolph's nose?

https://creativelawcenter.com/copyright-rudolph-reindeer/
26•ohjeez•5h ago•11 comments

The challenges of soft delete

https://atlas9.dev/blog/soft-delete.html
114•buchanae•8h ago•71 comments

IPv6 is not insecure because it lacks a NAT

https://www.johnmaguire.me/blog/ipv6-is-not-insecure-because-it-lacks-nat/
87•johnmaguire•10h ago•112 comments

Our approach to age prediction

https://openai.com/index/our-approach-to-age-prediction/
82•pretext•10h ago•151 comments

Verizon starts requiring 365 days of paid service before it will unlock phones

https://arstechnica.com/tech-policy/2026/01/verizon-starts-requiring-365-days-of-paid-service-bef...
79•voxadam•4h ago•61 comments

Proof of Concept to Test Humanoid Robots

https://thehumanoid.ai/humanoid-and-siemens-completed-a-proof-of-concept-to-test-humanoidrobots-i...
10•0xedb•5d ago•6 comments

Lunar Radio Telescope to Unlock Cosmic Mysteries

https://spectrum.ieee.org/lunar-radio-telescope
27•rbanffy•7h ago•1 comments

The life of a playboy publisher who shaped 20th-century literature

https://www.washingtonpost.com/books/2026/01/09/bennett-cerf-biography-nothing-random-feldman-boo...
11•benbreen•3d ago•1 comments

Apples, Trees, and Quasimodes

https://systemstack.dev/2025/09/humane-computing/
40•entaloneralie•3d ago•3 comments

Building Robust Helm Charts

https://www.willmunn.xyz/devops/helm/kubernetes/2026/01/17/building-robust-helm-charts.html
50•will_munn•1d ago•0 comments

Maintenance: Of Everything, Part One

https://press.stripe.com/maintenance-part-one
90•mitchbob•10h ago•17 comments

Show HN: Agent Skills Leaderboard

https://skills.sh
55•andrewqu•8h ago•18 comments

IP Addresses Through 2025

https://www.potaroo.net/ispcol/2026-01/addr2025.html
170•petercooper•15h ago•129 comments

Show HN: Aventos – An experiment in cheap AI SEO

https://www.aventos.dev/
14•JimsonYang•5d ago•8 comments

Fast Concordance: Instant concordance on a corpus of >1,200 books

https://iafisher.com/concordance/
41•evakhoury•4d ago•3 comments

Show HN: TopicRadar – Track trending topics across HN, GitHub, ArXiv, and more

https://apify.com/mick-johnson/topic-radar
23•MickolasJae•15h ago•4 comments

Ask HN: Do you have any evidence that agentic coding works?

141•terabytest•17h ago•136 comments