121
waiting for rust-analyzer (backend.xylight.dev)
top 9 comments
sorted by: hot top controversial new old
[-] ExperimentalGuy@programming.dev 8 points 2 years ago* (last edited 2 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.

[-] Beanie@programming.dev 4 points 2 years ago* (last edited 2 years ago)

uh I think you mean microseconds lol

A nanosecond is just a few clock cycles

[-] ExperimentalGuy@programming.dev 2 points 2 years ago

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

[-] vettnerk@lemmy.ml 8 points 2 years ago

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

[-] Sigmatics@lemmy.ca 5 points 2 years ago
[-] Zalack@startrek.website 34 points 2 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

[-] LPThinker@lemmy.world 23 points 2 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.

[-] 5C5C5C@programming.dev 12 points 2 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.

[-] fzz@programming.dev 2 points 2 years ago

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

load more comments
view more: next ›
this post was submitted on 03 Aug 2023
121 points (100.0% liked)

Programmer Humor

20230 readers
1270 users here now

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

founded 2 years ago
MODERATORS