News for hackers. Stuff that matters.
Re:Getting Past C by burntsushi on Tuesday January 03, 2017 @10:21PM (#13315408)
That's a great quote, and it's one that Rust---as a a memory safe language---completely embraces. You have the freedom to do anything you want. Some of those things simply require you to type "unsafe."
Re:Getting Past C by pekk on Tuesday January 03, 2017 @11:41PM (#13315734)
Forgive me for being cheeky, but just as Rust requires you to type "unsafe," C also requires you to opt in by typing "cc".

My serious point is that in practice, the example of C shows that if it is available and people understand that it is "performant" then you will see it all the time, including in libraries you are forced to use.

Re:Getting Past C by burntsushi on Wednesday January 04, 2017 @08:56AM (#13318243)
> Forgive me for being cheeky, but just as Rust requires you to type "unsafe," C also requires you to opt in by typing "cc".

This isn't an accurate analogy at all because I can compile thousands of lines of Rust code without even thinking about needing to use `unsafe`. How many lines of C code can you compile without `cc`?

> My serious point is that in practice, the example of C shows that if it is available and people understand that it is "performant" then you will see it all the time, including in libraries you are forced to use.

Except this is already demonstrably false in the Rust ecosystem.

Re:Getting Past C by Sean1708 on Wednesday January 04, 2017 @01:05PM (#13320524)
Well sure if you compile your C one statement at a time, somehow I doubt you do though.