News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ by zer8k on Thursday August 17, 2023 @04:33PM (#37167586)
Except gluing yourself to LLVM has it's own problems. Like, for example, any platform that LLVM doesn't support you can't support either. LLVM is great. The monoculture and smug elitism it produces is not.

> Acting like it's a second tier language because actively doing so not a top focus of the community is gatekeep-y and ridiculous.

It is probably one of the major reasons we won't see a Rust compiler shipped with an operating system for a very long time. That doesn't make it second tier. However, Rust fans seem to want to stick their head in the sand when their baby is criticized. I am a Rust (language) fan myself. I am just willing to criticize the language. I do not understand why the Rust community has such a volatile response to honest, valid, criticism.

Re:A Guide to Undefined Behavior in C and C++ by learn-forever on Thursday August 17, 2023 @04:36PM (#37167651)
it's a ridiculous criticism, and the insult doesn't make it less ridiculous
Re:A Guide to Undefined Behavior in C and C++ by dralley on Thursday August 17, 2023 @04:45PM (#37167796)
>It is probably one of the major reasons we won't see a Rust compiler shipped with an operating system for a very long time.

Even most linux distros don't ship with GCC out of the box... much less MacOS and Windows with their respective compilers.

If your standard is "Gentoo and FreeBSD will never ship it out of the box" then I'm going to 100% stand by my statement that this is weird and gatekeep-y.

Especially when the Windows kernel and userspace system libraries both have Rust in them.

https://www.bleepingcomputer.com/news/microsoft/new-windows-...

https://www.thurrott.com/windows/282471/microsoft-is-rewriti...

Re:A Guide to Undefined Behavior in C and C++ by tialaramex on Thursday August 17, 2023 @06:35PM (#37169137)
> we won't see a Rust compiler shipped with an operating system for a very long time.

I can't figure out what this constraint means.

My Windows laptop doesn't seem to have provided a C compiler, so, maybe that's a problem for Windows?

Huh, well I guess I can buy or download a third party compiler, that's easy enough, but then, I can do that for Rust too, so, doesn't seem like a difference.

Meanwhile on this Fedora machine, the Rust compiler came with the OS. So, is this not an operating system? Maybe the stuff it comes with isn't "shipped with" it somehow? And so there's no C compiler "shipped with" this operating system either, although GCC was installed too ? I just don't know what to make of such a criticism.