Hacker News new | ask | show | jobs
by Nycto 1919 days ago
Someone on Reddit added Nim to the table, which I found interesting:

https://uploads.peterme.net/nimsafe.html

(Source: https://www.reddit.com/r/nim/comments/maj1lz/nim_safety_in_c...)

1 comments

Which is a bit silly because Nim is a garbage collected language, and hence competing in a different league.
The league of being safe, without use after free, letting the developer focus on productivity, while providing the language features to do C style programming when required.
Isn't the Nim GC optional?
It is optional in the sense that D's GC is also optional. Technically true but you have to go out of the way to make it work for you, average libraries off the shelf cannot be easily utilized.
This is a response to both you and the grandfather comment.

Nim now has ARC/ORC, which is a reference counting scheme similar to Swift. This is not a "generational GC" like Java, Go, or D.

The entire standard library and most average libraries, "just work" with it, and it will be the default near future.

https://nim-lang.org/blog/2020/12/08/introducing-orc.html