News for hackers. Stuff that matters.
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.