It is not my intention, but a topic I found in the internet.Rust killing C... Maybe it will kill also COBOL, C#, Perl and PHP.
This kind of foundational stuff happens very slowly. We will all be long dead before C (or even C++) ever starts to disappear and FreeBSD begins having to rewrite code.Only the future can tell what will happen I guess.
My favorite of WC FieldsYou're ugly.
And you're drunk.
Yes, but I'll be sober tomorrow.
As I searched the web today, I found that Bjarne Stroustrup called for assistance/help, for making the language more memory-safe ?
I do not really know how to interpret this, but if C++ really dies, does C also die ?
The American government, cybersecurity experts, etc claim that C/C++ is the source of many memory corruptions, exploits, etc, due to their unsafe memory handling, and everyone should move to memory-safe alternatives like python, C#, Rust, etc ?
Sure, there can be memory errors, but is the source not to 99% always the user ?
What does everyone think about it ?
I mean, if everyone ditches C/C++ no one will make new standards, upgrades, etc, right ?
We all can complain about how Rust has shortcomings - but is there a good, academic article that actually compares the two languages side-by-side, and have some solid benchmarks?
Otherwise, it sounds like pro-Rust and anti-Rust camps are full of people who are rather uninformed about the other camp, and draw conclusions based on very superficial/second-hand info, without considering how correct it really is.
The CHERI Project doesn't get enough mention around here or in the greater open source world. They're doing a lot of really game changing stuff there. Since they're addressing the problem at the lowest level; it really makes this whole debate regarding memory safety and Rust moot IMO.
Brought to you by us FreeBSD folk too. I might add.
Not Perl (or python). Script languages address a different problem domainRust killing C... Maybe it will kill also COBOL, C#, Perl and PHP.
This is pretty much how languages gain popularity since C became established. Amusingly Bjarne was kind of called out for this:Bjarne and friends have spent more time on politics than coding for most of my adult life.
Stroustrup campaigned for years and years and years, way beyond any sort of technical contributions he made to the language, to get it adopted and used
- Ken Thompson
When I talk about benchmarking a language, my assumption is taking a specific codebase, like a library, and seeing if a given implementation performs faster, has fewer bugs, is easier to maintain... We even have an example right here in ports: devel/re2c. It's got 3 implementations: in C, Golang and Rust. You can even take several projects that have implementations in different languages, and see if a given language is a persistent winner in terms of say, performance or bugs.Benchmarks. LOL. Programming language benchmarks are incredibly difficult and rarely even attempted since they always get torn to shreds right after publication. They are also bogus since you can unfold all kinds of things in the source code that you would keep abstract in a non-benchmarking situation for later changebility. That's actually the biggest issue here.
Android is based on the Linux kernel and OpenBSD's libc. Then on top it has Kotlin & Java.When a language is picked for a given project, its suitabiity for the project is usually a consideration.There are embedded Java projects out there, but when it comes down to metal, C is still needed. Even Android was at one point touted as a huge use case of Java (Remember how Oracle sued Google over that?), but even Android has parts written in C, because C was shown to be faster than Java... even with Java having specific advantages over C.
These technical writings of Rust are taken from somewhere on the internet...Kind of a silly topic, eventually, but it is still interesting to see how far Rust has come.
I am a big C fan, and C++ was my go-to language for 9 years so, I would not be happy if Rust just overtakes C++ position.
As I searched the web today, I found that Bjarne Stroustrup called for assistance/help, for making the language more memory-safe ?
I do not really know how to interpret this, but if C++ really dies, does C also die ?
The American government, cybersecurity experts, etc claim that C/C++ is the source of many memory corruptions, exploits, etc, due to their unsafe memory handling, and everyone should move to memory-safe alternatives like python, C#, Rust, etc ?
Sure, there can be memory errors, but is the source not to 99% always the user ?
What does everyone think about it ?
I mean, if everyone ditches C/C++ no one will make new standards, upgrades, etc, right ?
Rust is a modern, secure and fast programming language. It offers a simple syntax, a wealth of development tools and a committed developer community. This makes it ideal for developing high-performance and secure applications. For these reasons, Rust has become one of the most popular programming languages today.
Advantages:
1. Rust provides excellent memory safety, which means that common memory errors such as buffer overflows and pointer errors are virtually impossible. This makes Rust an ideal language for safety-critical applications.
2. Rust is a high-performance language. This means that programs written in Rust run much faster than programs written in other languages. This makes it ideal for applications that require high performance.
3. Rust is a general purpose language, which means it can be used for almost anything. This makes it ideal for projects of all sizes, from small personal projects to large corporate projects.
4. Rust is a modern programming language, which means it is designed to be easy to learn and use. This makes it ideal for beginners and experienced programmers alike.
Disadvantages:
1. Rust is a relatively new programming language, which means that there is a learning curve for programmers. This can be a disadvantage for those who are used to older languages.
2. Rust is a general-purpose programming language, which means that it is not specially designed for any particular purpose.
This can be a disadvantage for those who are looking for a language specifically designed for a particular purpose.
3. Rust is a high-level programming language, which means that programs written in Rust may be more difficult to debug than programs written in low-level languages. This can be a disadvantage for those looking for a programming language that is easy
to debug.
It was irony for the new turbo-language that will kill C. Future FreeBSD version rewritten in Rust.Not Perl (or python). Script languages address a different problem domain![]()
Looks like generic AI noise to me...These technical writings of Rust are taken from somewhere on the internet...
The Rust Programming LanguageLooks like generic AI noise to me...
What did you say the link to the source was again?
This one?The Rust Programming Language
Don't be surprised nobody is perfect, I don't know if there are mistakes or not in that publication, however publication on the internet this tituled in the image of the book Rust Programming Language, and as a surfer to open link I made to take the publication by putting it here, and I immediately closed the web page.This one?
Still not seeing what part you quoted. Besides, there are some incorrect facts in your above quote. I would be surprised if the Rust book would have made those mistakes.
You sure you didn't just plug it into ChatGPT?
Rust isn't sandboxed either, so I doubt that's what they're referring to. There's a clear preference from both the programmer and the commercial sides for the relative ease of writing sound code without having to worry about accidentally pushing your pointers off the valid memory behind them and into ACE territory.Not following lots of debate about this but I personally have the suspicion that the "memory-unsafe" problem actually means "not sandboxed", which is commercially motivated. It's about control of computers by end-users.
Don't overindulge in popcorn of corn, it's fattening, and overweight is bad for your health, it attracts diseases.Rust isn't sandboxed either, so I doubt that's what they're referring to. There's a clear preference from both the programmer and the commercial sides for the relative ease of writing sound code without having to worry about accidentally pushing your pointers off the valid memory behind them and into ACE territory.
Plenty commercial, government, and programmer pet projects aren't in Rust and won't be either. And that's fine, everyone has their preferences. And even I, devout Rust lover, know that Rust isn't always the answer. Some folks turn it into the next religious war, I just enjoy my fearlessly concurrent popcorn and watch