r/programming • • 11d ago

Make the change easy, then make the easy change

Thumbnail event-driven.io
8 Upvotes

r/programming • • 12d ago

544 unmaintained PyPI packages with imports that fail on Python 3.12+ still get 100M+ downloads a month

Thumbnail py-code.org
358 Upvotes
Python 3.12 and 3.13 dropped 25 stdlib modules (distutils, imp, cgi, pipes, telnetlib...). This scan of PyPI found 1,623 projects that still import one of them outside a try/except. 852 of those are in the 60k most downloaded packages, and 544 of the 852 haven't had a release in two years.

Index covers last year's releases plus the top 60k by downloads, so the real number is higher. Download numbers are from ClickHouse's public PyPI dataset (ClickPy).

r/programming • • 12d ago

Slack’s Migration to a Cellular Architecture

Thumbnail slack.engineering
446 Upvotes

r/programming • • 12d ago

Memory management in 40 major C projects, a survey

Thumbnail theconsensus.dev
101 Upvotes

r/programming • • 12d ago

What Go 1.27’s generic methods made possible for ORMs. Compile-checked columns with no generated code

Thumbnail skudra.net
102 Upvotes

r/programming • • 12d ago

Brockett-Dobkin Rectangular Matrix Multiplication Algorithm From 1970s

Thumbnail leetarxiv.substack.com
19 Upvotes

r/programming • • 11d ago

Do Repeat Yourself

Thumbnail arcentry.com
0 Upvotes

r/programming • • 12d ago

Many Tiles, One Space, Two Worlds -- At Last, a Use for Bubble Sort

Thumbnail meatfighter.com
10 Upvotes

r/programming • • 11d ago

I Found a 5× Performance Problem Hiding in Plain Sight

Thumbnail dpolens.com
0 Upvotes

To keep DPOLens's Docker image small, I dropped sentence-transformers and called the embedding model through ONNX Runtime directly. It took about forty lines of my own code, and the image came out roughly 800 MB lighter.

It worked. Then, while load-testing the community version, I found that the first start took nearly 23 minutes on 1.5 CPUs and peaked at 3.4 GB of memory.
I had quietly lost two things:

  1. Sorting by length. sentence-transformers sorts its inputs by length before batching them, and it doesn't tell you. My code didn't sort, so a 20-token paragraph sharing a batch with a 512-token article was padded to 512. Almost two thirds of the model's work was padding.
  2. The CPU limit. Inside a container capped at 2.5 CPUs, Python and ONNX Runtime both saw all 10 of my laptop's cores and started 10 threads, which then took turns on two and a half CPUs' worth of time.

I sorted the inputs and capped each batch by its shape, and set the thread count from the container's real limit. The result was 5.1× faster with 65% less memory, and the vectors and search results stayed the same.

What I learned: a library is more than its API. When you replace one, you also take over everything it did without being asked, and the only way to find out what that was is to measure.


r/programming • • 12d ago

Understanding Go: inside PGO

Thumbnail internals-for-interns.com
8 Upvotes

r/programming • • 11d ago

BrowserPod 4.0: the microVM that runs in the browser, now free for any use

Thumbnail labs.leaningtech.com
0 Upvotes

r/programming • • 12d ago

Route To Hosting Videos For Websites, Apps And Subscription Services

Thumbnail tomj.pro
0 Upvotes

r/programming • • 14d ago

How I accidentally became a millionaire

Thumbnail lyra.horse
2.7k Upvotes

r/programming • • 12d ago

How JavaScript and Python actually run your code

Thumbnail youtube.com
0 Upvotes

r/programming • • 13d ago

Redpanda archived its GitHub repo

Thumbnail github.com
4 Upvotes

r/programming • • 12d ago

After Clash Royale's top ladder has now started being dominated by bots, are there any videogames where people want to see a bot capable of beating humans built?

Thumbnail reddit.com
0 Upvotes

I am so curious, after seeing bots dominate in Chess, and now recently in competitive games like Clash Royale, are there any games/websites where theoretically a bot that plays better than humans can be built?


r/programming • • 13d ago

What we learned operating auth for 1,000+ APIs

Thumbnail nango.dev
20 Upvotes

r/programming • • 13d ago

It's all about the allocator

Thumbnail aarol.dev
43 Upvotes

r/programming • • 13d ago

Under the Hood: Serving Kimi K3 | DigitalOcean

Thumbnail digitalocean.com
19 Upvotes

r/programming • • 13d ago

Designing payouts that never payout twice: timeouts, an "Unknown" state, and idempotency in cross-border payments

Thumbnail substack.com
9 Upvotes

Author here. I’ve spent quite some time building the payout side of a cross-border payments platform, mostly the routing engine.

The thing that surprised me most was that what looks like one international transfer is really a series of local payments, and the money usually doesn’t cross the border when you hit send.

The hardest bug class was timeouts. When a partner doesn’t answer, you don’t know if the money went through, and retrying can pay someone twice. We handle that with status checks using the same reference.

We learned it the hard way when we relied on one partner for one of our major routes, and when it went down, most of our payouts failed with it.

Curious how others handle the “unknown” state. Happy to answer questions.


r/programming • • 14d ago

Announcing Rust 1.100.0

Thumbnail blog.rust-lang.org
404 Upvotes

r/programming • • 14d ago

Formal Verification is Not Verifiable: Bouba and Kiki Software

Thumbnail alperenkeles.com
64 Upvotes

r/programming • • 13d ago

Beating the frontier on NetHack

Thumbnail antithesis.com
10 Upvotes

r/programming • • 14d ago

Some Projects Need to Fail

Thumbnail yusufaytas.com
24 Upvotes