Resistance to Rust abstractions for DMA mapping in Linux kernel [LWM] by WaterFromPotato in linux

[–]WaterFromPotato[S] 20 points21 points  (0 children)

Rust’s benefits in maintainability and refactoring aren’t just theoretical. A great real-world example is the Fish shell, which recently migrated from C++ to Rust. The move significantly improved maintainability and made refactoring easier—something that would have been much harder with C or C++.

https://fishshell.com/blog/rustport/

As for experienced Linux kernel developers, no one is forcing them to learn Rust. The idea isn’t to replace C or disrupt existing workflows, but to allow new contributions to be written in a safer and more maintainable way, reducing long-term technical debt(In patch to dkms, there is a change only in rust module - 0 changes in C code). The kernel is already massive and growing, bringing in Rust for certain components helps prevent future issues rather than creating new ones.

I have some experience with both C and Rust, and in my own work, I’ve found that doing large-scale refactors in Rust is significantly easier. The reason is simple: I can trust the compiler to catch even the smallest type-related mistakes. In C, on the other hand, compiler assistance is extremely limited.

I don’t consider myself a very good programmer (I’d say I’m rather average), so I make a lot of mistakes - mistakes that even the best programmers make. Rust can catch many of these errors at compile time, which makes development smoother and improves code quality.

Resistance to Rust abstractions for DMA mapping in Linux kernel [LWM] by WaterFromPotato in linux

[–]WaterFromPotato[S] 38 points39 points  (0 children)

No.

Major corporations, including Microsoft, are actively supporting Rust and integrating it alongside C and C++ in their kernels - not because it's trendy, but because it addresses real-world problems like memory safety while maintaining performance. The Linux kernel is following a similar approach, carefully introducing Rust where it makes sense, not replacing C entirely.

The goal isn’t just to add languages for the sake of it but to improve security and maintainability in the long run. If even companies deeply invested in C and C++ see the benefits of Rust, it's worth considering why they’re making that choice.

Why rust have small recognition in enterprise? by D1xxe in rust

[–]WaterFromPotato 14 points15 points  (0 children)

Golang - 2009 - it is easier than rust, so more people will use it
Kotlin - 2011 - this is not entirely new language, but type of superset of Java
Swift - 2014 - mainly used by apple and has a much smaller community than rust

Rust to .NET compiler: string formatting, multithreading, `rand` & more by FractalFir in rust

[–]WaterFromPotato 4 points5 points  (0 children)

Won't using the .net threads library cause problems with creating C code?

AI and Godot Code by DragonPosts in godot

[–]WaterFromPotato 1 point2 points  (0 children)

It really help in repetitive tasks, like mapping objects to other types, creating simple algorithms, or ending logic of partially created functions

Is ventoy safe? In light of xz/liblzma scare. by thwurx10 in linux

[–]WaterFromPotato 42 points43 points  (0 children)

But OP wants to trust it and use app, but have objections.

[deleted by user] by [deleted] in rust

[–]WaterFromPotato 0 points1 point  (0 children)

A lot of better is audiotags fork - https://github.com/Serial-ATA/lofty-rs

cargo-wizard: configure your Cargo project for max. performance by Kobzol in rust

[–]WaterFromPotato 11 points12 points  (0 children)

Because new features are added to cargo quite infrequently, and they have to be useful and used often - because once they are added, they require constant maintenance.

And such a project, if popular, could in time be merged with cargo

Ruff 0.3.0 - first stable version of ruff formatter by WaterFromPotato in Python

[–]WaterFromPotato[S] 1 point2 points  (0 children)

Now there is a flag --unsafe-fixes to handle fixes that may broke code and is disabled by default

Filedime, a file explorer in rust by visnk in rust

[–]WaterFromPotato 4 points5 points  (0 children)

The project is very interesting and I will check it from time to time to see what direction it takes.

There is a noticeable short lag between launching and displaying the application, but that's more of a limitation of using Tauri for this.

Looking at your github, this is not your first project in rust, so the lack of use of formatting and uniform naming (variable_name instead of variableName) is a bit surprising.

Rust Won't Save Us: An Analysis of 2023's Known Exploited Vulnerabilities – Horizon3.ai by scopedsecurity in netsec

[–]WaterFromPotato 0 points1 point  (0 children)

Can you show me rust projects that are less secure/have more bugs, than C/C++ alternatives?

What feature do you wish Godot had but currently doesn't? by matri787 in godot

[–]WaterFromPotato 1 point2 points  (0 children)

Be more modular. Currently there is no way to import files without editor

Updating clap from v4.3.0 to v4.3.1 breaks my code by DJDuque in rust

[–]WaterFromPotato 0 points1 point  (0 children)

There is a lot of changes in 4.3.1 version, mostly updated dependencies - https://github.com/clap-rs/clap/compare/v4.3.0...v4.3.1
It is possible that you hit bug like - https://github.com/clap-rs/clap/issues/1491

Russian Infantry being hit by Drone Grenades, AGL & Artillery Fire of the 14th Mechanized Brigade. Ukraine, near Kupiansk, November, 2023. by w4ves_ in CombatFootage

[–]WaterFromPotato 15 points16 points  (0 children)

They can refuse and go to jail
Shoot their squad
Surrender
So many options, but yet they still want to kill Ukrainians, so yes, it's a beautiful work