Legit rust thread, what are its pros and cons?
Rust
Other urls found in this thread:
blog.rust-lang.org
github.com
play.rust-lang.org
benchmarksgame-team.pages.debian.net
cplusplus.com
en.cppreference.com
fluentcpp.com
cplusplus.com
en.cppreference.com
en.cppreference.com
duckduckgo.com
stackoverflow.com
port70.net
en.cppreference.com
beta.rust-lang.org
reddit.com
en.wikipedia.org
twitter.com
cons:
coc
cant get a job with it
meme lang
made by literal antifa members
worst performance then C
not compatible with pre-existing C++ libraries unlike D
good luck finding hardware support ie microcontrollers and other embedded systems, since you are forced to use their compilers.
pros:
if you want to be a hipster and know an obscure language and jerk off about it. Its the way to go.
Pro:
- forces you to write somewhat safe code
- software is fast
Con:
- steep learning curve
- some features missing, such as integer templating or function multiversioning
- limited to few architectures
- default package repository is hosted on github
- CoCed ecosystem
It's almost as ugly as C++. Which is kind of retarded for something made to replace it.
I've literally been asked about my opinion about rust during a job interview. I have a strange feeling that if I told them I liked it I would have gotten the job.
Pro
- "zero cost" is the appropriate cost for lots of abstractions
- decently sized community and state of resources; the "too many lists" book is pretty good
- minimal runtime, makes it appropriate for sysadmin tasks where performance matters just enough that you can't use a scripting language
- cures cancer - safe memory management without a GC
Con
- the magic is inside a black box, and not your own: the borrow checker is a feature from on high that you negotiate with or re-utilize. It's arguable whether this is a con: when languages give you the magic, you also have to deal with idiots who misuse the magic in programs you come to maintain. But since Rust doesn't pretend to be a better-for-maintainers language, I think this limitation is one of the developers' imagination, rather than a limitation by design.
- the community is a obscene, writhing teratogen. "Dining with Communist Philosophers
these cons, plus more interesting languages Ada, ATS, Zig, is such that I haven't learned the language well enough to provide other cons. I thought rustfag did well with it in last year's advent of code.
it's retarded if your goal is "a language prettier than C++"
if your problem with C++ is that it's too hard to understand, that it's too easy to write pessimal C++, Rust might seem a lot better. I've heard of cases where a print statement accidentally aliases a variable and slows Rust down by an absurd degree, though.
faster than c++?
I don't know.
Also a neat feature that I forgot: it has .map() and ranges and Option monads, which C++ does not have.
It's C for faggots.