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

Comments

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

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

Multiprocessing all the way!

emmelaich•9mo ago
(2021)

Good article!

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

Qwen3-Coder-Next

https://qwen.ai/blog?id=qwen3-coder-next
256•danielhanchen•2h ago•134 comments

Deno Sandbox

https://deno.com/blog/introducing-deno-sandbox
53•johnspurlock•45m ago•7 comments

I made 20 GDPR deletion requests. 12 were ignored

https://nikolak.com/gdpr-failure/
51•nikola-k•30m ago•16 comments

Agent Skills

https://agentskills.io/home
230•mooreds•4h ago•145 comments

Xcode 26.3 unlocks the power of agentic coding

https://www.apple.com/newsroom/2026/02/xcode-26-point-3-unlocks-the-power-of-agentic-coding/
18•davidbarker•14m ago•8 comments

Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust

https://github.com/j178/prek
64•fortuitous-frog•1h ago•36 comments

France dumps Zoom and Teams as Europe seeks digital autonomy from the US

https://apnews.com/article/europe-digital-sovereignty-big-tech-9f5388b68a0648514cebc8d92f682060
173•AareyBaba•1h ago•75 comments

What's up with all those equals signs anyway?

https://lars.ingebrigtsen.no/2026/02/02/whats-up-with-all-those-equals-signs-anyway/
472•todsacerdoti•8h ago•140 comments

Bunny Database

https://bunny.net/blog/meet-bunny-database-the-sql-service-that-just-works/
145•dabinat•6h ago•65 comments

Heritability of intrinsic human life span is about 50%

https://www.science.org/doi/10.1126/science.adz1187
82•XzetaU8•2d ago•53 comments

Defining Safe Hardware Design [pdf]

https://people.csail.mit.edu/rachit/files/pubs/safe-hdls.pdf
10•rachitnigam•1h ago•1 comments

Launch HN: Modelence (YC S25) – App Builder with TypeScript / MongoDB Framework

17•eduardpi•2h ago•4 comments

The Everdeck: A Universal Card System (2019)

https://thewrongtools.wordpress.com/2019/10/10/the-everdeck/
49•surprisetalk•6d ago•15 comments

Show HN: Octosphere, a tool to decentralise scientific publishing

https://octosphere.social/
8•crimsoneer•1h ago•5 comments

Show HN: Sandboxing untrusted code using WebAssembly

https://github.com/mavdol/capsule
35•mavdol04•3h ago•15 comments

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

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
217•GalaxySnail•13h ago•142 comments

Show HN: C discrete event SIM w stackful coroutines runs 45x faster than SimPy

https://github.com/ambonvik/cimba
9•ambonvik•2h ago•2 comments

X offices raided. French prosecutors investigate child abuse images & deepfakes

https://apnews.com/article/france-x-investigation-seach-elon-musk-1116be84d84201011219086ecfd4e0bc
68•labrador•2h ago•27 comments

Emerge Career (YC S22) is hiring a product designer

https://www.ycombinator.com/companies/emerge-career/jobs/omqT34S-founding-product-designer
1•gabesaruhashi•6h ago

221 Cannon Road Is Not for Sale

https://fredbenenson.com/blog/2026/02/03/221-cannon-is-not-for-sale/
7•mecredis•1h ago•0 comments

Visual Family Cosmos

https://rosano.ca/blog/visual-family-cosmos
5•akkartik•5d ago•0 comments

Migrate Wizard – IMAP Based Email Migration Tool

https://migratewizard.com/#features
6•techstuff123•58m ago•4 comments

Data Brokers Can Fuel Violence Against Public Servants

https://www.wired.com/story/how-data-brokers-can-fuel-violence-against-public-servants/
63•achristmascarl•2h ago•32 comments

Tadpole – A modular and extensible DSL built for web scraping

https://tadpolehq.com/
9•zachperkitny•1h ago•2 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/
262•geox•16h ago•195 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
521•trms•21h ago•208 comments

The next steps for Airbus' big bet on open rotor engines

https://aerospaceamerica.aiaa.org/the-next-steps-for-airbus-big-bet-on-open-rotor-engines/
15•CGMthrowaway•2h ago•10 comments

Show HN: Safe-now.live – Ultra-light emergency info site (<10KB)

https://safe-now.live
132•tinuviel•9h ago•59 comments

Athena Parthenos: A Reconstruction (2000)

http://www.goddess-athena.org/Museum/Sculptures/Alone/Parthenos_reconstruction_x.htm
11•joebig•4d ago•1 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/
308•gyrovague-com•2d ago•131 comments