Re:Ask HN: What is the state of C++ vs. Rust?
by kornholi on Wednesday October 19, 2016 @12:54PM
(#12745434)
Surprisingly, it's already not that painful. I recently wrote a tiny JSON service with Iron and Diesel and it wasn't that much longer or complex compared to Go. The biggest headache was figuring out how Diesel works, and it would have been a lot easier using raw queries with something like rust-postgres (which would be the way to go in Go or Node). Once the ecosystem matures a little bit more I don't see why Rust would be a bad choice.
[ Parent
| on HN ]
Re:Ask HN: What is the state of C++ vs. Rust?
by tmzt on Friday October 21, 2016 @12:07AM
(#12758078)
Macros 1.1 should make working with Diesel easier for the programmer, compared to the incompatible compiler plugin APIs.
I think the sweet spot with rust might leveraging metaprogramming, for instance, generating a REST database API from a schema and having the resulting code compile to something faster the most languages like python or ruby, and at least on par with Go, Java, or swift.