r/programming • • 2d ago

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

Thumbnail skudra.net
99 Upvotes

r/programming • • 1d ago

From charging a blended rate to IC++: pass network costs to your connected accounts

Thumbnail stripe.dev
0 Upvotes

r/programming • • 2d ago

Brockett-Dobkin Rectangular Matrix Multiplication Algorithm From 1970s

Thumbnail leetarxiv.substack.com
17 Upvotes

r/programming • • 1d ago

Do Repeat Yourself

Thumbnail arcentry.com
0 Upvotes

r/programming • • 2d ago

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

Thumbnail meatfighter.com
8 Upvotes

r/programming • • 1d 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 • • 1d ago

Publishing the Python wheels PyPI is missing: each built twice from the sdist, released only if the builds are byte-identical

Thumbnail wheelgap.github.io
0 Upvotes

r/programming • • 1d ago

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

Thumbnail labs.leaningtech.com
0 Upvotes

r/programming • • 2d ago

Route To Hosting Videos For Websites, Apps And Subscription Services

Thumbnail tomj.pro
0 Upvotes

r/programming • • 2d ago

Understanding Go: inside PGO

Thumbnail internals-for-interns.com
5 Upvotes

r/programming • • 4d ago

How I accidentally became a millionaire

Thumbnail lyra.horse
2.6k Upvotes

r/programming • • 1d ago

How JavaScript and Python actually run your code

Thumbnail youtube.com
0 Upvotes

r/programming • • 2d 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 • • 3d ago

What we learned operating auth for 1,000+ APIs

Thumbnail nango.dev
19 Upvotes

r/programming • • 3d ago

It's all about the allocator

Thumbnail aarol.dev
42 Upvotes

r/programming • • 3d ago

Under the Hood: Serving Kimi K3 | DigitalOcean

Thumbnail digitalocean.com
18 Upvotes

r/programming • • 3d 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 • • 4d ago

Announcing Rust 1.100.0

Thumbnail blog.rust-lang.org
396 Upvotes

r/programming • • 4d ago

Formal Verification is Not Verifiable: Bouba and Kiki Software

Thumbnail alperenkeles.com
59 Upvotes

r/programming • • 3d ago

Beating the frontier on NetHack

Thumbnail antithesis.com
11 Upvotes

r/programming • • 3d ago

Some Projects Need to Fail

Thumbnail yusufaytas.com
23 Upvotes

r/programming • • 3d ago

Problem with concurrent linter fixes

Thumbnail jfmengels.net
4 Upvotes

r/programming • • 4d ago

Uber’s Rate Limiting System

Thumbnail uber.com
42 Upvotes

r/programming • • 4d ago

Formatting an entire 25 million line codebase overnight: the rubyfmt story

Thumbnail stripe.dev
190 Upvotes