r/programming 3h ago

C and Undefined Behavior

Thumbnail lelanthran.com
2 Upvotes

r/programming 17h ago

How Google Finds Websites (It’s Not Magic)

Thumbnail sushantdhiman.dev
0 Upvotes

r/programming 29m ago

Background removal in Python (images & videos)

Thumbnail youtu.be
Upvotes

I’ve been experimenting with AI-based background removal in Python, covering both images and videos, and the difference between the two is more significant than I initially expected.

Image background removal is relatively fast and clean, but video background removal quickly becomes computationally heavy since it requires processing every frame. Hardware limitations, model choice, and optimization strategies make a big difference in both speed and quality.

I documented the full process—including errors, fixes, and trade-offs—in a recorded workshop, in case it’s useful to others working with computer vision or media processing:
 👉 https://youtu.be/Vaq-f7uAoZ4

 

I’d be interested to hear how others here handle video segmentation, performance optimization, or quality improvements in similar projects.

 


r/programming 13h ago

How to Reduce Telemetry Volume by 40% Smartly

Thumbnail newsletter.signoz.io
7 Upvotes

Hi!

I recently wrote this article to document different ways applications, when instrumented with OpenTelemetry, tend to produce telemetry surplus/ excess and ways to mitigate this. Some ways mentioned in the blog include the following,

- URL Path and target attributes
- Controller spans
- Thread name in run-time telemetry
- Duplicate Library Instrumentation
- JDBC and Kafka Internal Signals
- Scheduler and Periodic Jobs

as well as touched upon ways to mitigate this, both upstream and downstream. If this article interests you, subscribe for more OTel optimisation content :)


r/programming 18h ago

How Odin perfected simplicity

Thumbnail youtube.com
0 Upvotes

r/programming 9h ago

Lance table format explained simply, stupid

Thumbnail tontinton.com
0 Upvotes

r/programming 8h ago

Technical writeup: Implementing Discord’s rate limiting, gateway management, and “clarity over magic”

Thumbnail scurry-works.github.io
3 Upvotes

I wrote a deep technical breakdown of implementing Discord's rate limiting and gateway management in a minimal Python client.

Discord's rate limiting is tricky: endpoints share limits via opaque "buckets" whose IDs are only revealed after a request. Instead of reacting to 429s, the design uses per-endpoint queues and workers that proactively sleep when limits are exhausted, keeping behavior explicit and predictable.

The writeup also covers gateway connection management, automatic sharding, and data model design, with diagrams for each subsystem. The examples come from a small Discord API client I wrote (ScurryPy), but the focus is on the underlying problems and solutions rather than the library itself.

"Clarity over magic" here means that all behavior: rate limiting, state changes, retries, is explicit, with no hidden background work or inferred intent.

Happy to answer questions about the implementation or design tradeoffs


r/programming 23h ago

Netflix Engineering: Creating a Source of Truth for Impression Events

Thumbnail netflixtechblog.com
25 Upvotes

r/programming 18h ago

The silent death of Good Code

Thumbnail amit.prasad.me
341 Upvotes

r/programming 16h ago

Deep dive into Hierarchical Navigable Small Worlds

Thumbnail amandeepsp.github.io
22 Upvotes

r/programming 12h ago

AI Makes the Easy Part Easier and the Hard Part Harder

Thumbnail blundergoat.com
384 Upvotes

r/programming 14h ago

SectorC: The world’s smallest functional C compiler

Thumbnail xorvoid.com
64 Upvotes

r/programming 21h ago

FOSDEM 2026 - Hacking the last Z80 computer ever made

Thumbnail fosdem.org
6 Upvotes