Stories
Slash Boxes
Comments

SoylentNews is people

posted by CoolHand on Friday May 08 2015, @09:01PM   Printer-friendly
from the off-with-its-head dept.

Ladies and gentlemen, the C programming language. It’s a classic. It is blindingly, quicksilver fast, because it’s about as close to the bone of the machine as you can get. It is time-tested and ubiquitous. And it is terrifyingly dangerous.

The author's biggest issue with the C language seems to be security holes:

If you write code in C, you have to be careful not to introduce subtle bugs that can turn into massive security holes — and as anyone who ever wrote software knows, you cannot be perfectly careful all of the time.

The author claims that the Rust language is a modern answer to these issues and should replace C (and C++). It does look that Rust can run C code, so it looks like an interesting proposition. What do Soylent's coders think about this?

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 4, Interesting) by FatPhil on Saturday May 09 2015, @08:11AM

    by FatPhil (863) <{pc-soylent} {at} {asdf.fi}> on Saturday May 09 2015, @08:11AM (#180675) Homepage
    I recently (2 yrs ago) went to a software/platform conference where there was a presentation by some early Rust adopters, and they leaked the information to the audience that there is still the ability to create invalid pointers in the language "if you know what you're doing". Which is precisely what I've been doing in C for 25 years.

    I guess if TSA is security theatre, then Rust is secure-code theatre.
    --
    Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
    Starting Score:    1  point
    Moderation   +2  
       Insightful=1, Interesting=1, Total=2
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 0) by Anonymous Coward on Saturday May 09 2015, @11:00PM

    by Anonymous Coward on Saturday May 09 2015, @11:00PM (#180884)

    Oh please. Do you not wear seatbelts because it is still possible to die in a car accident even while wearing a seatbelt?

    Any language that allows direct memory access in any fashion has that 'problem.'

    But the idea is that the normal path is safe unlike C.

    You got that black and white geek thinking problem - the fact that it is possible to do something dangerous is not the same as it being easy to do something dangerous.