News for hackers. Stuff that matters.
Re:Ask HN: Why is there not a memory-safe C? by dave84 on Thursday May 24, 2018 @07:47AM (#17143044)
I think unfortunately that the way C handles memory is so ingrained in the language and the standard library that to have a safe version of C would be a different enough language to have to call it a different name.

There is Safe-C[0], but it's not directly compilable as C and vice versa, and there are libraries like Cello[1] which provide higher level mechanisms like garbage collection to C.

[0] http://www.safe-c.org/ [1] http://libcello.org/

Re:Ask HN: Why is there not a memory-safe C? by reacharavindh on Thursday May 24, 2018 @09:35AM (#17143791)
Thanks for the tip. I tried to check safe-c. But, it only had a compiler for Windows. Its documentation has screenshots of setting it up on Windows but no mention of Linux? Is it just Windows only?
Re:Ask HN: Why is there not a memory-safe C? by dave84 on Thursday May 24, 2018 @03:05PM (#17147217)
Yes, unfortunately. It’s more of an academic exercise than a production compiler.