News for hackers. Stuff that matters.
Re:Rust vs C Pitfalls by santaclaus on Tuesday December 27, 2016 @05:21PM (#13266708)
> I don't use Rust just because I want to avoid GC.

Go that is?

Re:Rust vs C Pitfalls by burntsushi on Tuesday December 27, 2016 @05:28PM (#13266760)
Hmm, not sure I understand? Re-reading, perhaps my phrasing wasn't clear. What I meant was that I use Rust, and it's not simply because it lacks GC. There are lots of other good reasons too.

To be even clearer: I don't think Rust's value proposition depends on whether you absolutely must avoid GC or not.

Re:Rust vs C Pitfalls by empath75 on Tuesday December 27, 2016 @05:51PM (#13266932)
Rust has gc, no?
Re:Rust vs C Pitfalls by dignan on Tuesday December 27, 2016 @06:01PM (#13267006)
No, it does not. It does allow you to implement it if you want though: https://github.com/Manishearth/rust-gc
Re:Rust vs C Pitfalls by dcsommer on Tuesday December 27, 2016 @06:01PM (#13267004)
Not in the mandatory runtime overhead, cycle collection, or non-deterministic pausing senses of the word.
Re:Rust vs C Pitfalls by Ygg2 on Tuesday December 27, 2016 @10:56PM (#13268321)
It has optional RC type.

It had GC as core part of language, about six or more years ago?

Re:Rust vs C Pitfalls by lossolo on Tuesday December 27, 2016 @06:23PM (#13267172)
It has reference counting for some of the constructs which is a form of garbage collection and it has runtime overhead. Like shared_ptr in c++.
Re:Rust vs C Pitfalls by tomjakubowski on Wednesday December 28, 2016 @06:16AM (#13269832)
This is a misleading comment. A Rust program may use reference counting by explicitly wrapping some value in Rc<> or Arc<>; the standard library provides these generic types. There are no "constructs" built in to the language or standard library that require the use of reference counting.
Re:Rust vs C Pitfalls by lossolo on Wednesday December 28, 2016 @01:43PM (#13272574)
I wrote it's like shared_ptr which is also construct in C++ standard library, what is misleading here? You don't need to use it also in C++ and I did not wrote that you need to use it in Rust also, you disagree with something that I didn't wrote.

PS. Pozdrawiam rodaka.

Re:Rust vs C Pitfalls by 404-universe on Tuesday December 27, 2016 @06:01PM (#13267011)
Not really, no. You could implement one with e.g. reference counting, but one is not provided for you by default.
Re:Rust vs C Pitfalls by colejohnson66 on Tuesday December 27, 2016 @05:57PM (#13266982)
Depends on your Rust implementation. You can have an implementation without one and use it to make, say, an operating system.
Re:Rust vs C Pitfalls by steveklabnik on Tuesday December 27, 2016 @06:07PM (#13267054)
There is only one implementation of Rust, and it does not have tracing GC. The language does not include semantics for one, so it would be an extension of the language.
Re:Rust vs C Pitfalls by colejohnson66 on Wednesday December 28, 2016 @12:00AM (#13268511)
Right. I had that backwards. (I don't program Rust)
Re:Rust vs C Pitfalls by TheDong on Wednesday December 28, 2016 @12:49AM (#13268715)
> I don't program Rust

If you don't know anything about rust, you shouldn't respond to a question about rust.

Re:Rust vs C Pitfalls by jjnoakes on Tuesday December 27, 2016 @05:29PM (#13266779)
No. He is saying he uses rust to avoid GC, but not just to avoid GC.