Every major exploit over the past few years has been because of how unsafe C is.
When are we going to dump this trash?
Every major exploit over the past few years has been because of how unsafe C is.
When are we going to dump this trash?
Best trash to ever grace a computer.
That would be Rust
When we abandon “faster, faster, faster” tendency.
No thank you. I don't require training wheels.
t. Heartbleed programmer
t. shitty programmer
There's nothing especially bad about C, it's merely the fact that low-level languages are needed at some point to develop any kind of software, and low-level languages can easily have security problems if used improperly. Really the problem is using C for application development when a higher level language would be more suitable. Pretty much everything in a high level language is built on something low level like C anyway, however if the underlying code is programmed well, you won't have security issues. High level languages limit your power so that you don't have to worry about security, but there's still a need for good low-level programmers to facilitate all that in the first place.
>i'm too dumb to learn rust ownership
Exactly. You can't just skip the hardware level.
Programmers need to git gud.
It's not the language's fault.
C assumes that the programmer is always right and knows exactly what they're doing.
Not every person is responsible enough to handle the ultimate power of C.
If C assumes the programmer is always right, and as a human you know it's impossible to always be right, wouldn't you then assume that you will eventually run into a problem?
You can prove you are right if you dont program like a retard
Yes, but in a sense that's a problem with any programming language. You could always type a plus where you meant a minus. That's why you're supposed to test software before releasing it. C just requires paying more attention to memory allocation and pointers.
>borrow checking
>training wheels
By that logic, RAII is training wheels.
And if you think so, please do us all a favor and jump of a cliff.
Probably never. It's the go to language for operating systems, embedded systems, and general low level goodness. That doesn't mean it should be used for everything, however.
> with other languages however, you never run into problems
hi zed shaw
We can't dump C, nothing comes close to be better for microcontrollers.
>RAII is training wheels.
not him but RAII has some serious and underappreciated drawbacks.
implicit cleanup mandates non-throwing destructors, and not every system design is well suited to sweeping cleanup-time errors under the rug.
not that lazy-ass GC systems solve this problem exactly either, but synchronous silent tear-down is sometimes worse than careful manual destruction of state.
Funnily enough, this is actually where Rust shines, it's one of the few languages where unwinding combined with error handling is done properly.
Though RAII is by no means suited to every problem, you're quite right.
>every major exploit over the past few years has been because we teach shit languages to people and when they have to use C they don't know shit about secure programming
Fixed, you dumbshit.