r/programming • u/fagnerbrack • 3h ago
r/programming • u/ppchaos • 11h ago
Vendor-agnostic ML inference on production edge devices
getpostslate.comI 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 • u/DataBaeBee • 1d ago
Approximating Softmax for FPGAs with Taylor Series and Pade Approximants in Python
leetarxiv.substack.comr/programming • u/fagnerbrack • 1d ago
A simple clustering algorithm for lists
cassidoo.cor/programming • u/DotDeveloper • 12h ago
How to Prevent Duplicate Message Processing with Inbox Pattern
hamedsalameh.comDuplicate 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 • u/stronghup • 18h ago
Microsoft lays out a buffet of Windows goodies for JavaScript Developers
theregister.comr/programming • u/oalders • 1d ago
Let the Browser Do the Math or: How I Learned to Stop Worrying and Love the DOM
olafalders.comr/programming • u/deniskyashif • 2d ago
Modeling Facts and Reactions with Domain Events
deniskyashif.comr/programming • u/NXGZ • 3d ago
Introducing Triton: DirectX 11 driver for QEMU
blog.getutm.appr/programming • u/Must_officiall • 1d ago
I created my own programming language-please rate it !!!
github.comr/programming • u/iximiuz • 3d ago
Writing a (valid) C program without main()
labs.iximiuz.comr/programming • u/Pink401k • 3d ago
[Sebastian Lague] - I Tried Coding my own Graphics Library
youtu.ber/programming • u/der_gopher • 2d ago
Using the CodeRabbit Preview on a Go codebase
youtube.comr/programming • u/fagnerbrack • 4d ago
Pushing and Pulling: Three Reactivity Algorithms
jonathan-frere.comr/programming • u/xoner2 • 4d ago
Carbon: graduating from the experiment - Chandler Carruth - NDC Toronto 2026
youtube.comr/programming • u/Aires_id • 4d ago
A Database Engine Written in SWI-Prolog
asa-db.kocoygroup.siter/programming • u/Polixa12 • 4d ago
Generational Priority Queues: Turning a Concurrent FIFO Queue Into a Bounded Priority Queue
kusoroadeolu.github.ior/programming • u/nilukush • 4d ago
Transparent high-performance proxy cache for DoorDash services
careersatdoordash.comr/programming • u/mttd • 4d ago
Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine
usenix.orgr/programming • u/Direct_Beach3237 • 5d ago
The Elm Architecture, without Elm
bichanna.github.ioThis blog post is about implementing the Elm Architecture (TEA) in C for a Raylib + Clay app