frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Await Is Not a Context Switch: Understanding Python's Coroutines vs. Tasks

https://mergify.com/blog/await-is-not-a-context-switch-understanding-python-s-coroutines-vs-tasks
17•remyduthu•45m ago

Comments

oersted•10m ago
Just to note the it's the same in Rust with tokio::spawn (and alternatives).
vamega•5m ago
The article’s understanding of Java’s Virtual Threads is incorrect. Virtual threads have a preemptive concurrency model, not a co-operative one, so suspension points are not only at calls to things like Future.get()
pandaxtc•5m ago
Sorry if I've got this wrong, but wouldn't the first example behave the same way in Javascript as well? The function parent() "awaits" the completion of child(), so it wouldn't be possible to interleave the print statements.

The example from this StackOverflow question might be a better demonstration: https://stackoverflow.com/q/69958618

reactordev•5m ago
This is gold.

Here’s a horror story for you.

A few years ago I worked for this startup as a principal engineer. The engineering manager kept touting how he was from XYZ and that he ran Pythonista meetups and how vast his knowledge of Python was. We were building a security product and needed to scan hundreds of thousands of documents quickly so we built a fan out with coroutines. I came on board well into this effort to assist in adding another adapter to this other platform that worked similarly. After seeing all the coroutines, being pickled and stored in S3, so that nodes could “resume” if they crashed yet - not a single create_task was present. All of this awaiting, pickling, attempting to resume, check, stuff, report, pickle, happened synchronously.

When trying to point out the issue with the architecture and getting into a shouting match with Mr. Ego, I was let go.

Await Is Not a Context Switch: Understanding Python's Coroutines vs. Tasks

https://mergify.com/blog/await-is-not-a-context-switch-understanding-python-s-coroutines-vs-tasks
20•remyduthu•45m ago•8 comments

Statistical Process Control in Python

https://timothyfraser.com/sigma/statistical-process-control-in-python.html
58•lifeisstillgood•3h ago•1 comments

I don't care how well your "AI" works

https://fokus.cool/2025/11/25/i-dont-care-how-well-your-ai-works.html
60•todsacerdoti•1h ago•38 comments

Show HN: KiDoom – Running DOOM on PCB Traces

https://www.mikeayles.com/#kidoom
260•mikeayles•13h ago•32 comments

Image Diffusion Models Exhibit Emergent Temporal Propagation in Videos

https://arxiv.org/abs/2511.19936
31•50kIters•3h ago•4 comments

Surprisingly, Emacs on Android is pretty good

https://kristofferbalintona.me/posts/202505291438/
145•harryday•3d ago•68 comments

Copyparty, the FOSS file server [video]

https://www.youtube.com/watch?v=15_-hgsX2V0
88•franczesko•6d ago•15 comments

Space Truckin' – The Nostromo (2012)

https://alienseries.wordpress.com/2012/10/23/space-truckin-the-nostromo/
97•exvi•9h ago•46 comments

A new bridge links the math of infinity to computer science

https://www.quantamagazine.org/a-new-bridge-links-the-strange-math-of-infinity-to-computer-scienc...
195•digital55•15h ago•92 comments

Trillions spent and big software projects are still failing

https://spectrum.ieee.org/it-management-software-failures
474•pseudolus•23h ago•408 comments

Show HN: We built an open source, zero webhooks payment processor

https://github.com/flowglad/flowglad
319•agreeahmed•18h ago•181 comments

Downsampling: Largest-Triangle-Three-Buckets and the Fourier Transform

https://daniel.mitterdorfer.name/posts/2024-01-30-downsampling-lttb-and-fft/
7•wonger_•4d ago•0 comments

CS234: Reinforcement Learning Winter 2025

https://web.stanford.edu/class/cs234/
123•jonbaer•11h ago•17 comments

1,700-year-old Roman sarcophagus is unearthed in Budapest

https://apnews.com/article/hungary-roman-sarcophagus-discovery-budapest-77a41fe190bbcc167b43d0514...
80•gmays•1d ago•42 comments

How to repurpose your old phone into a web server

https://far.computer/how-to/
250•louismerlin•3d ago•95 comments

Launch HN: Onyx (YC W24) – Open-source chat UI

201•Weves•21h ago•138 comments

FLUX.2: Frontier Visual Intelligence

https://bfl.ai/blog/flux-2
318•meetpateltech•19h ago•90 comments

New layouts with CSS Subgrid

https://www.joshwcomeau.com/css/subgrid/
227•joshwcomeau•19h ago•65 comments

Java Decompiler

http://java-decompiler.github.io
77•mooreds•3d ago•32 comments

BebboSSH: SSH2 implementation for Amiga systems (68000, GPLv3)

https://franke.ms/git/bebbo/bebbossh
43•snvzz•9h ago•10 comments

Python is not a great language for data science

https://blog.genesmindsmachines.com/p/python-is-not-a-great-language-for
253•speckx•19h ago•242 comments

Google Antigravity exfiltrates data via indirect prompt injection attack

https://www.promptarmor.com/resources/google-antigravity-exfiltrates-data
681•jjmaxwell4•17h ago•183 comments

Ilya Sutskever: We're moving from the age of scaling to the age of research

https://www.dwarkesh.com/p/ilya-sutskever-2
328•piotrgrabowski•18h ago•270 comments

Constant-time support coming to LLVM: Protecting cryptographic code

https://blog.trailofbits.com/2025/11/25/constant-time-support-coming-to-llvm-protecting-cryptogra...
89•ahlCVA•22h ago•33 comments

Someone at YouTube Needs Glasses: The Prophecy Has Been Fulfilled

https://jayd.ml/2025/11/10/someone-at-youtube-needs-glasses-prophecy-fulfilled.html
710•jaydenmilne•13h ago•475 comments

Pitch Multiplication (2017)

https://klangnewmusic.weebly.com/direct-sound/pitch-multiplication
11•ofalkaed•3d ago•0 comments

The fall of Labubus and the mush of modern internet trends

https://www.michigandaily.com/arts/digital-culture/the-fall-of-labubus-and-the-mush-of-modern-int...
88•gnabgib•2d ago•131 comments

The Bughouse Effect

https://tsvibt.blogspot.com/2025/11/the-bughouse-effect.html
41•surprisetalk•16h ago•9 comments

Unifying our mobile and desktop domains

https://techblog.wikimedia.org/2025/11/21/unifying-mobile-and-desktop-domains/
160•todsacerdoti•18h ago•42 comments

Marble Springs (1993)

https://www.eastgate.com/MS/Title_184.html
28•prismatic•6d ago•3 comments