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

Comments

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

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

Multiprocessing all the way!

emmelaich•10mo ago
(2021)

Good article!

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

Apple releases iOS 15.8.7 to fix Coruna exploit for iPhone 6S from 2015

https://support.apple.com/en-us/126632
17•seam_carver•19m ago•2 comments

Temporal: A nine-year journey to fix time in JavaScript

https://bloomberg.github.io/js-blog/post/temporal/
514•robpalmer•10h ago•179 comments

Many SWE-bench-Passing PRs would not be merged

https://metr.org/notes/2026-03-10-many-swe-bench-passing-prs-would-not-be-merged-into-main/
130•mustaphah•4h ago•38 comments

Don't post generated/AI-edited comments. HN is for conversation between humans.

https://news.ycombinator.com/newsguidelines.html#generated
2721•usefulposter•6h ago•994 comments

Making WebAssembly a first-class language on the Web

https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/
400•mikece•20h ago•145 comments

Show HN: A context-aware permission guard for Claude Code

https://github.com/manuelschipper/nah/
24•schipperai•2h ago•19 comments

I was interviewed by an AI bot for a job

https://www.theverge.com/featured-video/892850/i-was-interviewed-by-an-ai-bot-for-a-job
141•speckx•7h ago•142 comments

Show HN: I built a tool that watches webpages and exposes changes as RSS

https://sitespy.app
164•vkuprin•9h ago•45 comments

Show HN: Autoresearch@home

https://www.ensue-network.ai/autoresearch
31•austinbaggio•2h ago•10 comments

Google closes deal to acquire Wiz

https://www.wiz.io/blog/google-closes-deal-to-acquire-wiz
228•aldarisbm•10h ago•154 comments

Show HN: s@: decentralized social networking over static sites

http://satproto.org/
10•remywang•1h ago•1 comments

The MacBook Neo

https://daringfireball.net/2026/03/the_macbook_neo
388•etothet•14h ago•670 comments

BitNet: 100B Param 1-Bit model for local CPUs

https://github.com/microsoft/BitNet
302•redm•13h ago•149 comments

CNN Explainer – Learn Convolutional Neural Network in Your Browser (2020)

https://poloclub.github.io/cnn-explainer/
20•vismit2000•3d ago•1 comments

Meticulous (YC S21) is hiring to redefine software dev

https://jobs.ashbyhq.com/meticulous/3197ae3d-bb26-4750-9ed7-b830f640515e
1•Gabriel_h•4h ago

Entities enabling scientific fraud at scale (2025)

https://doi.org/10.1073/pnas.2420092122
258•peyton•12h ago•187 comments

5,200 holes carved into a Peruvian mountain left by an ancient economy

https://newatlas.com/environment/5-200-holes-peruvian-mountain/
94•defrost•1d ago•49 comments

Tested: How Many Times Can a DVD±RW Be Rewritten? Methodology and Results

https://goughlui.com/2026/03/07/tested-how-many-times-can-a-dvd%C2%B1rw-be-rewritten-part-2-metho...
13•giuliomagnifico•3d ago•0 comments

Show HN: Klaus – OpenClaw on a VM, batteries included

https://klausai.com/
115•robthompson2018•9h ago•68 comments

Preliminary data from a longitudinal AI impact study

https://newsletter.getdx.com/p/ai-productivity-gains-are-10-not
31•donutshop•4h ago•20 comments

Against vibes: When is a generative model useful

https://www.williamjbowman.com/blog/2026/03/05/against-vibes-when-is-a-generative-model-useful/
42•takira•1d ago•4 comments

Personal Computer by Perplexity

https://www.perplexity.ai/personal-computer-waitlist
110•josephwegner•7h ago•97 comments

Atlassian to cut roughly 1,600 jobs in pivot to AI

https://www.reuters.com/technology/atlassian-lay-off-about-1600-people-pivot-ai-2026-03-11/
82•jp0d•3h ago•112 comments

Swiss e-voting pilot can't count 2,048 ballots after decryption failure

https://www.theregister.com/2026/03/11/swiss_evote_usb_snafu/
155•jjgreen•12h ago•350 comments

How we hacked McKinsey's AI platform

https://codewall.ai/blog/how-we-hacked-mckinseys-ai-platform
390•mycroft_4221•15h ago•163 comments

Physicist Astrid Eichhorn is a leader in the field of asymptotic safety

https://www.quantamagazine.org/where-some-see-strings-she-sees-a-space-time-made-of-fractals-2026...
111•tzury•9h ago•16 comments

Britain is ejecting hereditary nobles from Parliament after 700 years

https://apnews.com/article/uk-house-of-lords-hereditary-peers-expelled-535df8781dd01e8970acda1dca...
161•divbzero•4h ago•150 comments

Show HN: Open-source browser for AI agents

https://github.com/theredsix/agent-browser-protocol
106•theredsix•11h ago•34 comments

Launch HN: Prism (YC X25) – Workspace and API to generate and edit videos

https://www.prismvideos.com
34•aliu327•9h ago•16 comments

Building a TB-303 from Scratch

https://loopmaster.xyz/tutorials/tb303-from-scratch
211•stagas•4d ago•87 comments