waiting for rust-analyzer

3 years ago by Xylight (Photon dev) to c/programmer_humor

ExperimentalGuy 7 points 3 years ago

I kinda love how fast the binaries are. I was timing something I wrote and, as a mostly Python dev, I was so confused when the program was running in the microseconds or something crazy like that and not milliseconds.

path: 0 2038268, hotness: undefined, score: 7, children: 2
Beanie 4 points 3 years ago

uh I think you mean microseconds lol

A nanosecond is just a few clock cycles

path: 0 2038268 2144384, hotness: undefined, score: 4, children: 1
ExperimentalGuy 1 point 3 years ago

Thanks, that's what I meant I just forgot what it was

path: 0 2038268 2144384 2150183, hotness: undefined, score: 1, children: 0
vettnerk 7 points 3 years ago

The wait is long enough for a certain Megadeth album title to become relevant.

path: 0 2027128, hotness: undefined, score: 7, children: 0
Sigmatics 5 points 3 years ago

I thought Rust was fast

path: 0 2033951, hotness: undefined, score: 5, children: 3
Zalack 34 points 3 years ago

Compiled Rust is fast.

Compiling Rust is slow.

Also my understanding is that RustAnalyzer has to compile all Rust macros so it can check them properly. That's not something that a lot of static analysis tools do for things like C++ templates

path: 0 2033951 2034951, hotness: undefined, score: 34, children: 2
LPThinker 23 points 3 years ago

This is, in part, a correlation. To some extent, compiled Rust is fast because compiling Rust is slow. That is, Rust does a lot of work (static analysis) at compile time so that the runtime binary is as fast as possible.

path: 0 2033951 2034951 2036204, hotness: undefined, score: 23, children: 0
5C5C5C 9 points 3 years ago

Personally I think the "compiling Rust is slow" narrative comes from comparing it against scripting languages like Python. If you compare compiling Rust against compiling C++ code of similar complexity, I think Rust will come out very favorably since C++ templates and headers tend to carry a huge compilation burden.

path: 0 2033951 2034951 2046155, hotness: undefined, score: 9, children: 0
fzz 2 points 3 years ago

Just disable additional cargo check after save and/or after any change.

path: 0 2316848, hotness: undefined, score: 2, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33596
2560
7290

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...