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.

Sizing chaos

https://pudding.cool/2026/02/womens-sizing/
403•zdw•8h ago•212 comments

27-year-old Apple iBooks can connect to Wi-Fi and download official updates

https://old.reddit.com/r/MacOS/comments/1r8900z/macos_which_officially_supports_27_year_old/
250•surprisetalk•8h ago•123 comments

Anthropic officially bans using subscription auth for third party use

https://code.claude.com/docs/en/legal-and-compliance
162•theahura•2h ago•179 comments

15 years of FP64 segmentation, and why the Blackwell Ultra breaks the pattern

https://nicolasdickenmann.com/blog/the-great-fp64-divide.html
62•fp64enjoyer•3h ago•16 comments

Cosmologically Unique IDs

https://jasonfantl.com/posts/Universal-Unique-IDs/
323•jfantl•10h ago•103 comments

How to Choose Between Hindley-Milner and Bidirectional Typing

https://thunderseethe.dev/posts/how-to-choose-between-hm-and-bidir/
62•thunderseethe•3d ago•8 comments

Tailscale Peer Relays is now generally available

https://tailscale.com/blog/peer-relays-ga
364•sz4kerto•12h ago•185 comments

How AI is affecting productivity and jobs in Europe

https://cepr.org/voxeu/columns/how-ai-affecting-productivity-and-jobs-europe
48•pseudolus•5h ago•17 comments

Zero-day CSS: CVE-2026-2441 exists in the wild

https://chromereleases.googleblog.com/2026/02/stable-channel-update-for-desktop_13.html
293•idoxer•13h ago•148 comments

Minecraft Java is switching from OpenGL to Vulkan

https://www.gamingonlinux.com/2026/02/minecraft-java-is-switching-from-opengl-to-vulkan-for-the-v...
126•tuananh•3h ago•33 comments

A Pokémon of a Different Color

https://matthew.verive.me/blog/color/
79•Risse•3d ago•8 comments

DNS-Persist-01: A New Model for DNS-Based Challenge Validation

https://letsencrypt.org/2026/02/18/dns-persist-01.html
232•todsacerdoti•11h ago•107 comments

Step 3.5 Flash: Fast Enough to Think. Reliable Enough to Act

https://static.stepfun.com/blog/step-3.5-flash/
22•kristianp•2h ago•6 comments

Electrobun v1: Build fast, tiny, and cross-platform desktop apps with TypeScript

https://blackboard.sh/blog/electrobun-v1/
35•merlindru•1h ago•8 comments

The Perils of ISBN

https://rygoldstein.com/posts/perils-of-isbn
105•evakhoury•11h ago•52 comments

Making a font with ligatures to display thirteenth-century monk numerals

https://digitalseams.com/blog/making-a-font-with-9999-ligatures-to-display-thirteenth-century-mon...
68•a7b3fa•3d ago•8 comments

R3forth: A concatenative language derived from ColorForth

https://github.com/phreda4/r3/blob/main/doc/r3forth_tutorial.md
70•tosh•10h ago•10 comments

What Every Experimenter Must Know About Randomization

https://spawn-queue.acm.org/doi/pdf/10.1145/3778029
65•underscoreF•10h ago•31 comments

Show HN: Rebrain.gg – Doom learn, don't doom scroll

64•FailMore•17h ago•25 comments

Show HN: Respectlytics – Open-source, privacy-first mobile analytics (MIT+AGPL)

https://github.com/respectlytics/respectlytics
12•cesncn•3d ago•1 comments

Learning Lean: Part 1

https://rkirov.github.io/posts/lean1/
99•vinhnx•3d ago•11 comments

Metriport (YC S22) is hiring a security engineer to harden healthcare infra

https://www.ycombinator.com/companies/metriport/jobs/XC2AF8s-senior-security-engineer
1•dgoncharov•8h ago

Microsoft guide to pirating Harry Potter for LLM training (2024) [removed]

https://devblogs.microsoft.com/azure-sql/langchain-with-sqlvectorstore-example/
240•anonymous908213•6h ago•144 comments

Closing this as we are no longer pursuing Swift adoption

https://github.com/LadybirdBrowser/ladybird/issues/933
247•thewavelength•6h ago•190 comments

Ukranian controls Home Assistant over LoRa radio when their power grid goes down

https://old.reddit.com/r/homeassistant/comments/1r8ftc0/i_control_my_home_assistant_over_lora_rad...
16•switz•1h ago•4 comments

Roads to Rome (2015)

https://benedikt-gross.de/projects/roads-to-rome/
20•robin_reala•3d ago•3 comments

All Look Same?

https://alllooksame.com/
51•mirawelner•6h ago•39 comments

Portugal: The First Global Empire (2015)

https://www.historytoday.com/archive/first-global-empire
68•Thevet•21h ago•55 comments

Show HN: I built a fuse box for microservices

https://www.openfuse.io
5•rodrigorcs•15h ago•1 comments

Cistercian Numbers

https://www.omniglot.com/language/numbers/cistercian-numbers.htm
75•debo_•12h ago•14 comments