Rust

Legit rust thread, what are its pros and cons?

Attached: 1542112082531.png (500x700, 134.46K)

Other urls found in this thread:

blog.rust-lang.org/2015/05/11/traits.html
github.com/rust-lang/rust/issues/24111
play.rust-lang.org/?gist=1e29419fe38b12055b9d992da85cd0e9
benchmarksgame-team.pages.debian.net/benchmarksgame/faster/rust-gpp.html
cplusplus.com/reference/map/map/
en.cppreference.com/w/cpp
fluentcpp.com/2018/02/09/introduction-ranges-library/
cplusplus.com/reference/algorithm/for_each/
en.cppreference.com/w/cpp/utility/optional
en.cppreference.com/w/cpp/utility/optional/operator*
duckduckgo.com/?q=safe subset of C
stackoverflow.com/questions/29951591/is-misra-c-applicable-to-linux-applications
port70.net/~nsz/c/c99/n1256.html#6.3.2.3
en.cppreference.com/w/cpp/algorithm/transform
beta.rust-lang.org/.
reddit.com/r/programming/comments/a1jjyg/a_new_look_for_rustlangorg/
en.wikipedia.org/wiki/Variable-length_array#C99
twitter.com/AnonBabble

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++?

Attached: herbs.jpg (648x1052, 75.84K)

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.