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

Comments

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

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

Multiprocessing all the way!

emmelaich•6mo ago
(2021)

Good article!

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

Pebble Watch software is now 100% open source

https://ericmigi.com/blog/pebble-watch-software-is-now-100percent-open-source
422•Larrikin•3h ago•82 comments

Claude Advanced Tool Use

https://www.anthropic.com/engineering/advanced-tool-use
150•lebovic•2h ago•62 comments

Claude Opus 4.5

https://www.anthropic.com/news/claude-opus-4-5
556•adocomplete•3h ago•236 comments

TSMC Arizona Outage Saw Fab Halt, Apple Wafers Scrapped

https://www.culpium.com/p/tsmc-arizona-outage-saw-fab-halt
101•speckx•3h ago•45 comments

Shai-Hulud Returns: Over 300 NPM Packages Infected

https://helixguard.ai/blog/malicious-sha1hulud-2025-11-24
752•mrdosija•11h ago•649 comments

Cool-retro-term: terminal emulator which mimics look and feel of the old CRTs

https://github.com/Swordfish90/cool-retro-term
105•michalpleban•4h ago•48 comments

Three Years from GPT-3 to Gemini 3

https://www.oneusefulthing.org/p/three-years-from-gpt-3-to-gemini
93•JumpCrisscross•1d ago•50 comments

The Bitter Lesson of LLM Extensions

https://www.sawyerhood.com/blog/llm-extension
57•sawyerjhood•3h ago•19 comments

Moving from OpenBSD to FreeBSD for firewalls

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/OpenBSDToFreeBSDMove
105•zdw•5d ago•50 comments

Show HN: I built an interactive HN Simulator

https://news.ysimulator.run/news
63•johnsillings•4h ago•34 comments

Mind-reading devices can now predict preconscious thoughts

https://www.nature.com/articles/d41586-025-03714-0
80•srameshc•3h ago•57 comments

PS5 now costs less than 64GB of DDR5 memory. RAM jumps to $600 due to shortage

https://www.tomshardware.com/pc-components/ddr5/64gb-of-ddr5-memory-now-costs-more-than-an-entire...
129•speckx•2h ago•86 comments

You can see a working Quantum Computer in IBM's London office

https://www.ianvisits.co.uk/articles/you-can-see-a-working-quantum-computer-in-ibms-london-office...
10•thinkingemote•2d ago•2 comments

Inside Rust's std and parking_lot mutexes – who wins?

https://blog.cuongle.dev/p/inside-rusts-std-and-parking-lot-mutexes-who-win
113•signa11•4d ago•42 comments

Chrome Jpegxl Issue Reopened

https://issues.chromium.org/issues/40168998
186•markdog12•9h ago•72 comments

Corvus Robotics (YC S18): Hiring Head of Mfg/Ops, Next Door to YC Mountain View

1•robot_jackie•4h ago

NSA and IETF, part 3: Dodging the issues at hand

https://blog.cr.yp.to/20251123-dodging.html
277•upofadown•9h ago•142 comments

The history of Indian science fiction

https://altermag.com/articles/the-secret-history-of-indian-science-fiction
38•adityaathalye•2d ago•2 comments

Implications of AI to schools

https://twitter.com/karpathy/status/1993010584175141038
100•bilsbie•4h ago•104 comments

Launch HN: Karumi (YC F25) – Personalized, agentic product demos

http://karumi.ai/
14•tonilopezmr•3h ago•8 comments

GrapheneOS migrates server infrastructure from France

https://www.privacyguides.org/news/2025/11/22/grapheneos-migrates-server-infrastructure-from-fran...
125•01-_-•3h ago•46 comments

The Arithmetic of Braids (2022)

https://mathcenter.oxford.emory.edu/site/math108/braid_arithmetic/
19•marysminefnuf•15h ago•4 comments

What OpenAI did when ChatGPT users lost touch with reality

https://www.nytimes.com/2025/11/23/technology/openai-chatgpt-users-risks.html
36•nonprofiteer•15h ago•35 comments

Show HN: Search London StreetView panoramas by text

https://london.publicinsights.uk
31•dfworks•4d ago•13 comments

The only GM EV1 ever publicly sold

https://www.theautopian.com/how-the-only-gm-ev1-ever-sold-didnt-get-crushed-and-where-its-going-now/
71•zdw•5d ago•59 comments

We stopped roadmap work for a week and fixed bugs

https://lalitm.com/fixits-are-good-for-the-soul/
232•lalitmaganti•1d ago•300 comments

Is your Android TV streaming box part of a botnet?

https://krebsonsecurity.com/2025/11/is-your-android-tv-streaming-box-part-of-a-botnet/
64•todsacerdoti•3h ago•27 comments

Serflings is a remake of The Settlers 1

https://www.simpleguide.net/serflings.xhtml
137•doener•2d ago•42 comments

Disney Lost Roger Rabbit

https://pluralistic.net/2025/11/18/im-not-bad/
468•leephillips•6d ago•221 comments

Historically Accurate Airport Dioramas by AV Pro Designs

https://www.core77.com/posts/138995/Historically-Accurate-Airport-Dioramas-by-AV-Pro-Designs
42•surprisetalk•4d ago•10 comments