[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 or C++?

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: 206
Thread images: 30

Rust or C++?
>>
>>62351802
Rust will surpass C++ in the future
C++ is imploding from within
>>
>>>/g/sqt
>>
Nothing useful has ever been written in Rust

Prove me wrong
>>
>a language in babby stage with unstable features or 30+ year old industry standard
hmm
>>
>>62351821
https://www.rust-lang.org/en-US/friends.html
https://github.com/redox-os/redox
>>
>shit or shit++?
>>
>>62351810
Self-driving cars will surpass conventional ones in the future.
Be the progress. Remove your steering wheel today.
>>
>>62351853
C MASTER RACE!!
>>
>>62351853
Java poo in the loo shill detected
>>
>>62351862
>Remove your steering wheel today.
That's actually happening, already high profile car manufactures like Tesla and Mercedes have implemented self driving
>>
>>62351922
They didn't remove the steering wheel, though, imbecile.
>>
>>62352072
Soon, grandpa. Soon. Why don't you take the meds :)
>>
>>62352109
>Soon
literally tho?
>>
>>
You can't replace C++ with Rust in every domain. Rust's enforced safety is sometimes unnecessary, game dev. is an instance, there are no variadics, integer templates, etc. Moreover, hiring Rust devs can be challenging.
>>
>>62351802

Shit or vomit?
>>
>>62351802
>using either of the two
>doing so unironically
>>
>>62352603
I do everything ironically, though.
>>
>>62351802
C++17
>>
>>62352930
Massive disappointment
maybe C++20 will be better
>>
>>62352505
An anon speaking logic!?!????
but yeah tho replace some systems with it but games and other systems with lots of state variables won't work well unless you want yo sacrifice speed to clone clone your data for the sake of safety WHICH DEFEATS THE PURPOSE OF A FAST EFFICIENT SYSTEMS LANG
>>
>>62353061
Nazguls were over-rated
>>
>>62351846
The faggot said useful, not shit nobody cares about.
>>
>>62353189
Servo is written in Rust, it's used to render web sites in FF nightly
>>
>>62353189
Such an arbitrary standard. What if I write the GNU Coreutils in Rust, will that invalidate your claim? I use those utils every day
>>
>>62353221
Good thing that everybody has left firefox because it went to shit few versions ago.
>>
>>62353263
You would be surprised. I moved from chromium when I heard about FF 55 performance. I don't think I'll go back
>>
>>62352408
SJW infested language

Rust too
>>
>>62353256
What the fuck is even that nerd shit. Of course no one cares about it.
>>
>>62352505
You can still be unsafe in rust, but by default it's a better system. Rust is pretty great and allows easier transitioning to multi threading.
>>
>>62353885
What are you doing on /g/ if the GNU coreutils are not important to you?
>>
>>62352505
why do you need variadic functions?
integer templates (const generics) are on the way
>>
>>62353885
>nerd shit.
>>>/v/
>>
nim
>>
>>62351802
What's your use case? Rust is generally nicer to work with than C++, except for some cases. I bet you don't need either though.

>>62353885
Chad detected
>>
>>62351821
the web browser I'm writing this post on has css engine written in rust
>>
>rust
>systems programming
>can't do assembly inline

*breaths*

AHAHAHAHAHAHAHAHAHAHA.....
>>
>>62355374
https://doc.rust-lang.org/1.8.0/book/inline-assembly.html
u wot m8?
>>
>>62353221
>muh webshit
>>62353256
>if I write the GNU Coreutils in Rust
you won't, you worthless webshit
>>
Rust has some features that I like
>Enums and pattern matching
>Result type for error handling, no fucking exceptions
>Array slices, no bare pointers
>Traits are elegant if inflexible
But on the whole I still feel happier in C++, just able to do more in general. Maybe that's just because I know the language better.
>>
>>62355420
>muh webshit
what did he mean by this?
>>
>rust
>c is unsafe
>ldd hellorust -> libc

breaths

AHAAHAHAHAHAHAHAH.....
>>
I don't like rust
I feel excluded by the Code of Conduct
I prefer the Arch Linux Code of Conduct
The rust code of conduct is focused on political activity
like promoting degeneracy, mental illness like gender dysphoria, and destroying family values
>>
>>62353061
You don't clone your data in Rust.
>>62351821
Dropbox's distributed terabyte file system is written in Rust.
>>
>>62351828
Neither
>>
>>62355538
Actually it's written in Go.
>>
Rust is awesome!! Associated type constructors just landed. If you're not really sure what I just said, think of it like generic associated types instead. And if you don't understand that, you're probably not quite ready for the power of Rust, so stick to C++
>>
I think that Rust will take over for systems programming from C++, this talk by Yehuda Katz shows that there is huge benefits to using Rust because C++ is inherently memory unsafe and Rust completely eliminates the time wasted fighting memory errors
https://www.youtube.com/watch?v=GktVBv76fe0&t=629s
>>
>rust
>eliminates memory errors
>leaking memory is safe

*breaths*

AHAHAHAHAHAHAHAHAHA....
>>
>>62355581
Actually, it is written in Rust.

https://www.wired.com/2016/03/epic-story-dropboxs-exodus-amazon-cloud-empire

>But Go's "memory footprint"—the amount of computer memory it demands while running Magic Pocket—was too high for the massive storage systems the company was trying to build. Dropbox needed a language that would take up less space in memory, because so much memory would be filled with all those files streaming onto the machine. So, in the middle of this two-and-half-year project, they switched to Rust on the Diskotech machines. And that's what Dropbox is now pushing into its data centers.
>>
>>62355695
Rust guarantees no memory leaks.
>>
>>62355695
>implying you can tell at compile time what memory is or isn't "leaked"
Go ahead. Solve the halting problem.
>>
>>62355374
>literally easier inline asm than C
>can't do it
Are you having a giggle mate?
>>
File: 18b.png (377KB, 600x571px) Image search: [Google]
18b.png
377KB, 600x571px
>>62355730

https://doc.rust-lang.org/book/second-edition/ch15-06-reference-cycles.html

SAFE
A
F
E
>>
>>62355730
Stop lying, it's not possible to guarantee no memory leaks strictly.

But Rust gets as close as possible though.
>>
File: 3d_waifu.jpg (135KB, 800x1200px) Image search: [Google]
3d_waifu.jpg
135KB, 800x1200px
>>62355796

Java GC can figure out circular references. Why cannot rust?
>>
>>62355924
I said compile time anon.
Runtime checking is not an option if you want performance.
>>
File: aaaaaaaaaaaa.gif (1MB, 350x272px) Image search: [Google]
aaaaaaaaaaaa.gif
1MB, 350x272px
>>62355924

Awww man, I was just starting to like Rust. Into the garbage it goes. Back to Java I guess.
>>
File: 739.png (38KB, 625x626px) Image search: [Google]
739.png
38KB, 625x626px
>>62355924
>but what about muh reflection
>>
File: wtf-black-guy-2.jpg (23KB, 600x600px) Image search: [Google]
wtf-black-guy-2.jpg
23KB, 600x600px
>>62356007

Reflection makes memory leaks go away?
>>
>>62355924
Because Rust does not use a GC.
Rust wants deterministic performance, and a tracing GC does not fit well with that model.
>>
>>62355924
Because Rust doesn't use a GC. Because using a GC for low level tasks is not tractable.
>>
File: are_you_cereal.gif (3MB, 333x250px) Image search: [Google]
are_you_cereal.gif
3MB, 333x250px
>>62355828

Wait.
You mean rust can't handle circular references?
WTH man?
How do you even model things like City-State relations...
The whole language is broken if it can't do circular references properly without leaking memory.
>>
>>62355924
You can have memory leaks in the presence of a GC
>>
>>62356142
Have you ever written anything that isn't in a garbage collected language?
>>
c with go-style types (no long, no short, either int or (uint)int(bits), types after variable), better support for function pointers (and their optimizations) in the standard, defining functions in functions in the standard, closures/lexical scoping in the standard, and standardized (and saner) inline assembly for popular architechtures. (there's really no reason they can't do that, they just don't want to.)
the closures are really the most complicated thing there, and they're not terribly complicated, you could see them pretty easily in assembly.
there's more i could throw on, but it's obviously an ideal c replacement so i'm sure most people can guess what the problems with c it would fix are. (things like pointers being an asterisk instead of a type, macros not supporting loops, type promotion bullshit, and casts being funky)
>>
>>62356175
>closures in C
why even bother, you might as well just pile on a whole object system at that point
>>
>>62356163

Only if you do it wrong

//Look ma, a memory leak
public static final List<String> muhStrings = new ArrayList<>();

But this is specifically about circular references.

public void circular() {
City city = new City();
State state = new State();
city.state = state;
state.capitol = city;
//GC cleans up both here
}

I'm actually shocked. I can't believe this isn't considered a problem in the rust community. It's not like it's an uncommon requirement.
>>
>>62356265
are you also surprised when C++'s shared_ptr doesn't free when you have a loop?
Welcome to life without a GC, here we have to clean up after our own messes.
>>
File: gloriouspc.jpg (2MB, 4800x6000px) Image search: [Google]
gloriouspc.jpg
2MB, 4800x6000px
>>62356293

Wow
Your reality sucks
GC master race it is then
>>
>>62356334

Go has GC. You should try Go. Go is the language made by Google.
>>
>>62356352
I think you misspelled (((Google)))
>>
>>62356352
>static typing with no generics
>enforced style
why would you do this to yourself?
>>
>>62356259
because objects end up making complicated assembly and leading to bad design choices, closures are pretty simple.
i wrote a header to enable modules written in c to extend a program written in c++ which made heavy usage of oop yesterday, and because i don't know anything about c++ i ended up discovering how objects with 'virtual' functions are laid out in memory with objdump.
it was not very fun.
it was made less fun by the fact that a lot of my assumptions are probably not standard in the slightest, and, because of that, i would very much appreciate structs with fucking function pointers becoming the new method of making "classes".
if we had good function pointer support (some way to guarantee they get inlined), we could do away with classes and methods entirely.
closures are a natural extension of this.
it doesn't need to be oop to be like this, although i'm sure someone will tell me i'm describing class-based oop to a T.
>>
File: like_a_boss.jpg (111KB, 519x993px) Image search: [Google]
like_a_boss.jpg
111KB, 519x993px
$150K per year to start at Google
Rollin in the RSUs
Yeah, why would I do that to myself?
>>
>>62356265
>building circular data models on purpose for hierarchical data
My old polish graph theory teacher would murder you on the spot.

What the hell do you think a weak pointer is anyway?
>>
>>62356584
hey, there's nothing wrong with having a non-owning pointer back to the owner
>>
>>62356591
No shit.
https://doc.rust-lang.org/std/rc/struct.Weak.html
>>
This thread made me look up local rust meetups. I think i am going to start and understand Rust.
>>
>>62356597
would you even need one of those in a hierarchical relationship? you could probably just have a raw pointer if the lifetime of a city is strictly nested within the lifetime of its state

I don't really know much about Rust's BC, so I don't know about how practical it is to express relationships like this without unnecessary overhead.
>>
>>62356489

Go is pretty awesome.
It has it's own common assembly language.
One assembly for all architectures.
Go doesn't depend on C, rust does.
Rust has to use LLVM to do anything.
It doesn't even compile to assembly.
I could go on about the superiority of Go to Rust, but I'll leave it there.
Rust fanboys get frothing mad whenever I point out that Google did a better job on "fearless concurrency" than they did.
>>
>>62356644
why would you even compare Rust and Go
one's a systems programming language with a functional bent and an emphasis on safety without overhead, and the other is brainlet's C with GC for servers
I don't see what they have in common
>>
>>62356637
It's equivalent to C++'s weak_ptr.
And you might need it for backtracking.

The lack of circular reference prevention is really just the same thing as in C++, since you can't do tracing like a full (but unpredictable) GC would you have to have a data model that is hierarchical in its owning behaviour. You're still allowed weak backtracking pointers, otherwise doubly linked lists would be impossible for instance.
>>
>>62356644
>It has it's own common assembly language.
http://dtrace.org/blogs/wesolows/2014/12/29/golang-is-trash/
It's shit.

At least LLVM is good at what it does. Golang just sucks all around from the language design to the libs to the implementation.
>>
File: does_my_american_flag_offend_you.jpg (228KB, 1024x768px) Image search: [Google]
does_my_american_flag_offend_you.jpg
228KB, 1024x768px
>>62356675

You're lucky you're anonymous. That's against Rust CoC you know.
>>
File: 1505009103245.png (231KB, 304x366px) Image search: [Google]
1505009103245.png
231KB, 304x366px
>>62351810
>Xir actually believe this.
>>
>>62356722
So what you're saying is he's right and you don't have an argument?
>>
Rust is amazing. I think the people here badmouthing it haven't actually tried it. You should really try it sometime. Seriously, is there even any point to other languages now that Rust exists?
>>
>>62356755

There's already an OS written in Go, champ.
>>
File: gopher-os.jpg (139KB, 1021x790px) Image search: [Google]
gopher-os.jpg
139KB, 1021x790px
>>62356801

You mean this one?

lol
>>
>>62356801
If you're talking about Clive, it runs on a BSD kernel.
>>
>>62356175
Are you talking about Rust or some not yet invented language there?
>>
File: rust-developers.jpg (39KB, 600x495px) Image search: [Google]
rust-developers.jpg
39KB, 600x495px
>>62356779

It's not the language that keeps me away
>>
>>62356852
purely theoretical, i'm afraid.
not a big fan of rust.
>>
>>62356883
What's your opinion on D?
>>
>>62356859
>>
>>62356859
Been following closely since before 1.0 (I still remember when we had a bazillion pointer types) and to be honest, the couple vocal SJWs pretty much left once they made their shitty CoC and realized the only work left was actual systems programming (and they couldn't understand the half of it).

The community is fine these days. If a bit too lefty for my tastes. I mean at least people are just interested in building software instead of the ideological crusades you see in JS.

Anyhow, don't let politics decide what software you can use and contribute to, that's just letting them win.
>>
>>62356906
it didn't really fix any of the problems i have with c++ from a broad view.
things like really fucking heavy alternatives to c macros, which imo are saner, large feature sets, etc. all upset me.
my experience with it is very limited, though, and it lost a lot of points with me for having a gc, which i will admit is not an opinion that will win me many friends.
[check my blog for full details]
>>
File: haskell_the_ultimate.jpg (58KB, 600x487px) Image search: [Google]
haskell_the_ultimate.jpg
58KB, 600x487px
>>62356944

Tell that to Brendan Eich

Besides, Haskell is the superior language choice.
>>
>>62357088
Haskell is great, but limiting yourself to only be able to work with people who can understand category theory is both a boon and a drawback.

Plus people who honestly think they can do systems programming productively in Haskell are either insane or never have worked in the field.

Different tools for different jobs.
>>
File: images (1).jpg (2KB, 111x91px) Image search: [Google]
images (1).jpg
2KB, 111x91px
>>62351828
>>a language in babby stage with unstable features or 30+ year old industry standard

very hard decision there
>>
>>62357084
/me subscribed
>>
>>62351802
Since the embedded developer community around here is only recently coming around to the idea of using C++ there is no reason at all for learning this SJW language anytime soon. As far as I know there is not even a verified compiler available yet, so good luck finding any Rust jobs where you can do anything worthwhile.
>>
>>62356741
Yes, I do. Rust has a very good PR, unlike C++. Whether you like it or not, it doesn't matter.

You didn't like it when Java is at the top of popularity either.
>>
File: rustcuck.jpg (96KB, 703x707px) Image search: [Google]
rustcuck.jpg
96KB, 703x707px
Nice SJWs there guys

https://www.reddit.com/r/rust/comments/6zbl57/do_the_rust_developers_support_and_advocate/
>>
>>62358011
>pages of sane people not wanting to politicize something that doesn't have to be
>SJWs
Wut?
>>
>>62358011
Woah dude, you dug into someone's personal twitter page and found out he doesn't have the same political views as you

how is this allowed? Freedom is only acceptable when it comes to alt-reich, amirite
>>
>>62358004
>muh PR
There's not enough wrong with C++ or Java that Rust would be coming up any time soon.
>>
>>62355374
It can though:
>>62355406
>>
>>62358294
>>62358410
Nice SJWs there guys
>>
>>62356334
Sometimes it's not viable to have a garbage collector. Try writing a low-latency real time sound processor with a garbage collecting runtime while guaranteeing an absence of buffer underruns. Real time audio software is written in languages like C or C++ (Rust would also be suitable, but is relatively immature) because there are extremely tight constraints on performance.
>>
File: eab.gif (52KB, 625x626px) Image search: [Google]
eab.gif
52KB, 625x626px
>>62358661
>>
File: govnocode.webm (924KB, 600x336px) Image search: [Google]
govnocode.webm
924KB, 600x336px
>>62351802
forget both and go python
>>
>>62351802
Many languages offer Rust's memory safety. Many languages offer similar or better performance to Rust and C++.
D in my opinion offers the best room for compromise between memory safety, performance, and overall ease of grok.
>>
enjoy your sjw community and memory restrictions
>>
>>62356168
Also worth noting that automatic reference counting w/ cycle detection and garbage collection have been proven to be equivalent tasks.
>>
>>62356718
pike thought he was too smart for llvm and now go is 3-5x slower than everything else, though compilation is fast
>>
File: d.jpg (15KB, 250x314px) Image search: [Google]
d.jpg
15KB, 250x314px
>>62359263
And D has both.
>>
File: jimmies_rustle.jpg (120KB, 600x796px) Image search: [Google]
jimmies_rustle.jpg
120KB, 600x796px
>>62358011

>[removed]
>>
>>62359182
I wonder when automem gets into the std lib
>>
>>62356265
You can only have memory leaks in C if you do it wrong too.
>>
>>62356265
>//GC cleans up both here
See, there's the crux of the problem, since it doesn't actually clean up both "here", but rather a couple of million of billions cycles later. Which is precisely why you don't want a GC where it really matters.
>>
>>62356259
What though? Closures are really easy to implement in C given just a little bit of ABI knowledge and inline assembly.

It seems you're not aware, but GCC has even had this functionality for many, many years in the form of nested functions.
>>
>>62351802
Neither, both shit.
>>
File: bard.jpg (46KB, 497x395px) Image search: [Google]
bard.jpg
46KB, 497x395px
>>62359941

lol
rust brainlets btfo
>>
>>62359941
Dude just implement urself lmao
>>
>>62359941
>GCC specific
>have to manipulate the ABI
Yeah, way to state your case.
>>
>>62351802
C++, but programming it mostly procedural and using some good well thought memory protection schemes.
>>
>>62352930
>no ranges
>no concepts
>no modules
Meh. But yeah, modern C++ is not bad.
>>
>>62356142
>How do you even model things like City-State relations...
How the hell do you get circular references in this case, idiot?
>>
>>62351862
Jokes on you when they are gonna be powered by Rust
>>
>>62355704
Literally only a couple components are written in Rust. There was that Dropbox employee talking about it on HN.
>>
Shit or Fuck?

I'd still go for rust.
>>
im going to learn rust and become an open source game developer

is rustbyexample and the rust book the best sources of learning?
>>
>>62362693
Afaik there are no good sources on learning. Still you should start with it and see how it fares.
>>
>>62362693
Ive found all the books out on Rust hard to follow. So far this video course is the only thing that has got me going with Rust:
https://app.pluralsight.com/library/courses/rust-fundamentals
>>
>>62362718
Interesting. Are you a shill or do you have a way to actually get it?
>>
I don't intend this to be taken as a joke in any way, nor do I intend it to be unnecessarily mean, but I think that the Rust community inadvertently discovered a new paradigm of software development: Autism-Driven Development.

When we look at what they've created, both from a technological standpoint and from a community standpoint, I can't help but notice the impact that Asperger Syndrome may have had on how things have developed.

Let's start with the community. While the communities of languages like Perl, C++, Python, Java and C# developed organically over time, it is almost as if the Rust community has been manufactured instead. It's like the community's interactions have been scripted, to use a programming analogy. It seems to me that the Rust Code of Conduct may actually be there as a way to allow people who suffer from varying degrees of social ineptitude to interact in a way that mimics how they see other, naturally-formed programming language communities made of sociable individuals interacting. They wouldn't be able to manage this social interaction on their own. But if you give them a script or a checklist they can follow, they can at least engage in something that appears, on the surface, to be socializing. That's why I think their incorporation of social justice is quite interesting. In many ways the concepts of social justice are all about imposing a foreign order on what is naturally a very chaotic and perhaps unfair reality.
>>
The language and its standard library also reflect behavior that may be expected from those suffering from Asperger Syndrome. While creating the language, it is as if its developers haven't been able to make the normal trade-offs that other language developers have made with ease. We've seen this result in Rust, as a language, constantly change over time. It's like they're striving for some unattainable form of perfection that most normal people would realize could not be attained. While other people would accept some drawbacks to their creation and move on, the Rust community appears to waver back and forth, unable to really make up its mind about how to proceed. Even the supposedly stable Rust 1.x release branch has seen 19 minor releases!

I think the complexity of the language also reflects the role that, I suspect, Asperger Syndrome has had on the development of Rust. It has become an immensely complex and convoluted language, even compared to a rather complex language like C++. It's like the language has been designed, perhaps unintentionally, to be cryptic and unwelcoming to normal people. By its very nature it is like it is trying to be self-isolating, to avoid having to interact with the world and the people around it. Programming languages like Java, Python, C++, Perl and PHP want to be used by normal people. Those languages evolved in ways that draw in new users. But Rust? It has evolved to become very difficult and awkward to use, especially for new, average users.
>>
>>62362727
have you heard of piratebay?
>>
From what I can see, the entire Rust ecosystem exhibits the traits that have come to be associated with Asperger Syndrome, or autism in general. Rust has a certain natural awkwardness to it; a inherent difference from every other programming language and programming language community that exists. It's like it wants to fit in, yet no matter how hard it tries it just can't. It's like, in my opinion, the entire Rust ecosystem lacks a natural understanding or ease of existence that other programming language ecosystems develop naturally.

I am just speculating here, as I do not know any of the Rust developers on any personal level, but could it be that mild/moderate autism or some degree of Asperger Syndrome has influenced how the Rust programming language has developed? If the developers of a programming language exhibit autism or Asperger Syndrome, could they in turn pass this on, so to speak, to a programming language and a related community that they have created? Could Rust be an example of, for lack of a better term, Autism-Driven Development?
>>
>>62362772
h m m
m
m
>>
>>62362776
>>62362768
>>62362751
Are these posts written Autism-Driven?
>>
>>62351802
Go
>>
>>62362828
No shit, yeah
>>
>>62351810
The borrow checker has killed it already.
>>
>>62356938
<html>
<body>
<p>Everybody who posts a frog is a nazi and should be punched<p>
<!-- I may or may not be virtue signaling -->
</body>
</html>

Only leet h4x0rs will get this. Look at me, I'm a girl programmer. :^)
>>
>>62356938
what the fuck is this indenting
>>
Rust is objectively the better language. It's modern and designed properly, whereas C++ is fucking old and just full of legacy crap. Even if you can write clean C++ yourself, good luck to you as soon as you have to look at code someone else wrote. The only problem with Rust is that it hasn't had as much time to mature and grow its ecosystem, but that'll come with time.
>>
>>62365073
Rust is designed completely backwards though
>let instead of auto
>const is default
>type name comes after variable name where it's actually used
>::>::<>:::::<><:::&:::*:::>
Just give me assembly and I will code like a real man with five wives
>>
>>62366034
>they used a different keyword and swapped the order around so it's shit
could you get any more autistic?
>>
>>62363281
>using the smiley with a carat nose
>>
File: rustcuck.png (21KB, 865x229px) Image search: [Google]
rustcuck.png
21KB, 865x229px
The Rust community is cancer.
>>
>>62366285
I don't even know what this is a response to
>>
>>62366285
>Nazi faggot removed

oh boo hoo
>>
>>62351802
C
>>
Java
>>
>>62351862
That would be like saying java script or ruby are going to take over not rust, rust definitely still has a steering wheel.
>>
>>62366096
The type name goes before the variable name because it is an adjective. That is how languages work.
>>
>>62367890
Unless your adjective is const or volatile, of course.
>>
>>62367890
>anglophone thinks he's an authority on all natural languages
o i am laffin
>>
>>62356938
if(Tweeter == Gamergater || Tweet == Negative)
std::cout << "Block" << (Tweet == Negative) ? "." : "" << std::endl;

I tried.
>>
>>62369133
go away with your complicated code. It may be smaller, but who is gonna understand that compressed jumble of words in 10 years?
>>
>>62356852
To be honest, >>62356175 could almost be talking entirely about go, minus the assembly.
>>
>>62358011
And people on 4chan continue to post the insipid drivel that reddit is """good""" for discussion.
>>
>>62358011
>Steve Klabnik's private political opinions are irrelevant to his work on the Rust team.

Said the employee of a company that fired its CEO for privately supporting a democratic ballot
>>
>>62369165
>but who is gonna understand that compressed jumble of words in 10 years?
I'm sure anyone with an IQ larger than 10 would be able to understand that code instantly.
>>
>>62369504
Women's code is cleaner, deal with it. You probably think your code is better because you code-gold, but in the end all that matter it that even a little child can understand it, that's when you know you did it right
>>
>>62369504
people like you writing complicated code is the reason why women and poc can't get into programming. It's a form of gatekeeping.
>>
>>62369133
isnt it supposed to be:

if(Tweeter == Gamergater || Tweet == Negative)
std::cout << "Block" << (Tweet == Negative) ? "" : "." << std::endl;


The extra "." is not on the (Tweet == Negative) part
>>
>>62369577
also this
>>
>>62369577
>people like you writing complicated code is the reason why women and poc can't get into programming
So you admit that women and poc are inferior?
If we were all equal like you probably believe, then women and poc should have no issues understanding the """"""complicated"""""" code we write, if I was able to understand it without issues.

It's not our fault that you're inferior, and we shouldn't have to compensate, get into something more your speed instead.
>>
>>62369226
if go didn't have a gc and had inline assembly it really would be perfect.
>>
>>62369433
kek
>>
>>62370306
ITS NOT FUCKING FUNNY
>>
>>62370102
Yeah, it would be cool if they simply had destructors in place of a GC. Defer is already a great improvement over C, and seems like such an obviously good choice it's odd that more languages don't have something similar. I bet that a tool for detecting memory leaks similar to the race detector would have been possible, too.

Oh well, I still like Go quite a bit for most of the things I need to do.
>>
C is really just a better Rust desu
>>
Who /rust/ here?
>>
>>62370554
>Defer
I still don't understand the point of defer
>>
>>62351802

You can't implement doubly linked lists and cyclic graphs in the safe subset of Rust.

It's useless.
>>
>>62372792
>10% of your program is unsafe and the rest is safe
>All of your program is unsafe
Which of these is better?
>>
>>62372820
>10%
More like 0.1%. Rust needs one tiny unsafe block to implement a doubly linked list, and that's already a cherry picked example meant to maximize the use of unsafe
>>
>>62351802
What's the non-shill reason to use rust?
>>
>>62372670
it makes the common c pattern of "call function to allocate space for library, call functions related to library, call function to deallocate space for library" more succinct and less spread out.
>>
>>62371911
C is C++ for brainlets.
>>
>>62366285
>/pol/ cancer
2bh I'd kick them out without even explaining :)
>>
>>62373748
I'd use it because of lazy iterators, ranges, modules, UFCS and a standard build system
>>
>>62372792
>linked list
>the era of 2017
TAKE YOUR FUCKING PILLS GRANDPA
>>
File: portillifxnoise.jpg (574KB, 1000x676px) Image search: [Google]
portillifxnoise.jpg
574KB, 1000x676px
>>62375068
>Lazy
I'm sold
>>
>>62362202
The point wasn't that those methods are more or less nice, but that adding closures to C would be far from "might as well pile on a whole object system at that point".
>>
File: politics.png (19KB, 640x387px) Image search: [Google]
politics.png
19KB, 640x387px
>>62366307

see

>>62358011

https://www.reddit.com/r/rust/comments/6zbl57/do_the_rust_developers_support_and_advocate/

tl;dr;

core rust developer openly sympathizes with antifa on twitter
patriotic American asks if openly supporting hate groups like antifa is against the rust code of conduct in reddit post?
r/rust moderator literally calls patriotic American a "Nazi sympathizer"

Frankly, he had it coming. The rust community is openly hostile to anyone who points out obvious contradictions in their code of conduct and behavior. Everyone knows that.
>>
>>62376730
what's wrong with a rust developer privately supporting antifa?
>>
>>62371911
I don't think you know either c or rust
>>
>>62351802
Can I write a lib for python or R in rust? Probably no.
>>
>>62378741
it's a violent extremist group
>>
>>62357088
Lel, R supposed to be a girl but looks like my male stats professor, 10/10.
>>
>>62378741
Nothing, if you aren't a poltard. Then again, it's not like they are able to contribute anything besides frog pictures and drama so them being upset with Rust doesn't affect the project.
>>
>>62378741
Supporting antifa and nazis means you are buying too heavily into the memes.
>>
>>62351802
Python
>>
>>62376730
Who cares? It's politics that is irrelevant when it comes to code. If the politics were about choosing the GLP or MIT license or something THEN I see the point of bringing it up. Or else it does not matter.

For example, if some hardcore Islamist implemented encryption on some open source application then the only thing that matters is the quality of encryption (and even if you disagree with the Islamist politically, the fact that he is one is an asset in this case because he is incentivized to do it right.)

So if someone supports violent anarchist black bloc groups don't matter.
>>
>>62378945
Why not?
>>
File: antifa-thugs-01.png (109KB, 715x400px) Image search: [Google]
antifa-thugs-01.png
109KB, 715x400px
>>62379164
>Nothing
https://i.imgur.com/tNxuEdl.gif
http://i.imgur.com/vW1kSa7.gif
https://www.youtube.com/watch?v=GSMKGRyWKas
https://www.youtube.com/watch?v=VUBpRexwiPg
https://www.youtube.com/watch?v=9qKCl9NL1Cg
https://www.youtube.com/watch?v=x643kcoc8FU
https://www.youtube.com/watch?v=uowj_Lt-HMk
>>
>>62380571
>Literally kicking the shit out of someone while wearing a shield that says "No Hate"
>>
File: cameron_smug.jpg (14KB, 280x210px) Image search: [Google]
cameron_smug.jpg
14KB, 280x210px
>there are people who unironically choose technically inferior products due to meme reasons such as (((politics)))
>>
>>62381684
>implying poltards who complain all the time about Rust/Ruby/whatever not confronting to their political views write any code
They're too busy saving the white race from genocide by posting fogs.
Thread posts: 206
Thread images: 30


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