News for hackers. Stuff that matters.
Re:How to speed up the Rust compiler some more in 2020 by kanobo on Wednesday August 05, 2020 @01:40AM (#24057592)
It's hard to not respect the devotion and love Rustaceans give to Rust.
Re:How to speed up the Rust compiler some more in 2020 by est31 on Wednesday August 05, 2020 @01:59AM (#24057689)
Not the author, but the reasons that brought me to Rust from C++ 5 years ago are still valid today. Consistent build system supporting an online repo (cargo), safety, C++ best practices encoded as compiler lints, consistent naming policy. The last one seems innocuous but it's actually really annoying to integrate multiple libraries with different naming styles, having to remember when to use PascalCase vs _.
Re:How to speed up the Rust compiler some more in 2020 by Ygg2 on Wednesday August 05, 2020 @02:01AM (#24057702)
Don't forget a hyper friendly compiler, with helpful error messages.
Re:How to speed up the Rust compiler some more in 2020 by cft on Wednesday August 05, 2020 @02:40AM (#24057916)
I feel that it's a future of compilers: it almost feels like in interactive session, where you can actually learn stuff. I suggest expanding this.
Re:How to speed up the Rust compiler some more in 2020 by rowanG077 on Wednesday August 05, 2020 @06:05AM (#24059037)
Have you heard of Idris? It's tagline is programming as a conversation.
Re:How to speed up the Rust compiler some more in 2020 by cletus on Wednesday August 05, 2020 @03:53AM (#24058284)
To be fair--and I say this as a Rust fan--the pages of inscrutable error messages caused by a misplaced parenthesis in a template are pretty much over. Clang spearheaded this change to the point where some companies would use clang for development and gcc for production builds.

This isn't to say that template errors are problem-free but the situation is much better than it was 5 years ago.

Re:How to speed up the Rust compiler some more in 2020 by Ygg2 on Wednesday August 05, 2020 @04:08AM (#24058370)
I didn't mean it as slight against C++ template errors.

Java is my daily professional development. That's the baseline. And it's errors are not good as Rust's.

I often joke that IntelliJ IDEA is better programmer than I am. But in Rust, the same can be said of the Rust compiler.

The amount of suggestions, and explanations is stellar.

Re:How to speed up the Rust compiler some more in 2020 by jfkebwjsbx on Wednesday August 05, 2020 @06:57AM (#24059341)
But you were adding to the parent's list, which was giving reasons to move from C++ to Rust.
Re:How to speed up the Rust compiler some more in 2020 by Ygg2 on Friday August 07, 2020 @10:11AM (#24082016)
I said, don't forget as in extra reasons to prefer it. It was 100% unrelated to C++ errors.
Re:How to speed up the Rust compiler some more in 2020 by adsjhdashkj on Wednesday August 05, 2020 @11:06AM (#24061610)
It's so helpful that it's jarring when it's not - hah.

Ie, i tried out Diesel for a few projects and after several months, i'm moving away from it. The compiler messages can be insane due to Diesel's rather.. excessive use of generics haha.

Re:How to speed up the Rust compiler some more in 2020 by anw on Wednesday August 05, 2020 @01:56PM (#24063588)
Just curious, but what are you replacing diesel with?
Re:How to speed up the Rust compiler some more in 2020 by adsjhdashkj on Thursday August 06, 2020 @09:53AM (#24070854)
SQLx - unfortunately using some blocking wrappers for (currently) some non-async codebases.

SQLx has been really nice so far. I recommend it.

Re:How to speed up the Rust compiler some more in 2020 by Tade0 on Wednesday August 05, 2020 @08:37AM (#24060128)
It's hard to not love a language the compiler of which uses words like "perhaps" in error messages, suggesting solutions that are often what you wanted to do in the first place.

I've been writing in Rust in a very on-and-off fashion and thanks to the compiler messages I'm able to pick up where I left even after a few months.

All that while being a front-end developer or, in other words, as far removed from systems programming as possible.