r/programming May 23 '26

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

945 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 55m ago

I liked stackoverflow

Thumbnail stackoverflow.com
Upvotes

Hello. I really liked stackoverflow >5 years ago. There were many people asking about easy-to-medium problems to be solved, and it was a great way for me to learn C/C++/Bash/awk/sed/cmake/Linux/whatever by solving real-life(!) mediocre problems and also helping people in the process and also being criticized and corrected at the same time, from which I learned triple as much.

Now stackoverflow is dead. My almost 150k reputation means nothing. Finally they added a "advice" type of questions which is way way too late.

Now I lurk over reddit for typic-specific type of questions, but reddit is more a social network then help-me-with-programming-problem site, and the "help me" part is anyway so easy to solve with an AI. It was great back then - the feeling of learning something new and at the same actually helping and actually feeling like an expert in something. I learned the C programming standard by heart by answering really niche questions about C program behaviors. This was really fun for me. I enjoyed the specificity of stackoverflow - the idea of being "exact", answering only the question asked.

There are just no questions nowadays on stackoverflow. There is a void now. And AI. There are topic-specific Discord chats, as a modern replacement of IRC, but I always assumed they are used by developers, not for noobs. I know the times without AI will never come again, but the internet, the thing connecting people across the whole globe, just feels more empty, more robotic and like an advertisement nowadays.


r/programming 13h ago

Your JS Date Is Lying to You - the traps that keep shipping to production

Thumbnail blog.gaborkoos.com
72 Upvotes

Most JavaScript developers have been burned by Date at least once: a report that's off by a day, an invoice that lands in the wrong month, a timezone bug that only appears in certain regions.

A writeup on the main failure modes with production examples:

  • new Date('2026-07-21') parsed as UTC, displayed as local: date shifts by a day west of UTC
  • constructor months are 0-based, so new Date(2026, 7, 21) is August
  • every set* method mutates in place, including across shared references
  • "add one month" and "add 30 days" are not the same operation and can diverge by days near month boundaries
  • JSON.stringify drops timezone context silently

Each section also covers what safe Date patterns look like for code that can't migrate yet, and where Temporal fixes the design rather than just adding a wrapper.


r/programming 9h ago

Sandboxing Script Extensions with GraalVM

Thumbnail medium.com
10 Upvotes

r/programming 6m ago

HELPPPPPPPPP: Doubt Regarding Pre-Increment and Post-Increment in C++

Thumbnail wikipedia.com
Upvotes

I’m confused about pre-increment (++a) and post-increment (a++) in C++. I understand that ++a increments before use and a++ increments after use, but I’m struggling to understand how the variable’s value changes step by step during execution. For example, why does ++id print 1001 when id is 1000, and why does --a operate on 6 after a++ if a originally started at 5?


r/programming 7h ago

Physics programming - Rotation and Quaternions

Thumbnail youtu.be
4 Upvotes

I explain rotations and quaternions. I then implement the latter into my physics engine by replacing the matrix version of angular velocity code with a quaternion version. Lastly, I benchmark the results.


r/programming 1h ago

SQL query analyzer that generates dialect-specific index DDL across 5 databases without connecting to any of them.

Thumbnail autoshiftops.com
Upvotes

Most SQL performance tooling requires either a $400/month monitoring agent or asking models and hoping the advice applies to your database.

The interesting architecture decisions:

  • Heuristic engine runs first (<200ms), LLM is optional and additive — if LLM fails, you still get structured findings
  • All dialect logic lives in one dialect_config.py — DDL templates, optimizer syntax, LLM system prompts, maintenance commands for all 5 DBs
  • Schema-aware mode: paste DDL, get confirmed recommendations with real table names instead of placeholders
  • Every analysis gets a permanent shareable URL

Source: https://github.com/AutoShiftOps/querytuner

Live: https://querytuner.com


r/programming 7h ago

A Fast Path for Fixed-Length Lists in Parquet

Thumbnail morling.dev
1 Upvotes

r/programming 1d ago

Linux kernel will support $ORIGIN, sort of

Thumbnail fzakaria.com
266 Upvotes

r/programming 1d ago

kubara - A GitOps-First Approach to Reusable Kubernetes Platforms

Thumbnail medium.com
13 Upvotes

r/programming 1d ago

Secrets Don’t Belong in Config

Thumbnail secretspec.dev
144 Upvotes

r/programming 2h ago

Why two O(n²) loops can run 15× apart

Thumbnail youtu.be
0 Upvotes

Two nested loops can do the same work, have the same O(n²) complexity, and still run around 15× apart.

A visual explainer on why: the RAM model, the memory wall, cache lines, locality, L1/L2/L3, prefetching, data layout and false sharing.

It also covers how the timing difference between a cache hit and miss became the side channel behind Spectre and Meltdown.


r/programming 23h ago

A Gentle Introduction to Stochastic Programming

Thumbnail towardsdatascience.com
9 Upvotes

r/programming 2d ago

Zig proposes introducing an actually memory safe (unlike Rust) compilation mode inspired by Fil-C at ~1-6x performance penalty

Thumbnail codeberg.org
481 Upvotes

r/programming 1d ago

Elixir Cluster 101

Thumbnail jola.dev
8 Upvotes

r/programming 1d ago

AST implementation for a custom programming language

Thumbnail youtube.com
2 Upvotes

The talk host explains how ASTs work and shows how to build them step by step.


r/programming 1d ago

The Long Road to Bottomless Postgres: Discussing Neon, pg_mooncake, pg_tier, pg_lake, and ColdFront

Thumbnail pgedge.com
38 Upvotes

r/programming 2d ago

Throw, Result, or neither?

Thumbnail architecture-weekly.com
90 Upvotes

r/programming 1d ago

How We're Scaling Our Infrastructure Across 4 Clouds To Serve 1M+ Sandboxes

Thumbnail opencomputer.dev
7 Upvotes

r/programming 2d ago

Modula-3: the forgotten language that explored memory safety decades ago

Thumbnail softwarepreservation.computerhistory.org
79 Upvotes

Pretty cool seeing that people were already thinking about memory safety decades ago. Some of these ideas that feel modern today were being explored back in the 80s and 90s.
Makes you wonder how different things would look if languages like Modula-3 had taken off.


r/programming 2d ago

Every Microsecond Matters: Achieving Near Speed-of-Light Latency in GPU Collectives

Thumbnail arxiv.org
10 Upvotes

r/programming 2d ago

Comprehensive JVM Primitive Hashtable Benchmarks

Thumbnail sooniln.github.io
45 Upvotes

r/programming 1d ago

What Is Docker, and What It Silently Replaced 🤫..

Thumbnail fagnerbrack.com
0 Upvotes

r/programming 2d ago

The LSM Tree

Thumbnail ledger.khushal.net
8 Upvotes

r/programming 1d ago

Don't add a read replica until you've read this

Thumbnail incident.io
0 Upvotes