You can beat the binary search
https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
https://redd.it/1t08t7r
@programmingreddit
https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
https://redd.it/1t08t7r
@programmingreddit
Daniel Lemire's blog
You can beat the binary search
We sometimes have to look for a value in a sorted array. The simplest algorithm consists in just going through the values one by one, until we encounter the value, or exhaust the array. We sometimes call this algorithm a linear search. In C++, you can get…
How Containers Work: Building a Docker-like Container From Scratch
https://labs.iximiuz.com/tutorials/container-filesystem-from-scratch
https://redd.it/1t0w811
@programmingreddit
https://labs.iximiuz.com/tutorials/container-filesystem-from-scratch
https://redd.it/1t0w811
@programmingreddit
iximiuz Labs
How Container Filesystem Works: Building a Docker-like Container From Scratch | iximiuz Labs
Learn how Linux containers are built from the ground up. Starting with the mount namespace and a root filesystem, see why PID, cgroup, UTS, and network namespaces naturally follow - and how this foundation makes concepts like bind mounts, volumes, and persistence…
For Linux kernel vulnerabilities, there is no heads-up to distributions
https://www.openwall.com/lists/oss-security/2026/04/30/10
https://redd.it/1t0m1pn
@programmingreddit
https://www.openwall.com/lists/oss-security/2026/04/30/10
https://redd.it/1t0m1pn
@programmingreddit
Reddit
From the programming community on Reddit: For Linux kernel vulnerabilities, there is no heads-up to distributions
Posted by Either_Collection349 - 97 votes and 11 comments
Approaching zero bugs? - Daniel Stenberg
https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
https://redd.it/1t1uplj
@programmingreddit
https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
https://redd.it/1t1uplj
@programmingreddit
daniel.haxx.se
Approaching zero bugs?
In this era of powerful tools to find software bugs, we now see tools find a lot of problems at a high speed. This causes problems for developers, as dealing with the growing list of issues is hard. It may take a longer time to address the problems than to…
Unsigned sizes: a five year mistake
https://c3-lang.org/blog/unsigned-sizes-a-five-year-mistake/
https://redd.it/1t20rdz
@programmingreddit
https://c3-lang.org/blog/unsigned-sizes-a-five-year-mistake/
https://redd.it/1t20rdz
@programmingreddit
C3 Programming Language
Unsigned sizes: a five year mistake
C3 is the ergonomic, safe evolution of C. Familiar syntax, full ABI compatibility, optionals, slices, contracts and zero-cost abstractions.
Enabling ai co author by default by cwebster-99 · Pull Request #310226 · microsoft/vscode
https://github.com/microsoft/vscode/pull/310226
https://redd.it/1t2f3h5
@programmingreddit
https://github.com/microsoft/vscode/pull/310226
https://redd.it/1t2f3h5
@programmingreddit
GitHub
Enabling ai co author by default by cwebster-99 · Pull Request #310226 · microsoft/vscode
Visual Studio Code. Contribute to microsoft/vscode development by creating an account on GitHub.
The peril of laziness lost
https://bcantrill.dtrace.org/2026/04/12/the-peril-of-laziness-lost/
https://redd.it/1t3712i
@programmingreddit
https://bcantrill.dtrace.org/2026/04/12/the-peril-of-laziness-lost/
https://redd.it/1t3712i
@programmingreddit
The Observation Deck
The peril of laziness lost
In his classic Programming Perl — affectionately known to a generation of technologists as "the Camel Book" — Larry Wall famously wrote of the three virtues of a programmer as laziness, impatience, and hubris:
If we’re going to talk about good software design…
If we’re going to talk about good software design…
When 'if' slows you down, avoid it
https://easylang.online/blog/branchless
https://redd.it/1t3glxw
@programmingreddit
https://easylang.online/blog/branchless
https://redd.it/1t3glxw
@programmingreddit
easylang.online
Branch‑Avoidant Programming
Update on "Co-authored-by: Copilot" in commit messages · Issue #314311 · microsoft/vscode
https://github.com/microsoft/vscode/issues/314311
https://redd.it/1t49srb
@programmingreddit
https://github.com/microsoft/vscode/issues/314311
https://redd.it/1t49srb
@programmingreddit
GitHub
Update on "Co-authored-by: Copilot" in commit messages · Issue #314311 · microsoft/vscode
What happened? In 1.110, we added a setting to add Copilot as coauthor in commit messages by appending Co-authored-by: Copilot copilot@github.com. The setting git.addAICoAuthor has three different ...
Formatting an entire 25 million line codebase overnight: the rubyfmt story
https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
https://redd.it/1t47018
@programmingreddit
https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
https://redd.it/1t47018
@programmingreddit
stripe.dev
Formatting an entire 25 million line codebase overnight: the rubyfmt story
This is the story of how our Developer Productivity team extended and rolled out rubyfmt, our Rust-based zero-config, ultra-fast autoformatter across the world's largest Ruby codebase.
Bun is being rewritten to Rust
https://github.com/oven-sh/bun/commit/46d3bc29f270fa881dd5730ef1549e88407701a5
https://redd.it/1t480nm
@programmingreddit
https://github.com/oven-sh/bun/commit/46d3bc29f270fa881dd5730ef1549e88407701a5
https://redd.it/1t480nm
@programmingreddit
GitHub
docs: add Phase-A porting guide · oven-sh/bun@46d3bc2
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one - docs: add Phase-A porting guide · oven-sh/bun@46d3bc2
Looking for feedback on AI content in r/programming and the April no-AI trial
Hello fellow programs!
In April we tried out a complete ban on LLM-related content. Today we're asking for feedback on how that went, and more generally what we want to do about this kind of content. Please comment below, but if all you're going to say is "I liked/hated it", please also indicate that you've read the nuance below.
To be clear we always have and will continue to ban content that's generated by an LLM. If you don't want to write it, we don't want to read it. And we also do and will continue to ban content that's not related to programming but about e.g. philosophy in AI or jailbreaking chatgpt. (Non-programming AI articles account for most of the AI-related content that we see and we remove quite a lot of them. This is not related to the April trial.)
So the nuance is that the only additional category of content that we banned in the April trial and are asking about here is programming content that is about AI. This ranges from:
- mathematical techniques in machine learning ("using transformer techniques for sequence prediction")
- techniques for using LLMs at runtime within a small codebase
- production model deployment and testing architectures
- experience reports or configuration tips with Cursor
- best practises for prompting
- how we secure our AI generated codebase
- hey guise I just discovered vibe coding will AI replace programmers i am surely the first person to ask this
- how to glue an LLM to your business data
- synergisting agentic blockchains in a mobile social local world: a tedx talk featuring one line of code on the last slide
You can see that we've struggled with what to do about the various categories for a while and have moved around in our approach and we'll probably do that for a while yet. I don't want to go banning every faddy thing that's briefly so popular as to be annoying but we also need to be careful with the content that we allow because it's what drives future submitters, so it can be self feeding. This topic also brings out the rabid fans and detractors alike, so it's easy to get lost in a vocal minority. (For that reason I'm not going to pretend that this is a fully democratic decision where we add up the vote counts or something: people are too willing to brigade on this stuff and we'll keep some subjectivity to avoid that.) At some point I believe these tools will be discussed as simply as we discuss compilers or OOP or GC or VX Modules, but currently the hype and doomerism are so rabidly partisan that it's hard to find honest examples.
Note that a confounding influence is that in the last month or so the new mods really got ramped up. I was removing things like that before but on a large delay, whereas now we're better able to enforce the rules we already had. So if what you're annoyed by is "will AI replace programmers?", be aware that this has no effect on that. We already remove it.
All of that said, we want to gather ideas and feedback on how we can best handle these categories of content and suggestions for how to draw the lines so we can meet our mission to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day.
https://redd.it/1t4odyl
@programmingreddit
Hello fellow programs!
In April we tried out a complete ban on LLM-related content. Today we're asking for feedback on how that went, and more generally what we want to do about this kind of content. Please comment below, but if all you're going to say is "I liked/hated it", please also indicate that you've read the nuance below.
To be clear we always have and will continue to ban content that's generated by an LLM. If you don't want to write it, we don't want to read it. And we also do and will continue to ban content that's not related to programming but about e.g. philosophy in AI or jailbreaking chatgpt. (Non-programming AI articles account for most of the AI-related content that we see and we remove quite a lot of them. This is not related to the April trial.)
So the nuance is that the only additional category of content that we banned in the April trial and are asking about here is programming content that is about AI. This ranges from:
- mathematical techniques in machine learning ("using transformer techniques for sequence prediction")
- techniques for using LLMs at runtime within a small codebase
- production model deployment and testing architectures
- experience reports or configuration tips with Cursor
- best practises for prompting
- how we secure our AI generated codebase
- hey guise I just discovered vibe coding will AI replace programmers i am surely the first person to ask this
- how to glue an LLM to your business data
- synergisting agentic blockchains in a mobile social local world: a tedx talk featuring one line of code on the last slide
You can see that we've struggled with what to do about the various categories for a while and have moved around in our approach and we'll probably do that for a while yet. I don't want to go banning every faddy thing that's briefly so popular as to be annoying but we also need to be careful with the content that we allow because it's what drives future submitters, so it can be self feeding. This topic also brings out the rabid fans and detractors alike, so it's easy to get lost in a vocal minority. (For that reason I'm not going to pretend that this is a fully democratic decision where we add up the vote counts or something: people are too willing to brigade on this stuff and we'll keep some subjectivity to avoid that.) At some point I believe these tools will be discussed as simply as we discuss compilers or OOP or GC or VX Modules, but currently the hype and doomerism are so rabidly partisan that it's hard to find honest examples.
Note that a confounding influence is that in the last month or so the new mods really got ramped up. I was removing things like that before but on a large delay, whereas now we're better able to enforce the rules we already had. So if what you're annoyed by is "will AI replace programmers?", be aware that this has no effect on that. We already remove it.
All of that said, we want to gather ideas and feedback on how we can best handle these categories of content and suggestions for how to draw the lines so we can meet our mission to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day.
https://redd.it/1t4odyl
@programmingreddit
Reddit
From the programming community on Reddit
Explore this post and more from the programming community
Multi-stroke text effect in CSS
https://yuanchuan.dev/multi-stroke-text-effect-in-css
https://redd.it/1t5is63
@programmingreddit
https://yuanchuan.dev/multi-stroke-text-effect-in-css
https://redd.it/1t5is63
@programmingreddit
yuanchuan.dev
Multi-stroke text effect in CSS
I used to see that retro multi-stroke text effect quite often and
tried to replicate it using the CSS text-stroke property,
but the results never quite matched.
Because text-stroke accepts a single value, stacking elements was the only workaround…
tried to replicate it using the CSS text-stroke property,
but the results never quite matched.
Because text-stroke accepts a single value, stacking elements was the only workaround…
Programming Still Sucks
https://www.stvn.sh/writing/programming-still-sucks-fqffhyp
https://redd.it/1t624ga
@programmingreddit
https://www.stvn.sh/writing/programming-still-sucks-fqffhyp
https://redd.it/1t624ga
@programmingreddit
stvn.sh
Programming Still Sucks. — Writing
Sorry Peter. — I'm at a birthday party, and while most people here also work in tech, there's always a Guy with a Real Job. You know, a physical job, building some or other thing people need. And this Guy always asks some variant of the same question: aren't…
The PHP License Is Dead; Long Live the BSD 3-Clause
https://fossforce.com/2026/05/the-php-license-is-dead-long-live-the-bsd-3-clause/
https://redd.it/1t6dspe
@programmingreddit
https://fossforce.com/2026/05/the-php-license-is-dead-long-live-the-bsd-3-clause/
https://redd.it/1t6dspe
@programmingreddit
FOSS Force
The PHP License Is Dead; Long Live the BSD 3-Clause - FOSS Force
The PHP Group retires its quirky, and partly non‑GPL‑compatible licenses in favor of the widely used BSD 3‑Clause.
Containers Aren’t Just Linux Processes
https://labs.iximiuz.com/tutorials/oci-containers-explained
https://redd.it/1t6l9kw
@programmingreddit
https://labs.iximiuz.com/tutorials/oci-containers-explained
https://redd.it/1t6l9kw
@programmingreddit
iximiuz Labs
What Is a Standard Container: Diving Into the OCI Runtime Spec | iximiuz Labs
Are all containers just Linux processes? How does the OCI runtime specification define a container? What platforms do OCI containers support? What is a Docker container? Linux containers vs. Virtual Machine containers.
Bjarne Stroustrup: How do I deal with memory leaks? By writing code that doesn't have any.
https://www.stroustrup.com/bs_faq2.html#memory-leaks
https://redd.it/1t7ax31
@programmingreddit
https://www.stroustrup.com/bs_faq2.html#memory-leaks
https://redd.it/1t7ax31
@programmingreddit
Reddit
From the programming community on Reddit: Bjarne Stroustrup: How do I deal with memory leaks? By writing code that doesn't have…
Posted by someone-very-cool - 124 votes and 61 comments
Mozilla: Behind the Scenes Hardening Firefox
https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/
https://redd.it/1t7it4t
@programmingreddit
https://hacks.mozilla.org/2026/05/behind-the-scenes-hardening-firefox/
https://redd.it/1t7it4t
@programmingreddit
Mozilla Hacks – the Web developer blog
Behind the Scenes Hardening Firefox with Claude Mythos Preview
New details about what we found, and how agentic harnesses are now able to reproduce real bugs and dismiss false positives.
You should read Programming as Theory Building
https://codeutopia.net/blog/2026/05/09/you-should-read-programming-as-theory-building/
https://redd.it/1t81wbu
@programmingreddit
https://codeutopia.net/blog/2026/05/09/you-should-read-programming-as-theory-building/
https://redd.it/1t81wbu
@programmingreddit
codeutopia.net
You should read Programming as Theory Building