News for hackers. Stuff that matters.
Re:Nimony: A New Compiler for Nim by miguel_martin on Tuesday November 17, 2026 @01:03PM (#50535499)
ref counting is only performed if you use `ref` types, e.g.

  type 
    RefObj = ref object
      foo: string
      bar: int

    ValueObj = object
      foo: string
      bar: int

`RefObj` is ref counted equivalent to a shared_ptr in C++ land. `ValueObj` is simply a struct in C++ land

There are no comments on this comment yet.