4 ms·
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
by steveklabnik 11y ago
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."
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.
> In general, it’s possible to take lock-free algorithms “off the shelf” (the
> ones on the shelf generally assume a GC) and code them up directly against
> Crossbeam in this way.
1: https://crates.io/crates/crossbeam https://crates.io/crates/crossbeam
- eternalban 11y agoIs this based on his thesis?
- steveklabnik 11y agoI 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 :)
- brson 11y agoNo, 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 http://www.mpi-sws.org/~turon/turon-thesis.pdf [2]: https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-579.pdf https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-579.pdf
- doomrobo 11y agoWow, I am very impressed with the typesetting on [1]. Jealous, even...
- bsder 11y agoSomeone procrastinated a lot. :)
- aturon 11y agoNot toooo much, but I will say that feeling inspired by the typesetting helped keep my motivation up for all 299 pages...
- kevin_thibedeau 11y agoPage 9 has a TL;DR footnote. Degree granted.
- doomrobo 11y agoI 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 :)
- bsder 11y agoI 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.
- eternalban 11y agoAssuming you refer to Aaron's thesis? (Haven't seen the other, no offense..). I felt the same exact way. Want that template :)
- sriram_malhar 11y agoYes, it is. Tufte mode FTW. http://www.latextemplates.com/template/tufte-style-book http://www.latextemplates.com/template/tufte-style-book
- sanderjd 11y agoI 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.
- steveklabnik 11y agoI think so too, but it depends on who you're talking to.
- anarazel 11y ago> 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.
- kibwen 11y agoUsing 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.