Comments by "Anony Mousse" (@anon_y_mousse) on "ForrestKnight"
channel.
-
20
-
12
-
10
-
8
-
5
-
5
-
5
-
3
-
3
-
2
-
2
-
2
-
2
-
2
-
2
-
2
-
1
-
1
-
1
-
1
-
1
-
1
-
One minor correction for that meme you showed, the Rust maintainers don't consider memory leaks to be unsafe, and Rust won't prevent most of them from occurring anyway. Although, that's the least of your worries because there's still a lifetime leakage bug in the compiler. For those criticizing the safety of C and/or C++, there are tools for checking the correctness of your programs for both C and C++, and these programs are free and open source, and they're older, more battle tested and in general just better than the Rust compiler.
That said, since no one bothers to learn what was written before, I'll tell you that you can use GC in plain ol' C too. If you really want to be lazy with memory management, look into Hans Boehm's GC and rejoice at how easy it is to setup and use. I can't say if it's better than Go's or Java's GC because I've never actually used it for more than a talking point to show that it's possible in C, and has been since at least the 90's, but if you really need GC, you can have it even in C.
Finally, as I've been learning Rust, being a student of as many languages as I can be (but not a literal student mind you), I see that it's basically just the same as C++, only with a shittier syntax. If you write correct code in C++, then Rust's borrow checker will only sometimes annoy you. There are a lot of instances where correct code gets flagged by it, but this is why you should just use C++ instead. If you write your code in an idiomatic way in C++, then you'll never have safety issues with your code. If you write code in C the way I do, then you'll never have safety issues with your code either, but not everyone is capable of writing like I do. It requires a different mindset which most people these days seem incapable of acquiring.
TL;DR: Ha ha ha! You'll never read this. YouTube will probably filter it anyway.
1
-
1
-
1
-
1
-
1
-
1
-
While my main language is C, and that's certainly not going anywhere, I've been keeping up my skills in about 10 other languages. As I've been writing compilers and other such programs for the majority of the past 25 years, I see things from a different perspective than other developers. The way I see it is that C++ and Rust are basically the same language with all of the same solutions, except that Rust chose defaults that directly oppose C++'s chosen defaults, and it chose a syntax which is less consistent and to my mind uglier, and they chose to prevent certain types of solutions based on them merely seeming hinky.
So while C++ by default isn't necessarily considered safe, the programmer can write their code correctly and even take extra steps to ensure that their code is safer for others to extend their work. However, tooling has existed for decades now which enables programmers to be sloppy and check their work the way `rustc` does, and even add on extra checks that `rustc` doesn't do.
Also, the 70% figure is an unwitting lie on Microsoft's part because they're expressing the effect, not the cause. The cause of at least 95% of all bugs, in any user facing software anyway, is that of a failure to check user input. Inadequate and/or incomplete checks are still a failure to check user input.
1
-
1
-
No matter what they add to Java, they can't take away enough to make me stop hating it. However, C# is an even worse language. Requiring an unsafe keyword is one of the dumbest moves that any programming language can make, and there are at least three that have made that stupid decision and I hate them more for it. If you want a good language that's not C, or possibly C++, then I'd suggest Pascal. Download a copy of Lazarus and Free Pascal and have a lot of fun programming. If you don't care about efficiency at all and you just want to have fun, then find a DOS emulator and use QBasic. Otherwise, if you want to do good work, learn both C and C++, and make no mistake, they are very separate languages. Read their ISO standards and you'll be a better programmer for it.
1
-
1
-
1
-
1
-
1
-
1
-
1
-
I think that Java was ahead of its time with the idea of compiling to a generic bytecode and running in a VM, but the implementation was still done wrong. The language itself is far too verbose, it's basically a less utile C++, and truthfully, computers at the time weren't capable of running it adequately. Now it's perfectly fine, but GC languages are in general a bad thing. I'd love to see someone come up with a non-GC language that compiles to a generic bytecode and has a "VM" that generates a native binary on the first-run. Sort of like C#, but not a garbage clone of Java that's worse than what it cloned. Languages with "unsafe" keywords are beyond stupid. Programming is unsafe, and if you don't know what you're doing, you probably shouldn't be programming.
I expect you'll disagree with this, but you have to admit that there are far too many programmers that really should be in a different field these days. Far too many people have gotten into programming because they saw people making a lot of money and they wanted in on it, but they have no desire to be good at it.
1
-
1