News for hackers. Stuff that matters.
Re:Rust is not fast by kibwen on Tuesday November 19, 2013 @10:55AM (#6761980)
Sure it does, here's one:

http://www.hpl.hp.com/personal/Hans_Boehm/gc/

Rust has a GC in the same sense that C++ has one, which is to say that its GC can be provided by libraries rather than being baked-in to the language.

Re:Rust is not fast by cwzwarich on Tuesday November 19, 2013 @12:08PM (#6762552)
Rust has GC that is part of the standard runtime / library with special language syntax to go with it. C++ has no such thing.
Re:Rust is not fast by kibwen on Tuesday November 19, 2013 @12:21PM (#6762663)
I'm about to blow your mind here: Rust has never had a GC. Managed pointers were always backed by reference counting, and the cycle collector stopped working sometime in 2010 and was never brought back online. Note that I said "were backed by reference counting" (emphasis mine), because managed pointers no longer exist in the language (unless you turn on the backwards-compatibility flag for them, which is only being provided temporarily).

So there's no longer even special syntax for a theoretical GC. Instead the plan is to greatly expand our support for custom pointer types in general, which will make all user-provided pointer types (implemented in whatever libraries our users come up with) first-class citizens. Our own stdlib will include several pointer types of this nature, including: `Rc` (reference counting), `Arc` (atomic (thread-safe) reference counting), `RWArc` (memory-safe Arc for mutable objects), and, yes, a `Gc` type.

And while it's true that we may provide hooks into the runtime to allow the `Gc` type to be implemented more efficiently, any user library will be able to use these hooks to implement its own GC. There won't be any implementation in the language itself.

Re:Rust is not fast by axelf on Tuesday November 19, 2013 @12:17PM (#6762620)
The special language syntax is being removed. Its now just a library.