Comments by "" (@diadetediotedio6918) on "There is Rust in the Kernel!" video.
-
7
-
4
-
4
-
3
-
3
-
3
-
3
-
2
-
2
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
@swordcreeper7754
I wouldn't say that Rust takes away the programmer's freedom, any more than a magnetic screwdriver would take away its users' freedom, or a car with crash sensors, I think that's more a way of ensuring that errors don't occur than a freedom removal per se (besides that you can evade most of the rust rules, you just need to use insecure code). I would say that in a way, we need to restrict ourselves whenever we are going to write secure and readable code, this is true for Rust but also for C, C++ or any low-level language, if you turn on static analysis in languages like C or C++ (or if you focus on just using smart pointers, they are the recommended patterns to write memory management) you would also be "restricting your freedom" in some sense, I would say it's just the principle of languages that differs this feeling, in the sense that one brings it by default, and the others you need to turn it on , both are a choice.
1
-
@diobrando2160
No, this does not "defeat the point of using Rust", insecure code exists in all languages, the difference lies in the intensity of its use and the ability to efficiently encapsulate insecure code in secure code. This is a beginner's argument and it's pretty bad.
And yes, C, C++ and Rust are low-level languages, they just aren't low-level languages compared to ASM and even lower-level languages, however clearly they are low-level compared to more abstract languages like C#, JavaScript, Python , etc...
1