Originally posted by rdnetto
View Post
Announcement
Collapse
No announcement yet.
Rust Language 0.10 Released With Big Improvements
Collapse
X
-
The concept of owned and shared pointers is very common and also not easy in many languages. However this concept is so important for memory safety. I don't know an easy way to deal with them either. Owned pointer may be defined as a shared pointer that has refcount 1. But using different syntax for owned pointer certainly helps differentiate it and for compiler optimization.
Originally posted by rdnetto View PostTrue, but Gc<T> is much more clunky than @T - there's no reason they couldn't have kept it and made it syntactic sugar for Gc<T>.
Rust is a really nice language, but the need to worry about borrowed vs. owned pointers makes it unusable as a high level language for me. Admittedly, it's not intended to be a high level language, but there's no reason it couldn't have catered to both domains.
Comment
-
Originally posted by cmr~ View PostRust started as a much, much different language than it is today. It was more of a low-level ML with typestate (http://pcwalton.github.io/blog/2012/...state-is-dead/) and a region system (http://cyclone.thelanguage.org/wiki/Papers/). Over time it has simplified and converged somewhat with one might expect of a traditional language. What Rust has that D doesn't is guaranteed memory safety without GC. We also have significantly less complexity language-wise than D. I'm not well versed enough in D to offer much more knowledge than that.
To be fair, anything unfamiliar will seem more complex than it is, whether we are talking about Rust or D.
Also, I like how you can be humble enough to admit you don't know everything about the other language. Keep up the good work you guys at Mozilla are doing!Last edited by profoundWHALE; 07 April 2014, 09:40 PM.
Comment
-
Originally posted by profoundWHALE View PostWhat I understand is D is meant to be 'C done better', and Rust is meant to be 'C++ done better'. By better I mean the next-generation of that type of language.
To be fair, anything unfamiliar will seem more complex than it is, whether we are talking about Rust or D.
Also, I like how you can be humble enough to admit you don't know everything about the other language. Keep up the good work you guys at Mozilla are doing!
Comment
Comment