this post was submitted on 03 Aug 2023
145 points (97.4% liked)
Asklemmy
43771 readers
1666 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm a big fan of Rust.
cargo
) just works, the compiler's error messaging is simply unmatched and the IDE story is excellent thanks torust-analyzer
.Result
and you have to explicitly handle the possibility that something went wrong. There's no forgetting a null check and slamming face-first into aNullReferenceException
or segfault in some other part of your code.Obviously it's not all perfect, however.
rustc
is always getting faster, of course, but it'll probably never be as fast as Go or JVM/NET.)And much time is saved from debugging. It makes a lot of sense that we let the computer/compiler keep an eye on lifetimes, allocations and access so the code is much more correct once it compiles.
I feel like my old colleagues and I have spent a far too large part of the last 20 years chasing memory issues in C++. We are all fallible, let the compiler do more.
I like the way the compiler doesn't just tell you there's a problem, but also gives you advice on ways you may be able to fix it. That's a smart compiler.
And I like the way I can write something that runs fast but not feel faintly anxious all the time I'm doing it.