Re:Lock freedom without garbage collection in Rust
by sanderjd on Thursday August 27, 2015 @06:05PM
(#10132446)
I agree with you, and this post and the library are awesome, but honestly "it has all the great stuff C++14 has, but without the decades of compromise" is not a bad start for a pitch either. Playing in the same league as C++14 is already a major achievement for a language.
Re:Lock freedom without garbage collection in Rust
by steveklabnik on Thursday August 27, 2015 @06:14PM
(#10132492)
I think so too, but it depends on who you're talking to.
Re:Lock freedom without garbage collection in Rust
by anarazel on Friday August 28, 2015 @05:00AM
(#10134373)
> I'm extremely excited about posts/libraries like these. They really show off the unique powers of Rust in a way that's a bit more compelling than "Rust is just C++14 with a bit stronger guarantees and more clean semantics."
Maybe I'm just too used to C and see it everywhere, but in this specific case, I don't really see the the "unique powers of Rust". Personally I find that perfectly alright - there's only few people that actuall will (and can) write correct lock free code, and as long as that lock free code can easily and seamlessly be integrated into the rest of the environment.
Re:Lock freedom without garbage collection in Rust
by kibwen on Friday August 28, 2015 @12:16PM
(#10136277)
Using the borrow checker to help enforce correct usage of the API is indisputably unique, given that C doesn't have anything approximating a borrow checker.
Re:Lock freedom without garbage collection in Rust
by eternalban on Thursday August 27, 2015 @03:57PM
(#10131675)
Is this based on his thesis?
Re:Lock freedom without garbage collection in Rust
by brson on Thursday August 27, 2015 @04:36PM
(#10131924)
No, this isn't an implementation of Aaron's thesis (reagents [1]). It's an implementation of Keir Fraser's thesis :) [2]
[1]: http://www.mpi-sws.org/~turon/turon-thesis.pdf
[2]: https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-579.pdf
Re:Lock freedom without garbage collection in Rust
by doomrobo on Thursday August 27, 2015 @04:55PM
(#10132028)
Wow, I am very impressed with the typesetting on [1]. Jealous, even...
Re:Lock freedom without garbage collection in Rust
by sriram_malhar on Friday August 28, 2015 @03:00AM
(#10134048)
Yes, it is. Tufte mode FTW.
Re:Lock freedom without garbage collection in Rust
by bsder on Thursday August 27, 2015 @06:24PM
(#10132544)
Someone procrastinated a lot. :)
Re:Lock freedom without garbage collection in Rust
by aturon on Thursday August 27, 2015 @06:34PM
(#10132593)
Not toooo much, but I will say that feeling inspired by the typesetting helped keep my motivation up for all 299 pages...
Re:Lock freedom without garbage collection in Rust
by kevin_thibedeau on Thursday August 27, 2015 @07:28PM
(#10132792)
Page 9 has a TL;DR footnote. Degree granted.
Re:Lock freedom without garbage collection in Rust
by doomrobo on Thursday August 27, 2015 @07:50PM
(#10132878)
I totally get that. Even though I spent 50% of my time on a take-home math final writing it in XeTeX from scratch (or "article"), it was still worth it, even if only for the motivation. I love the choice of Minion in your paper, but I needed something more math-friendly so I went with my other favorite: Arno Pro.
Oh, and thank you for including a colophon, I really wish more books did that :)
Re:Lock freedom without garbage collection in Rust
by bsder on Thursday August 27, 2015 @09:55PM
(#10133341)
I was mostly joking ... but procrastination is sometimes valuable in and unto itself.
The typesetting is quite remarkable. If you're going to procrastinate, this is sure a good way to do it.
Re:Lock freedom without garbage collection in Rust
by eternalban on Thursday August 27, 2015 @07:26PM
(#10132783)
Assuming you refer to Aaron's thesis? (Haven't seen the other, no offense..). I felt the same exact way. Want that template :)
Re:Lock freedom without garbage collection in Rust
by steveklabnik on Thursday August 27, 2015 @04:03PM
(#10131711)
I haven't read it. On IRC he said he was gonna post this and then go to lunch, but given that he submitted it here, I'm sure he'll be back to elaborate at some point :)
Also worth noting, and something I missed when I read the draft of this post: this isn't just an implementation of a lock-free structure: it's a whole library, Crossbeam[1] that helps you implement your own lock-free structures.
1: https://crates.io/crates/crossbeam