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.

Email is tough: Major European Payment Processor's Emails aren't RFC-Compliant

https://atha.io/blog/2026-02-12-viva
64•thatha7777•33m ago•17 comments

Improving 15 LLMs at Coding in One Afternoon. Only the Harness Changed

http://blog.can.ac/2026/02/12/the-harness-problem/
86•kachapopopow•1h ago•35 comments

The "Crown of Nobles" Noble Gas Tube Display (2024)

https://theshamblog.com/the-crown-of-nobles-noble-gas-tube-display/
76•Ivoah•2h ago•7 comments

The Future for Tyr, a Rust GPU Driver for Arm Mali Hardware

https://lwn.net/Articles/1055590/
19•todsacerdoti•41m ago•2 comments

Warcraft III Peon Voice Notifications for Claude Code

https://github.com/tonyyont/peon-ping
666•doppp•9h ago•217 comments

Discord/Twitch/Snapchat age verification bypass

https://age-verifier.kibty.town/
851•JustSkyfall•16h ago•387 comments

The missing digit of Stela C

https://johncarlosbaez.wordpress.com/2026/02/12/stela-c/
68•chmaynard•6h ago•12 comments

Apple patches decade-old iOS zero-day, possibly exploited by commercial spyware

https://www.theregister.com/2026/02/12/apple_ios_263/
21•beardyw•42m ago•6 comments

AI agent opens a PR write a blogpost to shames the maintainer who closes it

https://github.com/matplotlib/matplotlib/pull/31132
473•wrxd•3h ago•417 comments

“Nothing” is the secret to structuring your work

https://www.vangemert.dev/blog/nothing
371•spmvg•4d ago•137 comments

GLM-5: Targeting complex systems engineering and long-horizon agentic tasks

https://z.ai/blog/glm-5
435•CuriouslyC•1d ago•495 comments

Using an engineering notebook

https://ntietz.com/blog/using-an-engineering-notebook/
253•evakhoury•2d ago•96 comments

Fluorite – A console-grade game engine fully integrated with Flutter

https://fluorite.game/
506•bsimpson•22h ago•282 comments

Carl Sagan's Baloney Detection Kit: Tools for Thinking Critically (2025)

https://www.openculture.com/2025/09/the-carl-sagan-baloney-detection-kit.html
45•nobody9999•8h ago•25 comments

Ireland rolls out basic income scheme for artists

https://www.reuters.com/world/ireland-rolls-out-pioneering-basic-income-scheme-artists-2026-02-10/
402•abe94•22h ago•503 comments

How to make a living as an artist

https://essays.fnnch.com/make-a-living
159•gwintrob•11h ago•76 comments

Byte magazine artist Robert Tinney, who illustrated the birth of PCs, dies at 78

https://arstechnica.com/gadgets/2026/02/byte-magazine-artist-robert-tinney-who-illustrated-the-bi...
57•rbanffy•3h ago•8 comments

HeyWhatsThat

https://www.heywhatsthat.com/faq.html
81•1970-01-01•3d ago•19 comments

Text classification with Python 3.14's ZSTD module

https://maxhalford.github.io/blog/text-classification-zstd/
236•alexmolas•3d ago•51 comments

Hologram v0.7.0: Milestone release for Elixir-to-JavaScript porting initiative

https://hologram.page/blog/porting-initiative-delivers-hologram-v0-7-0
75•bartblast•15h ago•18 comments

RISC-V Vector Primer

https://github.com/simplex-micro/riscv-vector-primer/blob/main/index.md
51•oxxoxoxooo•5d ago•15 comments

Show HN: Geo Racers – Race from London to Tokyo on a single bus pass

https://geo-racers.com/
25•pattle•4h ago•24 comments

NetNewsWire Turns 23

https://netnewswire.blog/2026/02/11/netnewswire-turns.html
309•robin_reala•20h ago•84 comments

Kanchipuram Saris and Thinking Machines

https://altermag.com/articles/kanchipuram-saris-and-thinking-machines
187•trojanalert•5d ago•38 comments

Reports of Telnet's death have been greatly exaggerated

https://www.terracenetworks.com/blog/2026-02-11-telnet-routing
138•ericpauley•18h ago•54 comments

WiFi could become an invisible mass surveillance system

https://scitechdaily.com/researchers-warn-wifi-could-become-an-invisible-mass-surveillance-system/
414•mgh2•5d ago•175 comments

Clay Christensen's Milkshake Marketing (2011)

https://www.library.hbs.edu/working-knowledge/clay-christensens-milkshake-marketing
28•vismit2000•4d ago•18 comments

America's Cyber Defense Agency Is Burning Down and Nobody's Coming to Put It Out

https://www.threathunter.ai/blog/americas-cyber-defense-agency-burning-down/
114•bourbonsec•2h ago•98 comments

Lance table format explained with simple animations

https://tontinton.com/posts/lance/
19•wild_pointer•3d ago•2 comments

The other Markov's inequality

https://www.ethanepperly.com/index.php/2026/01/16/the-other-markovs-inequality/
46•tzury•4d ago•4 comments