News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ by johnbellone on Thursday August 17, 2023 @04:26PM (#37167473)
But it isn’t Rust.
Re:A Guide to Undefined Behavior in C and C++ by angiosperm on Thursday August 17, 2023 @04:49PM (#37167856)
Hardly anything is. Literally none of the programs on my machine are coded in Rust. (Firefox is reputed to have a bit in it.)
Re:A Guide to Undefined Behavior in C and C++ by jacquesm on Thursday August 17, 2023 @04:54PM (#37167914)
Re:A Guide to Undefined Behavior in C and C++ by dralley on Friday August 18, 2023 @09:45AM (#37175538)
If you're running Windows 11, you have Rust running in your kernel. Look it up.

Someone else posted statistics that show Firefox being 10% Rust, but I'm not sure it makes sense to include HTML and Python and JavaScript in the comparison. If you compare Rust against C/C++, it's 20%

Re:A Guide to Undefined Behavior in C and C++ by angiosperm on Friday August 18, 2023 @12:24PM (#37177960)
Who runs Windows?

There is no such language as C/C++. I presume you mean the sum of C and C++, and that you omit external libraries from the tally.

Re:A Guide to Undefined Behavior in C and C++ by dralley on Friday August 18, 2023 @01:05PM (#37178662)
> I presume you mean the sum of C and C++

"I'd just like to interject for a moment. What you're refering to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX."

Pedant

>and that you omit external libraries from the tally.

Mozilla vendors their dependencies. They're counted.

Re:A Guide to Undefined Behavior in C and C++ by jacquesm on Thursday August 17, 2023 @04:51PM (#37167887)
Lots of things 'aren't Rust'. In fact almost everything isn't Rust. For now. That may change in due course but right now I would guestimate the amount of Rust code running on my daily drivers to pretty close to zero%. The bulk is C or C++.