Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by nemetroid

1 year ago

By that definition, a C++ program with heavy usage of std::shared_ptr has GC.

3 comments

nemetroid

Reply

cmrdporcupine  1 year ago

And it does. Reference counting is garbage collection. And std::shared_ptr, or Rust's Rc/Arc are basically lightweight GC runtimes inside your program.

coldtea  1 year ago

Isn't that the point?

  • nemetroid  1 year ago

    I don't think it's the point of the comment I replied to, no.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities