News for hackers. Stuff that matters.
Re:I stopped everything and started writing C again by codr7 on Wednesday March 12, 2025 @09:19AM (#43342948)
Compared to C I'd say the biggest issue is complexity, of which compile time is a consequence.
Re:I stopped everything and started writing C again by baq on Wednesday March 12, 2025 @09:25AM (#43343003)
The C standard makes provisions for compiler implementers which absolve them from responsibility of ignoring the complexity of the C language. Since most people never actually learn all the undefined behavior specified in the standard and compilers allow it, it might seem the language is simpler, but it's actually only compilers which are simpler.

You can argue that Rust generics are a trivial example of increased complexity vs the C language and I'd kinda agree: except the language would be cumbersome to use without them but with all the undefined C behavior defined. Complexity can't disappear, it can be moved around.

Re:I stopped everything and started writing C again by codr7 on Wednesday March 12, 2025 @09:53AM (#43343272)
True, if C wanted to be Rust it would be just as complicated.

But who cares?

The fact that C chooses not to nail everything down makes it a simpler and more flexible language, which is why it's sometimes preferred.

Re:I stopped everything and started writing C again by Dylan16807 on Wednesday March 12, 2025 @02:01PM (#43345964)
Undefined behavior does not make things simpler.
Re:I stopped everything and started writing C again by codr7 on Wednesday March 12, 2025 @04:09PM (#43347184)
It does too make the language simpler, and there's no way to rustle your way around that fact.
Re:I stopped everything and started writing C again by Dylan16807 on Wednesday March 12, 2025 @05:19PM (#43347791)
It makes the document describing C simpler.

It makes the C semantics you are coding against more complex. Lots of unlisted or handwaved things in the spec become problems you need to keep in mind far more often than you would with better definitions.