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.

East Germany balloon escape

https://en.wikipedia.org/wiki/East_Germany_balloon_escape
328•robertvc•9h ago•112 comments

Cloudflare acquires Astro

https://astro.build/blog/joining-cloudflare/
719•todotask2•11h ago•330 comments

Releasing rainbow tables to accelerate Net-NTLMv1 protocol deprecation

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
84•linolevan•4h ago•47 comments

LLM Structured Outputs Handbook

https://nanonets.com/cookbooks/structured-llm-outputs
123•vitaelabitur•1d ago•24 comments

6-Day and IP Address Certificates Are Generally Available

https://letsencrypt.org/2026/01/15/6day-and-ip-general-availability
346•jaas•10h ago•206 comments

Cursor's latest “browser experiment” implied success without evidence

https://embedding-shapes.github.io/cursor-implied-success-without-evidence/
413•embedding-shape•11h ago•172 comments

Michelangelo's first painting, created when he was 12 or 13

https://www.openculture.com/2026/01/discover-michelangelos-first-painting.html
310•bookofjoe•12h ago•159 comments

FLUX.2 [Klein]: Towards Interactive Visual Intelligence

https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence
27•GaggiX•2h ago•2 comments

Just the Browser

https://justthebrowser.com/
498•cl3misch•14h ago•237 comments

High-Level Is the Goal

https://bvisness.me/high-level/
13•tobr•1d ago•1 comments

Dell UltraSharp 52 Thunderbolt Hub Monitor

https://www.dell.com/en-us/shop/dell-ultrasharp-52-thunderbolt-hub-monitor-u5226kw/apd/210-bthw/m...
141•cebert•9h ago•187 comments

Lock-Picking Robot

https://github.com/etinaude/Lock-Picking-Robot
267•p44v9n•4d ago•120 comments

Patching the Wii News Channel to serve local news (2025)

https://raulnegron.me/2025/wii-news-pr/
55•todsacerdoti•13h ago•15 comments

STFU

https://github.com/Pankajtanwarbanna/stfu
650•tanelpoder•8h ago•438 comments

Reading across books with Claude Code

https://pieterma.es/syntopic-reading-claude/
65•gmays•7h ago•19 comments

Elasticsearch was never a database

https://www.paradedb.com/blog/elasticsearch-was-never-a-database
108•jamesgresql•5d ago•79 comments

Why DuckDB is my first choice for data processing

https://www.robinlinacre.com/recommend_duckdb/
219•tosh•15h ago•81 comments

Install.md: A standard for LLM-executable installation

https://www.mintlify.com/blog/install-md-standard-for-llm-executable-installation
37•npmipg•4h ago•59 comments

HTTP RateLimit Headers

https://dotat.at/@/2026-01-13-http-ratelimit.html
29•zdw•2d ago•11 comments

Slop is everywhere for those with eyes to see

https://www.fromjason.xyz/p/notebook/slop-is-everywhere-for-those-with-eyes-to-see/
206•speckx•6h ago•102 comments

Keifu – A TUI for navigating commit graphs with color and clarity

https://github.com/trasta298/keifu
8•indigodaddy•1h ago•1 comments

Emoji Use in the Electronic Health Record is Increasing

https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2843883
54•giuliomagnifico•8h ago•49 comments

An Ode to the Return of Wysiwyg

https://jeffverkoeyen.com/blog/2026/01/13/WYSIWYG/
18•featherless•3d ago•14 comments

Launch HN: Indy (YC S21) – A support app designed for ADHD brains

https://www.shimmer.care/indy-redirect
66•christalwang•10h ago•75 comments

Zep AI (Agent Context Engineering, YC W24) Is Hiring Forward Deployed Engineers

https://www.ycombinator.com/companies/zep-ai/jobs/
1•roseway4•9h ago

Show HN: B-IR – An LLM-optimized programming language

https://github.com/ImJasonH/ImJasonH/blob/main/articles/llm-programming-language.md
54•ImJasonH•4d ago•37 comments

Dev-owned testing: Why it fails in practice and succeeds in theory

https://dl.acm.org/doi/10.1145/3780063.3780066
107•rbanffy•12h ago•140 comments

Re: Mix: open-source repairable blender

https://github.com/openfunkHQ/reMix
10•rishikeshs•3h ago•3 comments

Read_once(), Write_once(), but Not for Rust

https://lwn.net/SubscriberLink/1053142/8ec93e58d5d3cc06/
111•todsacerdoti•11h ago•34 comments

Show HN: 1Code – Open-source Cursor-like UI for Claude Code

https://github.com/21st-dev/1code
54•Bunas•1d ago•31 comments