Re:The Browser Is the Worst Sandbox Ever Designed
by pjmlp on Friday July 15, 2016 @08:03AM
(#12100367)
The problem with C to write secure software, it not only the set of language features for numeric, array and pointer manipulation that make it so easy to write exploits.
It is also the long set of compiler specific behaviors, sometimes version specific even, and UB. All of each very hard for a human to keep all the time on its head.
Hence why we have things like static analyzers, MISRA and Frama-C and still falls through the cracks.
Re:The Browser Is the Worst Sandbox Ever Designed
by loudmax on Friday July 15, 2016 @07:58AM
(#12100343)
Of course it's possible to write secure code in C, just as it's possible to write non-secure code in Rust. You can also drive a car at high speed with no seatbelts or airbags. If your code absolutely needs to be written in C, then do it, and do it carefully. If you're starting a new project and security is a concern, you ought to consider wearing a seatbelt.
Re:The Browser Is the Worst Sandbox Ever Designed
by Ygg2 on Friday July 15, 2016 @09:00AM
(#12100614)
Sure and you can build house out of anything, including Lego Blocks and Saltine Crackers. It's just that securing a brick house against rain is a lot easier than doing the same with house made of Saltine Crackers.
Re:The Browser Is the Worst Sandbox Ever Designed
by FreeFull on Friday July 15, 2016 @09:59AM
(#12100965)
http://www.dailymail.co.uk/news/article-1214729/James-May-si... James May once had a house made from Lego
Re:The Browser Is the Worst Sandbox Ever Designed
by Ygg2 on Friday July 15, 2016 @10:49AM
(#12101354)
Yes, and it had numerous plumbing problems. Your point?
Re:The Browser Is the Worst Sandbox Ever Designed
by mavhc on Friday July 15, 2016 @10:46AM
(#12101329)
The Daily Mail once suggested it was a good thing "the gay gene" had been found so gay babies could be aborted, find another website
Re:The Browser Is the Worst Sandbox Ever Designed
by bluejekyll on Friday July 15, 2016 @10:02AM
(#12100981)
(safe) Rust allows developers the freedom to focus on logic, and not memory safety or undefined behavior. Being able to focus on just logic is why people have turned to memory safe languages for years. Rust finally does it with almost no runtime cost over that of C.
Even unsafe Rust offers more guarantees than C. But is a spot where you can remove the guard rails.
C was/is an amazingly performant language, but you're kidding yourself if you believe that most developers can write software as securely in it as they could in Rust.
developers do...
... and they (might) use something like Rust... they could also (believe it or not) use C.