this post was submitted on 03 Aug 2023
2 points (100.0% liked)

Programmer Humor

19480 readers
178 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 1 year ago
MODERATORS
top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

uh I think you mean microseconds lol

A nanosecond is just a few clock cycles

[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year 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.