Remix.run Logo
▲ arc619 2 days ago

Nim is stack allocated by default, and you annotate types explicitly with `ref` to use the GC. Even then, the compiler elides reference counting using borrow checks, you can choose different GC options, and the GC isn't stop the world like most. You don't need to touch reference counting if you don't want to, and Nim fits embedded dev pretty well for that reason.

▲bowsamic 2 days ago | parent [-]

GC was the default in the earlier versions of Nim and ARC is still default today. That’s why people ignore it

▲elcritch 2 days ago | parent [-]

Nim 2 defaults to ORC which is ARC with cycle detection.

Nim 2 is a great systems language. If you want to avoid possible cycle collection delays just use ARC which is the same as C++ / RAII or Rust's Rc.

▲bowsamic a day ago | parent [-]

You’re missing the point. It isn’t about whether it is or isn’t, it’s about PR