Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I haven't really touched non-GC'd languages in quite awhile, but I feel like modern C isn't that unsafe, at least from the bits I've played with it; it can even have a garbage collector if you want it [1](which I usually do).

It's worth giving it another try if you haven't in awhile, if for no other reason to understand what's going on behind the scenes of your abstractions in Java/C#/JavaScript/etc.

[1] https://en.wikipedia.org/wiki/Boehm_garbage_collector



What language is more unsafe than C? C++? ASM?


This is still valid modern C:

   long* p = malloc(sizeof(int));


> isn't that unsafe

It is as unsafe as you let it be, consciously or by mistake.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: