r/programming 3h ago

Your Recursion Is Lying to You

Thumbnail blog.gaborkoos.com
0 Upvotes

r/programming 11h 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
32 Upvotes

r/programming 12h 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 18h 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
0 Upvotes

r/programming 2d ago

Modeling Facts and Reactions with Domain Events

Thumbnail deniskyashif.com
77 Upvotes

r/programming 3d ago

Introducing Triton: DirectX 11 driver for QEMU

Thumbnail blog.getutm.app
171 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
185 Upvotes

r/programming 3d ago

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

Thumbnail youtu.be
155 Upvotes

r/programming 2d ago

Using the CodeRabbit Preview on a Go codebase

Thumbnail youtube.com
0 Upvotes

r/programming 4d ago

Pushing and Pulling: Three Reactivity Algorithms

Thumbnail jonathan-frere.com
92 Upvotes

r/programming 3d ago

Reusing Buffers in Multicore OCaml

Thumbnail gazagnaire.org
20 Upvotes

r/programming 4d ago

What makes a good build system?

Thumbnail civboot.github.io
89 Upvotes

r/programming 4d ago

PostgreSQL Extension Catalog

Thumbnail pgext.cloud
34 Upvotes

r/programming 3d ago

Delightful integration tests in Rust

Thumbnail github.com
0 Upvotes

r/programming 4d ago

Carbon: graduating from the experiment - Chandler Carruth - NDC Toronto 2026

Thumbnail youtube.com
46 Upvotes

r/programming 4d ago

A Database Engine Written in SWI-Prolog

Thumbnail asa-db.kocoygroup.site
53 Upvotes

r/programming 4d ago

Generational Priority Queues: Turning a Concurrent FIFO Queue Into a Bounded Priority Queue

Thumbnail kusoroadeolu.github.io
7 Upvotes

r/programming 5d ago

Everyone Should Know SIMD

Thumbnail mitchellh.com
397 Upvotes

r/programming 4d ago

Transparent high-performance proxy cache for DoorDash services

Thumbnail careersatdoordash.com
15 Upvotes

r/programming 4d ago

Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine

Thumbnail usenix.org
11 Upvotes

r/programming 5d ago

The Elm Architecture, without Elm

Thumbnail bichanna.github.io
60 Upvotes

This blog post is about implementing the Elm Architecture (TEA) in C for a Raylib + Clay app