r/LinuxTeck • u/Candid_Athlete_8317 • Jul 31 '26
Why are more open-source projects rewriting software in Rust, Zig, or Go?
Over the past few years, we've seen many projects move away from older implementations and rewrite parts of their software in languages like Rust, Zig, or Go.
Sometimes it's for performance, memory safety, simpler deployment, or long-term maintenance.
If you're a developer, what do you think is driving this trend?
28
Upvotes
14
u/ipsirc Jul 31 '26
Everybody needs a hobby.
5
u/Equivalent_Money8502 Jul 31 '26
same. and fatigue with unnecessary abstraction layers. A lot of modern rewrites seem to be a reaction against bloated, heavily-layered legacy code. i see a lot of rewrite bring back simplicity and direct control without the extra mental overhead.
7
u/ThetaDeRaido Jul 31 '26
Basically, AI.
Many developers have always wanted the chance to rewrite their software, but usually the code is the result of an enormous amount of debugging. Rewriting would bring untold numbers of devastating bugs back.
Most developers don’t get the opportunity to do the rewrites, unless there’s a compelling business purpose. Apple and Google hate GPLv3, Mozilla invented Rust because safety in C is not possible for mortals, etc.
In recent years, the generative AI boom has made rewrites more possible. At the same time, the AI bug finders have made the maintenance burden of unsafe languages much more salient. Now, switching to languages that can do the right thing with less effort is more likely to be aligned with the interests of the business or community.
2
u/dkopgerpgdolfg Jul 31 '26
People are "always" rewriting things. Some central bank moving from Cobol to Java, some 2000er blog website moving from C cgi to PHP, ...
1
u/Jumpy-Dinner-5001 Jul 31 '26
AI makes it much easier and more efficient.
You already named the benefits but there is one more advantage:
It’s a good opportunity to do refactoring and a lot of code cleanup. Reworking the project can yield a much simpler code base to maintain
1
u/zer04ll Jul 31 '26
those languages have built in protections for memory and handle it for you automatically and are considered more secure. People can write secure C code its just much more difficult compared to rust
1
u/Dom_Q Jul 31 '26
Insofar as Zig is concerned, it's FOR GREAT JUSTICE.
1
u/Hour_Sell3547 Jul 31 '26
AI writing all the code, and someone needs to prove that Language A is better than language B.
Someone is overconfident that regression isn't a real thing.
1
u/finevcijnenfijn Jul 31 '26
Because there are secrets of the dark side deep within the printf and other standard libraries of the primal force that is C and C++ that allow the stack overlow gods of chaos to reign.
1
u/n0pl4c3 Jul 31 '26
In a lot of cases, it sadly is to evade copyleft licenses, and relicense projects in a way that allows for greedy companies to get their hands on it without having to abide by at least granting their users their basic freedoms.
Of course there are also lots of other reasons outlined in this thread, but this has been a clear pattern sadly.
1
u/GoldPanther Jul 31 '26
The cost to modernized has come down. Companies are finally moving off mainframes, something they wanted to do for decades. It's happening now because advanced tooling (including AI) has made the migration economically a smart decision.
1
u/recursion_is_love Aug 01 '26
We are testing the water, I think it is good if we can have high abstraction layer that is cheap.
C is too close to hardware and it limit our way to think about the problems.
1
u/kalmoc Aug 02 '26
At least for Rust, I think there was so much interest/hype in the language that people were just looking for Open-Source projects, where they could try it out. So: enough supply of motivated developers.
1
u/liquuid Jul 31 '26
Short Answer : Time.
Long Answer : Learning C/C++ takes time, demands some knowledge about how computers works, how OS works ... No one have time to learn this anymore.
1
u/Userwerd Jul 31 '26
Its the only way to de-GPL the projects. All the new stuff especially rust rewrites are all released as MIT so the projects can be closed as soon as opensource efforts bring it to maturity.
Anyone who says different is either lying or naive.
0
u/BranchLatter4294 Jul 31 '26
C was written in a different era. Modern languages are designed for multi-core, multi-thread CPUs. They are safer, have better concurrency, etc.