r/programming May 23 '26

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

954 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 5h ago

Bazel's UX is really, really, really bad

Thumbnail blog.appliedcomputing.io
120 Upvotes

r/programming 7h ago

The Browser's Main Thread Is Expensive

Thumbnail kciter.so
70 Upvotes

r/programming 13h ago

Rui Ueyama: "We are rewriting the mold linker in Rust"

Thumbnail x.com
181 Upvotes

r/programming 8h ago

Wasmi 2.0 - Engineering of the Fastest Wasm Interpreters

Thumbnail wasmi-labs.github.io
38 Upvotes

r/programming 1d ago

35 years later, Torvalds' hobby project remains developed worldwide.

Thumbnail tech.yahoo.com
731 Upvotes

r/programming 1h ago

How Do HashMaps Work Under the Hood? (putting together a toy implementation in Rust to understand performance optimization, collisions, and time complexities)

Thumbnail medium.com
Upvotes

HashMaps are incredibly convenient, but treating them like a magical black box can make it easy to overlook where their performance comes from.

In this article, I explain how HashMaps work using a simple implementation in Rust. I go through hash collisions and linear probing, why primary clustering hurts performance, load factors, resizing, and more.

The implementation is intentionally simplified, but it gives a good picture of what's actually happening underneath a HashMap.

Let me know your thoughts or any feedback you have!

All writing, illustrations, and code are my own. AI was used to clean up wording and catch grammatical mistakes.


r/programming 5h ago

Performance of WebAssembly runtimes in 2026

Thumbnail 00f.net
10 Upvotes

r/programming 2h ago

Sixteen branches is all you ... get?

Thumbnail rushed-reflections.bearblog.dev
1 Upvotes

Wrote a quick blog post about pushing branch prediction to its limits in a simple experiment. Take a read to learn with me about measuring performance on linux machines and a very basic understanding of branch prediction 😄


r/programming 1d ago

Please, I beg you, we need to stop using Stored Procedures (from applications)

Thumbnail heffree.dev
487 Upvotes

r/programming 3h ago

GitHub Runners Benchmarking

Thumbnail runnerbench.com
2 Upvotes

r/programming 1d ago

a CVE dispute

Thumbnail daniel.haxx.se
438 Upvotes

r/programming 2h ago

Wasmer SDK: Run Node.js, Python, Postgres and PHP embedded in your application

Thumbnail wasmer.io
1 Upvotes

r/programming 23h ago

io_uring without readahead

Thumbnail frn.sh
39 Upvotes

r/programming 1d ago

Terminating elegantly: a guide to graceful shutdowns

Thumbnail packagemain.tech
24 Upvotes

r/programming 1d ago

The Hugging Face incident from a security engineering perspective

Thumbnail uphack.io
95 Upvotes

r/programming 13h ago

Subsize 【 subscalar 】 encoding

Thumbnail gitlab.com
2 Upvotes

Indexing strings by character (Unicode scalar) instead of UTF offsets can be more comfortable for parsers or short manipulations.

The minimum cost for reading a >= U+FE character is:

  1. Lookup rope table by byte key (holding a high bit position), in goal of the scalar value in a sequence of higher fixed scalars
  2. Check for collision subtable (is not null => repeat the step 1), specializing the target high bit further

For optimal use, contiguous sequences of characters after Latin-* that turn into reserves into the mask sequence still allow for a few trailing Latin-* (e.g. Katakana can still be mixed with Latin-* whitespace), so those trails turn into reseves as well.

Update (I miswrote a detail in the implementation).

https://gitlab.com/mryun/langopt/-/blob/master/encoding/string.md


r/programming 1d ago

Node.js sandboxes powered by QuickJS and WebAssembly

Thumbnail wasmer.io
16 Upvotes

r/programming 1d ago

A Self-Baked Async FFI Framework for Rust C# Interop

Thumbnail scylladb.com
21 Upvotes

Getting tokio and .NET’s async runtime talking to each other, over the C ABI


r/programming 1d ago

p99 0 ms* autocomplete for 240 million domain names

Thumbnail ruurtjan.com
209 Upvotes

r/programming 7h ago

I need to keep some Slack connections alive. This should be easy.

Thumbnail failedexperiments.substack.com
0 Upvotes

Okay, but I have multiple replicas.

And it gets slightly worse: the number of physical connections is not equal to the number of replicas, and it is not equal to the number of business-level connectors either.

Several business connectors may share one external identity. One external identity may require several physical connections. And those connections need to be spread across whatever replicas are currently alive and have capacity.

So who actually owns the connection?

Then the questions start piling up.

What if one replica dies?
What if it doesn’t die, but loses access to the database?
What if two replicas race for the same connection?
What if the event that was supposed to wake the right worker never arrives?
What if most workers are already full?

A few questions and 2 hours of midnight walk in headphones and ChatGPT later, I had leases, runtime slots, reconciliation, failover, capacity limits, and a distributed ownership problem on my hands.

This is the architecture I ended up with, and I have mixed feelings about this design.

On one hand, I’m proud that I managed to account for so many different edge cases. On the other, the whole thing feels worryingly complex.

So I’d really value input from people who have built similar systems.

What did I miss or do you see anything that can break?
And most importantly: what can be simplified without losing the guarantees?

The full architecture description is a bit lengthy: AEON NEON - Connector Runtime - by Jarek J.

Many thanks if you decide to read it and share your thoughts. I’d really like this one not to become another failed experiment.


r/programming 1d ago

Using stable and evolutionary problems to guide program decomposition

Thumbnail codeutopia.net
10 Upvotes

r/programming 9h ago

What I find interesting about this video is that the game was developed by a small but highly professional team.

Thumbnail youtube.com
0 Upvotes

Yes, the game development industry wasn’t nearly as complex as it is today. You could probably say that making and releasing a good game was easier back then.

But these people created a legend precisely because they were professionals.

Of course, DOOM wasn’t their first game. There was a time when the team was making a game every month.

What I like most about this video is the sense of creativity — and the feeling that these people simply loved making games.


r/programming 1d ago

On End-to-End Tests During Redesign

Thumbnail radekmie.dev
2 Upvotes

r/programming 2d ago

Reverse Engineering Unknown File Formats with ImHex

Thumbnail werwolv.net
206 Upvotes