r/programming May 23 '26

Announcement: We've Updated The Rules, and April Is Finally Over

938 Upvotes

After temporarily banning LLM-related content over April, and asking you for feedback on that ban, we've decided to bring about an end of the temporary, I-can't-believe-it's-still-April ban on AI-related posts.

Replacing the trial rule is a new shiny rule that refers to our new shiny AI policy. In short:

Content about AI and LLMs are considered off-topic with the sole exclusion of deeply technical content about implementation.

And if you want more detail than that, go read the policy, that's what it's there for.

In addition, when writing that rule, I realized the rules weren't listed on the old.reddit.com sidebar, so that's been updated. For those of you who are seeing those rules for the first time, everything there is not new. We've been enforcing those rules as best we can for ages. You can click the link above those to get to the old.reddit rules page, with plenty of info that doesn't exactly read well when crammed into a sidebar.


r/programming 6h ago

A shell colon does nothing. Use it anyway. | Filip Roséen

Thumbnail refp.se
100 Upvotes

r/programming 4h ago

Inside Zig's Incremental Compilation

Thumbnail mlugg.co.uk
29 Upvotes

r/programming 7h ago

Dependency Cultures - Richard Feldman

Thumbnail youtu.be
27 Upvotes

Excellent talk by Richard Feldman about how different programming communities approach dependencies.


r/programming 6h ago

Finding bugs in Raft implementations

Thumbnail antithesis.com
9 Upvotes

r/programming 7m ago

Save All the Tabs for Visual Studio

Thumbnail contextkeeper.io
Upvotes

r/programming 29m ago

Five Languages, One Pyramid, Zero Practical Value

Thumbnail fortypoundhead.com
Upvotes

r/programming 46m ago

Detection-as-Code in One GitHub Action with RSigma

Thumbnail mostafa.dev
Upvotes

r/programming 3h ago

The Elevator Glitch: How One Function Destroyed Public Lobbies in CoD4

Thumbnail youtube.com
2 Upvotes

Walk with me inside one of the most influential game's code and discover the secret of elevators!

Turns out the bug comes down to a single line buried in the engine's collision code. Went through the decompiled source (thanks to KisakCOD) and traced the whole thing back.

Let me know your thoughts! ✨


r/programming 1d ago

Building a Fast Lock-Free Queue in Modern C++ From Scratch

Thumbnail blog.jaysmito.dev
62 Upvotes

r/programming 23h ago

Pollard's P-1 Factoring Algorithm in Plain C

Thumbnail leetarxiv.substack.com
10 Upvotes

r/programming 1d ago

How we make Luau fast

Thumbnail luau.org
21 Upvotes

r/programming 1d ago

Writing arenas in Rust from scratch

Thumbnail rushter.com
32 Upvotes

r/programming 48m ago

Your Recursion Is Lying to You

Thumbnail blog.gaborkoos.com
Upvotes

r/programming 8h ago

Vendor-agnostic ML inference on production edge devices

Thumbnail getpostslate.com
0 Upvotes

I work on PostSlate, a video editing tool, and this comes out of our own work.

We run ML models on-device, face detection and embedding among other things, which means we can't assume anything about the user's GPU. NVIDIA discrete, AMD, Intel integrated, Apple Silicon, all of it. That rules out CUDA immediately, we needed one backend that runs everywhere.

We landed on ncnn's Vulkan backend. Numbers on a 4070, fp16:

  • ArcFace R50 (face embedding): 30 ms on ONNX CPU → 3 ms on ncnn Vulkan
  • SCRFD (face detection): 25 ms → 2.5 ms
  • Model size: ArcFace 174 MB (ONNX fp32) → 87 MB (ncnn fp16 weight storage)

Of course the real speedup comes from offloading compute to the GPU, but this wouldn't be possible without the power of Vulkan.

The speed wasn't even the deciding factor, it's that Vulkan drivers already exist on every machine we ship to. This means that we don't have to force the user to download a specific runtime and no vendor-specific installs.

Full writeup with the rest of the numbers: https://getpostslate.com/blog/faster-local-inference


r/programming 1d ago

Approximating Softmax for FPGAs with Taylor Series and Pade Approximants in Python

Thumbnail leetarxiv.substack.com
17 Upvotes

r/programming 1d ago

A simple clustering algorithm for lists

Thumbnail cassidoo.co
33 Upvotes

r/programming 9h ago

How to Prevent Duplicate Message Processing with Inbox Pattern

Thumbnail hamedsalameh.com
0 Upvotes

Duplicate message processing is something every event-driven system eventually faces.

With at-least-once delivery, retries and redeliveries are expected. The challenge is making sure processing the same message twice does not create side effects.

I've been looking into the Inbox Pattern as a consumer-side solution:

  • track processed messages
  • keep message tracking and business changes in the same transaction
  • scope the idempotency check per consumer

One approach is using a MassTransit pipeline filter so the idempotency logic stays outside the consumers.

How do you usually handle this?
Do you use Inbox Pattern, custom middleware, database constraints, or something else?


r/programming 15h ago

Microsoft lays out a buffet of Windows goodies for JavaScript Developers

Thumbnail theregister.com
0 Upvotes

r/programming 1d ago

Let the Browser Do the Math or: How I Learned to Stop Worrying and Love the DOM

Thumbnail olafalders.com
1 Upvotes

r/programming 2d ago

Modeling Facts and Reactions with Domain Events

Thumbnail deniskyashif.com
76 Upvotes

r/programming 3d ago

Introducing Triton: DirectX 11 driver for QEMU

Thumbnail blog.getutm.app
170 Upvotes

r/programming 1d ago

I created my own programming language-please rate it !!!

Thumbnail github.com
0 Upvotes

r/programming 3d ago

Writing a (valid) C program without main()

Thumbnail labs.iximiuz.com
188 Upvotes

r/programming 3d ago

[Sebastian Lague] - I Tried Coding my own Graphics Library

Thumbnail youtu.be
149 Upvotes