[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]

RUST

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: 125
Thread images: 10

File: Снимок.png (35KB, 693x795px) Image search: [Google]
Снимок.png
35KB, 693x795px
I am a noob and gonna learn Rust.
How crazy am I?
>>
bump()
>>
>How crazy am I?
Somewhere between "on depakote" to "tumblr"
Learn a real language instead of some useless-language-turned-social-movement
>>
>>61668863
>t. lower IQ than a cyka
>>
>>61668863
>Learn a real language
like what?
>>
>>61668629
>learning an SJW language
back to tumblr, subnuman brainlet

sage
>>
>>61668930
how is it SJW?
>>
>>61668629
Not crazy at all, that's a really powerful language that will replace C++.

That Cнимoк.png tho, cyкa.
>>
>>61668927
Literally anything else.
>>
>>61668959
how hard is it to learn?

>>61668967
like haskell or go?
>>
>>61668948
Nevermind him, that's /g/. For some reason NEETS here love to hate on anything new and actually useful. SJW is of their "arguments" to show that this language is somehow bad.
>>
>>61669018
Could you link to it?
>>
>>61669018
Proof?
>>
>>61668978
Those would actually be more useful to learn than Rust, yes.
>>
>>61668948
- owned by an SJW company
- banned usage of master/slave terminology
- ban prolematic contributors
- website full of women
- SJW TOS

back to plebbit, brainlet
>>
>>61669048
no, i just made it up so it doesn't exist
>>
>>61668629
Rust is not a beginner language.
>>
File: Cg7Onn9.png (123KB, 1030x772px) Image search: [Google]
Cg7Onn9.png
123KB, 1030x772px
>>61669064
>back to plebbit
>>
>>61669053
>trashkell
>useful
Exactly what a gobrainlet would say
>>
>>61668978
>how hard to learn
Depends on you. It is multi-paradigm and has many differences from usual languages. However, once it clicks, everything becomes so meaningful and neat. To me, it is easier to read and write Rust than C++, and I really, really enjoy it. The language has so many great features.
To me, it is easier than C++ now, but I had to learn some new things other than usual OOP principles.
If you want to learn it faster, have a look at functional programming principles. Have a look at code examples in official documentation section "Iterator". Also read their official book, it is really good.

>>61669018
This is not true. Their code of conduct asks you to be polite and not to offend other contributors regardless of their political views, gender, religion, etc. This is SJW for /g/
>>
>>61669093
>SJW's extremely verbose blog post disguised as a meme
>>
>>61669118
No the code of conduct only protects the "less privileged" and enforces left wing ideology.

Rust has a horrible syntax you're full of shit when you say you enjoy it.
>>
>>61669064
yeah use golang instead, definitely no fag enablers at google
>>
>>61669142
>Rust has a horrible syntax you're full of shit when you say you enjoy it.
Do you think all people have the same preference?
>>
File: 20430022.jpg (50KB, 720x605px) Image search: [Google]
20430022.jpg
50KB, 720x605px
What's wrong with CoC again?
>>
>>61669160
Go is shit, but Rust is infinitely shittier, not only the language, but also the cucked SJW ideaology they glorify. Now run along, brainlet.
>>
>>61669202
What about Rust makes /pol/ shitters so angry?
>>
File: CS09OkJWEAEzBk8.png (150KB, 600x327px) Image search: [Google]
CS09OkJWEAEzBk8.png
150KB, 600x327px
>>61669122
>I hate reddit because i like impressing other virgins on a chinese cartoons board with my edginess
>>
>>61669209
/pol/ is full of retarded brainlets, I'm not a /pol/tard. Lost on your way to r/rust, brainlet?
>>
File: 15626158.jpg (29KB, 716x403px) Image search: [Google]
15626158.jpg
29KB, 716x403px
>>61669228
You certainly find peace calling others brainlets, you must be very smart, anon
>>
>>61669237
If you use rust instead of a real systems language, you are a subhuman brainlet. Not much else to say. Answer this: why did you start using Rust?

try to answer without using the words/phrases: social, justice, PoC, women's liberation, and mansplain
>>
>>61669228
Does your mom know you are here? Shouldn't you be doing your homework?
>>
>>61668629
Learn what you wanna learn kiddo.
>>
>>61669266
No him, but I ll try to anser. Because it's modern language and developed by a huge compyny which support free speach and open source sofware
>>
>>61668930
>>61669018
>>61669064
>>61669122
>>61669202
>>61669228
All it takes is one malignant shitposter to derail and destroy a thread. I wonder why some kids like to muck around the things they don't like.
>>
>daily rust thread because Mozdrones just can't get enough attention
It's not a good first language at all. You should start with Lisp.
>>
>>61669282
>Because it's modern language and developed by a huge compyny which support free speach and open source sofware
Well said, SJW. I personally use rust because I'm more interested in Herstory than history.
>>
>>61669294
M O D S
>>
>>61668927
html
>>
File: 89b.png (603KB, 600x789px) Image search: [Google]
89b.png
603KB, 600x789px
>>61668629
Do you have any previous experience in programming?
>>
It's not a hard language to learn and the std lib is pretty small so go for it
>>
>>61669294
lol
>>
File: 1501130028535.png (75KB, 1229x417px) Image search: [Google]
1501130028535.png
75KB, 1229x417px
/pol/ destroyed 4chan permanently
>>
>>61669325
I've tried to learn a couple of languages, like python and javscript. But I didn't write anything useful. And I don't understand OOP.
>>
>>61669357
Hmm I see. Here are my recommendations:
1. Get the rust book (v2.0). The book is not in a PDF form, so you have to bookmark the site
2. Get a book called Rust essentials
3. Read both of these books, especially The official rust book
4. If you get stuck go back to rust essentials and see how they approached the topic.
5. And as always, got it Rust's IRC channel, #rust-beginners channel have some pretty friendly people
>>
>>61669142
Horrible syntax? Show me horrible syntax. If you don't understand it, it doesn't mean it's horrible.
C++:
int sum = 0;
for (int i = 0; i < 1000; i++)
if (i % 2 == 0)
sum += i;

Rust:
let sum = (0..1000).iter ().filter(|i| i % 2 == 0).sum();

Which one is better?
How about this?
C++:
std::array<std::array<int, 2>, 2> myarr = { {2, 2}, {2, 2} };
for (auto& i : myarr)
for (auto& j : i)
j = j * 2;
Rust:
let myarr = [[2; 2]; 2];
let myarr = myarr.iter().iter().map(|j| j * 2)

By the way, if this were vectors and not arrays, Rust would be much faster than C++.

And these are incredibly simply examples. You can get such a clusterfuck with C++.

What excuses now?
>>61669118
Specifically have a look at higher order functions, lambda functions. Revise recursion.
>>
>>61669384
go to* Rust's IRC channel
>>
>>61669395
You do realize he's not here to argue, right? He's just here to spew cool memespeak he learned in /pol/
>>
>>61669406
I know, but I want OP to see examples and decide by himself whom to believe.
>>
>>61669384
thanks, my friends.
>>
>>61669426
In that case

>>61668629
See
http://cantrip.org/rust-vs-c++.html
For a detailed comparison
>>
Rust is an abomination and has been tainted by sjws. If this doesn't bother you, thene by all means learn that shit language.
>>
>>61669467
Thanks for the red pill, I'm shoving it up my ass as I am writing this
>>
>>61669283
Just read this shit and don't say this is full cancer

https://github.com/rust-lang/rust/pull/25640
>>
>>61669474
t. firefox-using brainlet
>>
>>61669491
>t. (((Chrome))) shill
>>
>>61669489
Fact is, I wouldn't even be able to tell any difference. How much time do you spend in finding worthless shit like these?
>>
>>61669357
rust doesn't have typical OOP with classes and such
>>
Rust is not really an OOP language.
>>
>>61669489
this is what i'm talking about
check out the IRC channel, pure tumblr in there
>>
>>61669535
What's wrong with you? Seriously, if you dislike Rust why are you in this thread? Since the beginning?

>IRC is tumblr
I don't even understand what that means
>>
>>61669535
>has to samefag this hard
>>
>>61669439
>http://cantrip.org/rust-vs-c++.html
Nice article
>>
>>61669555
Did i offend you, tumblrina. See, I apologized to xhe after I accidently triggered xhe, this is important in 2017. sage
>>
>>61669591
Your newfaggotry is so painfully obvious that it's making me cringe.
>>
>>61669439
That's a good article, but Rust code can be simplified in some (maybe many, I need to look more carefully) places.

Instead of using
for x in 0..y.len()
Use
for x in y.iter()

Or if index is needed, use
for index, x in y.iter().enumerate()

This will greatly improve speed. Official book covers that, especially
for x in 0..y.len()
as it is tempting to write, but actually really slow and so considered very bad style.

Also, "match" can be used in some cases instead of "if else", which is also faster.

There other things too.
>>
I'm taking a screenshot of this thread, next time iff anyone cites /g/ for anything I'll show this to them
>>
>>61669596
t. firefox-using brainlet
>>
>>61669491
>>61669641
DId your mom stop helping you with those edgy comebacks?
>>
>/g/
>mods
pick one
>>
So there you go, OP. Rust and how 4chan reacts to it.

If you are looking for quality content you won't find it here, this website is full of edgy 13 year olds. However if you are really into programming I suggest that you go to google groups, your language forum and hackernews. Rust is okay if you have done any programming before but it's very different from the ones you know.

Rust is not C++
>>
>>61669520
>>61669527

// i32 means it is 32 bit integer
struct MyStruct {
myvar: i32
}
impl MyStruct {
fn new(var: i32) -> Self {
Self { myvar: var }
}

fn print_self(&self) {
println!("{}", self.myvar);
}
}

fn main() {
let mystruct = MyStruct::new(42);
mystruct.print_self();
// prints 42
}

Implementation is a bit different than classical OOP, but in the end, it's the same.

I hope 4chan doesn't fuck up my indentation.
>>
>>61669742
>complains about 13 year olds on 4chan
>suggests hackernews
kek
>>
>>61669759
see the sticky, it shows you how to use [code[ [/code[
>>
>>61669768
>>61669764
>>>51971506
>>
>>61669768
>expecting tourists from reddit to read stickies
>>
>>61669782
People here don't even give a fuck about global rules
>>
>>61669357
Don't want to discourage you, but if you don't understand OOP, you're probably really novice and Rust could be a bit more difficult. Learn programming overall, OOP, functional. Try different languages like Python, Rust, whatever else sound cool to you. Try to pick up some idea for personal project and do it. You really learn well when doing personal projects.
Programming can be frustrating when you are new to it, but is really fun when you can get things done and see the results.

Don't give up, good luck & have fun.
>>
>>61669395
>compare to C++

how about compare to crystal, rustfag?
sum =
>>
>>61670344
Rust is a direct competitor to C++.

Crystal has a garbage collector, Rust and C++ don't.
Rust has zero cost abstractions, Crystal and C++ don't.
Rust and C++ are systems programming languages, Crystal isn't.

What do you say?
>>
>>61670475
C++ also has started to get some zero cost abstraction lately
>>
>>61668629
Rust is pretty okay, you just have to carefully read the books
>>
>>61669491
>>61669641
Nothing wrong with firefox
>>
>>61668629
>using a language from a company that needs to spend money, they don't have, bribing others to support their failed technologies and sjw agenda
>https://medium.com/webpack/webpack-awarded-125-000-from-moss-program-f63eeaaf4e15
ishygddt
>>
>>61669641
>>61669491
t.butthurt /v/tard

firefox is required for icecat/waterfox/tor and the browser ecosystem

only a fool who uses windows would consider otherwise because their own shipped browser is insufficient and closed source.

its funny how all of you anti firefox shills have had to change the argument because you cant argue technics anymore since firefox 54+ is massively improved in performance and security with rendering management and sandboxing respectively.

now all i hear about is muh sjw boogeyman when in reality they are leagues better than google.


>inb4 chromium which is majorly developed and funded by google devs and which itself includes closed binaries.

>inb4 ungoogled-chromium the project that relys on chromium itself and without that upstream they would sink.
>>
>>61670475
you were comparing syntaxes though
>>
>>61668629
Nice blog faggot.
>>
>>61668629
Rust is like Haskell, its research oriented. Rust its not finished yet. If you will be aware of the constant changes to its api's and the packages that break, go for it. But in no way is a language to be productive in and do professional work.
>>
>>61670475
>Rust has zero cost abstractions, Crystal and C++ don't.
C++ definitively has zero cost abstractions.

>>61673044
This. It's useless in an embedded/systems environment, until the API and ABI gets stable.
>>
>>61669199
Nothing bad with the original. But Coraline added a clause to stop contributors from expressing their own personal opinions on personal social accounts.

Some repositories found out and fixed that clause adding "when in representation of the "project or company". Even Microsoft corrected it, look for the VSCode one. They say they based on the one of Coraline but with a few changes.
>>
>>61669395
I would remove the need to use iter with filter. Is there a reason it is not implied with filter, map and reduce?
>>
>>61673105
>stop contributors from expressing their own personal opinions on personal social accounts
This is absolutely disgusting! Why are we allowing this?
>>
Here's why I hate rust and hackernews
>https://news.ycombinator.com/item?id=14655389
I wouldn't touch rust even if it had good syntax, which is shit
Fuck rust, fuck mozilla, fuck google and everyone pushing their political social agenda on programming
>>
>>61668927
Learn C. Hate it if you like. But you'll be better prepared to learn anything else after tahat.
>>
>>61673501
>https://blog.rust-lang.org/2017/06/27/Increasing-Rusts-Reach.html
I don't see any political agenda there. Are you autistic?
>>
>>61673878
Spreading Rust is a political agenda. It's a language for the weak instead of the strong. Helping the weak is political.
>>
>>61669395
This is what horrible syntax looks like
let sum = (0..1000).iter ().filter(|i| i % 2 == 0).sum();

This is what nice syntax looks like
x = [1:100];
s = sum(x.*(rem(x,2)==1));
>>
>>61674931
The one above is 10 times more readable, while the bottom one realises on language specific magic sigils
>>
>>61674931
Also that syntax is not C++, that syntax is some GC'd language
>>
>>61674840
>Helping the weak is political
When you were 5 y/o back in 2010, did your parents help you for political reasons?
>>
>>61675364
Nice try. I raised myself.
>>
>>61675364
I was fresh out the womb dependent homie

>He didn't survive in the wild when he was a few hours old

what a pleb
>>
>>61675384
Sure, your parents realised their mistake at your birth
>>
>>61675400
>>61675421
kek
>>
>>61668927
JavaScript
>>
>>61675332
>on language specific magic sigils
The only one which can be considered "specific" is .*
compared to
smth().smth2().smth3().smth4()
and
filter(|i| i%2 == 0)
>>
>>61675484
>smth().smth2().smth3().smth4()
>and
>filter(|i| i%2 == 0)
None of them are Rust exclusive

Also, Rust is not a GC'd language. So it doesn't have the luxury of being cute nice and clean magical syntaxes
>>
>>61668927
Learn BASIC, then learn how to actually make programs, then unlearn BASIC and learn C.

Languages are easy, learning how to make your brain fit the shit you know into a code that do what you want that is the hard part.
>>
>>61675513
having*
>>
>>61669282
Doesn't support free speech if it censors
>>
>>61675513
.* isn't language specific too :^)
>>
>>61675597
>the only one which can be considered "specific" is .*
>>
>>61670475
You should be doing your own garbage collecting then relying on your language to take care of it by itself. Idiots can't comprehend destructors
>>
>>61675513
|i| looks pretty fucking specific to me
>>
>>61675827
Ruby, idiot
>>
>>61675852
Ruby is a scripting language and not relevant to a programming language thread
>>
>>61673878
>https://blog.rust-lang.org/2017/06/27/Increasing-Rusts-Reach.html

I can see a dark future where Rust is hamfisted in places where C/C++ used to be, that includes the Liberal Indoctrination Facilities(universities), big companies, etc...
How do we stop this?
>>
>>61675873
So is trashkell, what's your point?
>>
>>61675885
Posting edgy shit on 4chan and github
>>
>>61675873
>The amount of damage control
Even I am getting embarrassed
>>
>>61675885
I see a bright future where programmers teach themselves from the ground up instead of getting an "education" from an institution designed as a pyramid scheme. These programmers won't be using Rust, because they'll only learn languages that are actually good.
>>
File: 1500099183861.png (25KB, 1224x183px) Image search: [Google]
1500099183861.png
25KB, 1224x183px
>>61673105
>But Coraline added a clause to stop contributors from expressing their own personal opinions on personal social accounts.
I can see why
>>
>>61675885
> How do we stop this?
At the moment, asking in a place filled to the brim with LARPers will lead to nowhere.

>>61675978
Now that we have a goal, next is to know what we are dealing with. Right now there's Rust with a throbbing CoC taken in with spread cheeks by it's community, a well funded legion of SJWs shilling it worse than door to door mormons, and companies bowing to every *ism label in the book.

I'm excited for that Bright future you speak off.
>>
>>61676216
What's wrong with CoC again?
>>
>>61669218
this picture unintentionally arguing why 4chaniun s batter
Thread posts: 125
Thread images: 10


[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.