4 ms·
I like rust a lot, but even hello world web apps compile (and recompile) so slowly. I barely get a single step down my to do list before recompiles take more th
by hawkice 10y ago
I like rust a lot, but even hello world web apps compile (and recompile) so slowly. I barely get a single step down my to do list before recompiles take more than a second, and it makes it functionally unusable compared to other tools. I know this sounds silly, but it's true. I don't want the check, I want to see the webpage changed after my code changes. I keep hearing about incremental compiles but when I used nightly and tried turning it on, I guess it didn't work because compile times barely changed.
- steveklabnik 10y agoIncremental recompilation is still underway; expect some news on it reasonably soon. Even then, it's just the start, and there's more that we can do.
- wst_ 10y agoWhen it's out, can we actually get the same responsiveness as, let's say Java? I assume it also depends on the IDE but I would really like to see instant hints during coding session, ex. when I make mistakes.
- steveklabnik 10y agoI'm not sure what the lower bound is, to be honest. It's not a thing I personally work on.
- karan85 10y agoYou can already get instant hints now with VS Code and the Rust Language Server (RLS). It's still in alpha and the initial setup is a bit involved, but it already works very well for me. https://github.com/rust-lang-nursery/rls https://github.com/rust-lang-nursery/rls https://github.com/jonathandturner/rls_vscode https://github.com/jonathandturner/rls_vscode For some reason, code completion via Racer doesn't work yet for me via RLS, so I use the "old" RustyCode extension for that (https://github.com/saviorisdead/RustyCode https://github.com/saviorisdead/RustyCode).
- wst_ 10y agoI am not talking about code completion. I am talking about mistakes. Currently I have to build a project. With new Rust 1.16 I can check, but that's still a separate task that has to be launched manually. Yet, IntelliJ with Java will show you problems instantly, as well as gives you most probable options to solve them.
- karan85 10y agoI wasn't only talking about code completion either - when I make any syntax/type error I get a red squiggly after about a second and hovering shows the compiler error (which often has hints for solving it). Same goes for compiler warnings (e.g. green squigglies for dead code). Feels quite close to IntelliJ already (I use PyCharm...).
- pcwalton 10y agoIncremental compilation doesn't incrementally typecheck yet. A lot of time is spent in typechecking. The feature is designed so that incremental typechecking can happen—it just doesn't yet.