frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

How to Turn Anything into a Router

https://nbailey.ca/post/router/
183•yabones•2h ago•72 comments

Parrots pack twice as many neurons as primate brains of the same mass

https://www.dhanishsemar.com/writing/bird-brains
123•DiffTheEnder•2h ago•63 comments

72% of the dollar's purchasing power was destroyed in just four episodes

https://eco3min.fr/en/us-inflation-is-not-linear/
19•latentframe•53m ago•2 comments

Mathematical methods and human thought in the age of AI

https://arxiv.org/abs/2603.26524
115•zaikunzhang•4h ago•38 comments

Build123d: A Python CAD programming library

https://github.com/gumyr/build123d
13•Ivoah•18h ago•2 comments

The curious case of retro demo scene graphics

https://www.datagubbe.se/aipixels/
292•zdw•10h ago•71 comments

ChatGPT won't let you type until Cloudflare reads your React state

https://www.buchodi.com/chatgpt-wont-let-you-type-until-cloudflare-reads-your-react-state-i-decry...
850•alberto-m•19h ago•550 comments

I use excalidraw to manage my diagrams for my blog

https://blog.lysk.tech/excalidraw-frame-export/
185•mlysk•8h ago•83 comments

In Math, Rigor Is Vital. But Are Digitized Proofs Taking It Too Far?

https://www.quantamagazine.org/in-math-rigor-is-vital-but-are-digitized-proofs-taking-it-too-far-...
30•isaacfrond•4d ago•20 comments

"Over 1.5 million GitHub PRs have had ads injected into them by Copilot"

https://www.neowin.net/news/microsoft-copilot-is-now-injecting-ads-into-pull-requests-on-github-g...
57•bundie•43m ago•26 comments

Ghostmoon.app – The Swiss Army Knife for your macOS menu bar

https://www.mgrunwald.com/ghostmoon/
121•mgrunwald_•4h ago•90 comments

The coming PLG to SLG apocalypse

https://www.withsahel.com/blog/plg-to-enterprise-timeline-compression
14•iajiboye•4d ago•5 comments

Hamilton-Jacobi-Bellman Equation: Reinforcement Learning and Diffusion Models

https://dani2442.github.io/posts/continuous-rl/
103•sebzuddas•8h ago•28 comments

Spring Boot Done Right: Lessons from a 400-Module Codebase

https://medium.com/all-things-software/spring-boot-done-right-lessons-from-a-400-module-codebase-...
48•dknj•3d ago•36 comments

Comprehensive C++ Hashmap Benchmarks (2022)

https://martin.ankerl.com/2022/08/27/hashmap-bench-01/
36•klaussilveira•5d ago•11 comments

Voyager 1 runs on 69 KB of memory and an 8-track tape recorder

https://techfixated.com/a-1977-time-capsule-voyager-1-runs-on-69-kb-of-memory-and-an-8-track-tape...
622•speckx•23h ago•230 comments

Copilot edited an ad into my PR

https://notes.zachmanson.com/copilot-edited-an-ad-into-my-pr/
1117•pavo-etc•11h ago•322 comments

VHDL's Crown Jewel

https://www.sigasi.com/opinion/jan/vhdls-crown-jewel/
106•cokernel_hacker•11h ago•37 comments

15 Years of Forking

https://www.waterfox.com/blog/15-years-of-forking/
256•MrAlex94•2d ago•54 comments

How Reverse Game Theory Could Solve the Housing Shortage

https://www.noemamag.com/the-architecture-of-cooperation/
19•bookofjoe•5h ago•18 comments

Ninja is a small build system with a focus on speed

https://github.com/ninja-build/ninja
60•tosh•3d ago•17 comments

C++26 is done: ISO C++ standards meeting Trip Report

https://herbsutter.com/2026/03/29/c26-is-done-trip-report-march-2026-iso-c-standards-meeting-lond...
287•pjmlp•21h ago•298 comments

How the AI Bubble Bursts

https://martinvol.pe/blog/2026/03/30/how-the-ai-bubble-bursts/
284•martinvol•3h ago•337 comments

The First Video Game Was Just a Box in the Corner of a Bar

https://lithub.com/the-very-first-video-game-was-just-a-box-in-the-corner-of-a-bar/
28•PaulHoule•3d ago•25 comments

Douglas Lenat's Automated Mathematician Source Code

https://github.com/white-flame/am
52•hydrolox•4d ago•7 comments

Hardware Image Compression

https://www.ludicon.com/castano/blog/2026/03/hardware-image-compression/
50•luu•1d ago•9 comments

Philly courts will ban all smart eyeglasses starting next week

https://www.inquirer.com/news/philadelphia/smart-glasses-ai-meta-courts-20260326.html
353•Philadelphia•14h ago•173 comments

My MacBook keyboard is broken and it's insanely expensive to fix

https://tobiasberg.net/posts/my-macbook-keyboard-is-broken-and-its-insanely-expensive-to-fix/
305•TobiasBerg•20h ago•359 comments

Coding agents could make free software matter again

https://www.gjlondon.com/blog/ai-agents-could-make-free-software-matter-again/
245•rogueleaderr•17h ago•251 comments

Pretext: TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
351•emersonmacro•1d ago•62 comments
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.