4 ms·
I find rust is still a complex language. I don't find concurrency to be any easier to write using Rust over using the C++11 concurrency API, for example. I don'
by autoreleasepool 11y ago
I find rust is still a complex language. I don't find concurrency to be any easier to write using Rust over using the C++11 concurrency API, for example. I don't have much real experience with concurrent Rust applications, though.
What Rust does have is that once your code compiles in safe mode you're very confident.
Overall, I like the complexity and I have been enjoying my time with Rust. I began using for bare metal ARM programming. After using Rust in "no standard library mode", I'm now convinced there are no more valid reasons for using C in this century. To me, Rust is a no-brainier replacement C.
It's not however,
going to effect the adoption of modern C++, which has a slightly higher level niche in performance critical applications. It's the libraries that make C++ awesome, definitely not the language itself (although the core is improving).
- pcwalton 11y agoIs there a rayon replacement in C++ (lightweight tasks for parallelism with a lock-free work-stealing scheduler), other than Cilk itself, which isn't really C++?
- autoreleasepool 11y agoI have no idea, sorry.
- RcouF1uZ4gsC 11y agoTake a look at Intel thread building blocks. https://www.threadingbuildingblocks.org/tutorial-intel-tbb-task-based-programming https://www.threadingbuildingblocks.org/tutorial-intel-tbb-t... Also there is Microsoft REST SDK which includes task based programming. https://casablanca.codeplex.com/wikipage?title=Programming%20with%20Tasks&referringTitle=Documentation https://casablanca.codeplex.com/wikipage?title=Programming%2... Also there is async++ https://github.com/Amanieu/asyncplusplus/blob/master/README.md https://github.com/Amanieu/asyncplusplus/blob/master/README.... which is an implementation of the proposed c++ concurrency TS. In January 2016 the concurrency TS was accepted so we should start seeing implementations from the compiler vendors. https://gist.github.com/StephanTLavavej/996c41f7d3732c968ede https://gist.github.com/StephanTLavavej/996c41f7d3732c968ede