[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Every major exploit over the past few years has been because

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 22
Thread images: 2

Every major exploit over the past few years has been because of how unsafe C is.

When are we going to dump this trash?
>>
>>55898753
Best trash to ever grace a computer.
>>
>>55898954
That would be Rust
>>
>>55898753
When we abandon “faster, faster, faster” tendency.
>>
>>55898988
No thank you. I don't require training wheels.
>>
>>55899019
t. Heartbleed programmer
>>
>>55899027
t. shitty programmer
>>
>>55898753
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.
>>
>>55899019
>i'm too dumb to learn rust ownership
>>
>>55899906
Exactly. You can't just skip the hardware level.
>>
>>55898753
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.
>>
>>55901029
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?
>>
>>55901106
You can prove you are right if you dont program like a retard
>>
>>55901106
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.
>>
File: gaius.jpg (18KB, 400x266px) Image search: [Google]
gaius.jpg
18KB, 400x266px
>>55899019
>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.
>>
>>55898753
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.
>>
>>55901106

> with other languages however, you never run into problems
>>
>>55898753
hi zed shaw
>>
We can't dump C, nothing comes close to be better for microcontrollers.
>>
>>55901991
>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.
>>
>>55904558
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.
Thread posts: 22
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.