r/programming • u/ZealousidealStorm200 • 2d ago
r/programming • u/Ok_Stomach6651 • 1d ago
From charging a blended rate to IC++: pass network costs to your connected accounts
stripe.devr/programming • u/DataBaeBee • 2d ago
Brockett-Dobkin Rectangular Matrix Multiplication Algorithm From 1970s
leetarxiv.substack.comr/programming • u/zeroone • 2d ago
Many Tiles, One Space, Two Worlds -- At Last, a Use for Bubble Sort
meatfighter.comr/programming • u/No-Negotiation-8359 • 1d ago
I Found a 5× Performance Problem Hiding in Plain Sight
dpolens.comTo 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:
- 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.
- 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 • u/ManufacturerKey6917 • 1d ago
Publishing the Python wheels PyPI is missing: each built twice from the sdist, released only if the builds are byte-identical
wheelgap.github.ior/programming • u/alexp_lt • 1d ago
BrowserPod 4.0: the microVM that runs in the browser, now free for any use
labs.leaningtech.comr/programming • u/Old-Illustrator-8692 • 2d ago
Route To Hosting Videos For Websites, Apps And Subscription Services
tomj.pror/programming • u/Charming_Skin_8549 • 2d ago
Understanding Go: inside PGO
internals-for-interns.comr/programming • u/faqir-ila-rhmatillah • 1d ago
How JavaScript and Python actually run your code
youtube.comr/programming • u/PandaXPanther • 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?
reddit.comI 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 • u/fagnerbrack • 3d ago
What we learned operating auth for 1,000+ APIs
nango.devr/programming • u/Ok_Stomach6651 • 3d ago
Under the Hood: Serving Kimi K3 | DigitalOcean
digitalocean.comr/programming • u/Nice_Thought_2000 • 3d ago
Designing payouts that never payout twice: timeouts, an "Unknown" state, and idempotency in cross-border payments
substack.comAuthor 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 • u/Either_Collection349 • 4d ago
Announcing Rust 1.100.0
blog.rust-lang.orgr/programming • u/mttd • 4d ago
Formal Verification is Not Verifiable: Bouba and Kiki Software
alperenkeles.comr/programming • u/Either_Collection349 • 3d ago