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.

Floppinux – An Embedded Linux on a Single Floppy, 2025 Edition

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
24•GalaxySnail•41m ago•4 comments

How does misalignment scale with model intelligence and task complexity?

https://alignment.anthropic.com/2026/hot-mess-of-ai/
136•salkahfi•4h ago•35 comments

The Codex App

https://openai.com/index/introducing-the-codex-app/
584•meetpateltech•11h ago•398 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
299•trms•8h ago•76 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
177•bhouston•7h ago•54 comments

50 years ago, a young Bill Gates took on the 'software pirates'

https://thenewstack.io/50-years-ago-a-young-bill-gates-took-on-the-software-pirates/
10•MilnerRoute•1d ago•2 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
349•wodniok•11h ago•189 comments

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
583•g-mork•7h ago•1267 comments

The Connection Machine CM-1 "Feynman" T-shirt

https://tamikothiel.com/cm/cm-tshirt.html
58•tosh•3d ago•14 comments

See how many words you have written in Hacker News comments

https://serjaimelannister.github.io/hn-words/
25•Imustaskforhelp•3d ago•30 comments

The TSA's New $45 Fee to Fly Without ID Is Illegal

https://www.frommers.com/tips/airfare/the-tsa-new-45-fee-to-fly-without-id-is-illegal-says-regula...
312•donohoe•6h ago•325 comments

Ask HN: Who is hiring? (February 2026)

252•whoishiring•13h ago•313 comments

Carnegie Mellon Unversity Computer Club FTP Server

http://128.237.157.9/pub/
42•1vuio0pswjnm7•4d ago•10 comments

Archive.today is directing a DDoS attack against my blog?

https://gyrovague.com/2026/02/01/archive-today-is-directing-a-ddos-attack-against-my-blog/
70•gyrovague-com•2d ago•30 comments

Court orders restart of all US offshore wind power construction

https://arstechnica.com/science/2026/02/court-orders-restart-of-all-us-offshore-wind-construction/
285•ck2•6h ago•164 comments

Hacking Moltbook

https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
276•galnagli•13h ago•167 comments

4x faster network file sync with rclone (vs rsync) (2025)

https://www.jeffgeerling.com/blog/2025/4x-faster-network-file-sync-rclone-vs-rsync/
281•indigodaddy•4d ago•136 comments

Linux From Scratch ends SysVinit support

https://lists.linuxfromscratch.org/sympa/arc/lfs-announce/2026-02/msg00000.html
120•cf100clunk•11h ago•164 comments

G Lang – A lightweight interpreter written in D (2.4MB)

24•pouyathe•3d ago•5 comments

Banning lead in gas worked. The proof is in our hair

https://attheu.utah.edu/health-medicine/banning-lead-in-gas-worked-the-proof-is-in-our-hair/
65•geox•3h ago•8 comments

Joedb, the Journal-Only Embedded Database

https://www.joedb.org/index.html
58•mci•3d ago•8 comments

Training a trillion parameter model to be funny

https://jokegen.sdan.io/blog
32•sdan•6d ago•20 comments

Firefox Getting New Controls to Turn Off AI Features

https://www.macrumors.com/2026/02/02/firefox-ai-toggle/
130•stalfosknight•5h ago•52 comments

Julia

https://borretti.me/fiction/julia
76•ashergill•6h ago•10 comments

On being sane in insane places (1973) [pdf]

https://www.weber.edu/wsuimages/psychology/FacultySites/Horvat/OnBeingSaneInInsanePlaces.PDF
74•dbgrman•11h ago•47 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
228•yz-yu•16h ago•24 comments

Advancing AI Benchmarking with Game Arena

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/kaggle-game-arena-updates/
119•salkahfi•11h ago•50 comments

The largest number representable in 64 bits

https://tromp.github.io/blog/2026/01/28/largest-number-revised
96•tromp•10h ago•66 comments

Pretty soon, heat pumps will be able to store and distribute heat as needed

https://www.sintef.no/en/latest-news/2026/pretty-soon-heat-pumps-will-be-able-to-store-and-distri...
167•PaulHoule•1d ago•144 comments

GitHub discusses giving maintainers control to disable PRs

https://github.com/orgs/community/discussions/185387
87•aofeisheng•4h ago•18 comments