[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is Rust shit ? or good ?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 43
Thread images: 5

File: vlcsnap-2017-01-30-00h43m32s508.png (297KB, 704x482px) Image search: [Google]
vlcsnap-2017-01-30-00h43m32s508.png
297KB, 704x482px
Is Rust shit ? or good ?
>>
absolute trash, similar to dayz but actually launches
>>
>>59207137
>thinking this is /v/
go away.
>>
absolute shit retard
>>
>>59207172
assume you never paid $60 for a game
>>
>>59207185
Rust is a programming language, memelord.
>>
>>59207124
https://github.com/servo/servo/tree/master/components

Read code and decide.
>>
>>59207124
Wasn't g sperging about how this would be the language to rule over all?
>>
>>59207124
Code is Perl-tier unreadable and people seem to fight the compiler more than actually use it's memory safety as a plus.

It has safety at it's core, and is almost as fast as C/C++.

You decide.
>>
>>59207438
Those weren't /g/ents. They were paid shills promoting the SJW agenda.
The only reason Rust exists is to be political leverage for Mozilla in the culture wars.
>>
>>59207124
Language run by extreme leftists.
For example see https://doc.rust-lang.org/1.2.0/book/dining-philosophers.html
Check the biographies of the philosophers picked for "demonstration purposes only" and see what they all have in common.
>>
File: 1462682830333.png (208KB, 327x316px) Image search: [Google]
1462682830333.png
208KB, 327x316px
>>59207681
>https://doc.rust-lang.org/1.2.0/book/dining-philosophers.html
>Judith Goldman
>>
>>59207681
>what they all have in common
What?
>>
>>59207773
Don't pretend you don't know.
>>
>>59207382
>some of the cleanest code I've ever seen
>also happens to be memory-safe
Thanks, that helped a lot.
>>
>>59207382
Looks like shit, why would one not just use C or C++? That's a rhetorical question - they should just use C or C++ and not this meme language.
>>
you should start talking about fast code so the Rust Evangelism Strikeforce wont get involved
>>
>>59209041
Fast code like ripgrep's, leaf's, or colenchyma's you mean? Oh wait, that's all rust and nothing in C even comes close to that speed.
>>
File: 1477842496843.png (1MB, 1440x1080px) Image search: [Google]
1477842496843.png
1MB, 1440x1080px
>>59207170
>Taking the bait
>>
File: 1488085668831.jpg (64KB, 694x414px) Image search: [Google]
1488085668831.jpg
64KB, 694x414px
>>59209176
rigged benchmark breh.
>>
>>59207124

seems shit to me

> main claim to fame for rust is that it can sometimes hold its own next to C++
> offers no nontrivial advantages over C++ though
> Isn't even close to as wildly popular and industry standard as C++

truth is C++ is basically the optimal programming language given the limitations of what humans know about computers
>>
>>59209488
Average nsa shill everybody!
>>
>>59209619

The chances that G++/GCC have been sabotaged by the NSA are 0
>>
>>59209666
The NSA doesn't need to sabotage gcc. All that matters is the language itself. So long as someone somewhere is writing C or C++, the NSA can get in the system running that code.
>>
>>59209690

laughably bullshit

Fact: 80% of all languages are just middlemen between you and something written in C/C++
>>
>>59209748
Not sure if clinically retarded or just an NSA shill.jpg
>>
Why are there literally two rust threads
>>
>>59209846
4 rust threads by my count actually.
All made by NSA shills to try to convince people to go back to C and C++ because it would be terrible if people could have all of speed, safety, and ease of development. How will the NSA break into your systems this way?
>>
File: sensible_chuckle.gif (1MB, 480x360px) Image search: [Google]
sensible_chuckle.gif
1MB, 480x360px
>>59209488
>truth is C++ is basically the optimal programming language given the limitations of what humans know about computers
>>
>>59209986

CIA shill trying to take away arbitrary pointers from us

Obviously doesn't want us to have control over our own computers

Surrender to the IRA you lost the war on terror
>>
>>59209986
>>59210152
I don't give a shit who's shilling, this is more than enough threads about Rust

>mozilla, pls go
>>
>>59209488
>main claim to fame for rust is that it can sometimes hold its own next to C++
It's actually faster than C++.

>offers no nontrivial advantages over C++ though
The C++ comitee is trying hard to get what it can from Rust, but they can't actually do it because of language limitations.

If you want some kind of safety you need to use std::shared_ptr to effectively do what lifetimes and the borrow checker do at compile time, except it's just a reference counted smart pointer and you still aren't safe from shared mutable access.

For single ownership you're going to use std::unique_ptr but then you can't share it without either making an std::shared_ptr from it, or just giving out the pointer/reference, which again invalidates the safety.

C++ abstractions are actually fairly costly most of the time, the only thing Rust sucks at compared to C++ is metaprogramming capabilities, templates are the shit.

>Isn't even close to as wildly popular and industry standard as C++
C++ has been around for decades, no shit Sherlock.
>>
>>59207457
It's very readable once you know the syntax while Perl is regular expression tier dense even when you know the syntax.

Extremely generic code gets hairy fairly quickly but it's nowhere near unreadable, assuming you're using type aliases and where clauses to ameloriate the Indian/Italian tier hairiness.

The fighting the compiler is also not that bad once you realize what you're doing is actually unsafe, few edge cases remain where the compiler is actually too dumb to figure out what you wrote is actually safe, but a bunch of them are getting fixed once non-lexical lifetimes get implemented. The others one has to live with, for instance you can't have a method taking `&'a mut self` and returning an `&'a T` and make 'a shared after the call, it will stay mutable.
>>
>>59209402
I can't speak for leaf, but in the case of ripgrep it's actually the fastest around, and I mean really fucking fast, I replaced ag/grep with it and could never go back.

rg fuck  0.99s user 0.47s system 857% cpu 0.171 total


That was looking for fuck in the Linux git repository.
>>
>>59209986
You know there is more to computer security than buffer overflows in C
>>
>>59210569
This, all the Rust shitposting going on recently really feels like some chodemeister learned what a buffer overflow was and now thinks C is only capable of producing insecure programs when really it's just amateurs and deadlines that create insecure programs
>>
>>59210569
Right, like undelimited blocks and longjmp.
>>
>>59210637
Name 1 (one) non-trivial, secure C program.
It's literally, LITERALLY (non-figuratively) impossible.
>hurr durr the brightest people in the world are just amateurs with deadlines
>>
>>59210682
I agree that C is cancer, but it's possible to create vulnerabilities in more ways than memory leaks
>>
>>59210843
Sure, but Rust avoid all obvious such cases (no goto, must delimit all blocks, no atexit, no longjmp) as well as dealing with memory issues, which are probably over 95% of all vulnerabilities (not necessarily leaks or buffer overruns etc. either). And sure it doesn't mean rust programs are immune to security vulnerabilities, but it does mean that you have to try damn hard to create one. This is ultimately the goal after all: you want all flaws to be caused by incompetence rather than oversight, or language underdefinition ("if in very particular context X which is only encountered on systems actively targeted by an attack, the code generated by the compiler is allowed to do whatever") or deliberate sabotage.
>>
>>59207124
Ehem
Rust is iron-oxide -- a product of exposing iron products to an oxygenated environment.
No, rust is not literally feces.
Rust can be good. For instance, rust is used in some dyes and pigments as a red or brown color agent.
I much prefer C (carbon) to rust, though, because it is a tried and true chemical that is used in a lot of things. Recently, I have taken a liking to D (deuterium) because it is so fun to use. Whatever you do stay away from C++ (Carbon-3), though, because only stupid fucking lame-o retards who like shitty metaprogramming and retarded standard libraries use C++
>>
>>59210682
GNU Hello
>>
>>59211360
>hello world
>non-trivial
Cfags in a nutshell.
Thread posts: 43
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.