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

Which is better out of Go or 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: 82
Thread images: 16

File: 1488219038448.jpg (96KB, 1280x720px) Image search: [Google]
1488219038448.jpg
96KB, 1280x720px
Which is better out of Go or Rust?
>>
Rust. Garbage collectors have no place in systems languages. RAII is GOAT.
>>
What are you trying to do?
>>
@59486093
neither they are both terrible languages B)
>>
>>59486110
what is goat
>>
>>59486093
Is that scale in pounds or kilos?
>>
Rust is a marginally better version of C++ with no future.
Go is a marginally better version of C with a bright future.
>>
>>59486110
>RAII is GOAT
>Being unable to control variable's lifetime/being forced to resort to stupid tricks is GOAT
>>
>>59486093
Rust for performance + safety
Go for ease of learning
>>
>>59486171
Your post is marginally above the acceptable bait range
>>
>>59486093
https://www.youtube.com/watch?v=WVZ7yMvxImo
>>
@59486171
you are so dumb B)
>>
>>59486171
Go is even slower than Java kek
>>
Go has a niche in networks programming where it excels.

Rust is the best of the two if you're looking for a good general purpose systems language.
>>
File: carlos.jpg (8KB, 190x200px) Image search: [Google]
carlos.jpg
8KB, 190x200px
>>59486321
more than counterbalanced by the fact that Java programmers are slower than Go's
>>
>>59486351
>implying Go's any better
get rekt http://nomad.so/2015/03/why-gos-design-is-a-disservice-to-intelligent-programmers/
>>
File: 1484950273793.jpg (34KB, 710x720px) Image search: [Google]
1484950273793.jpg
34KB, 710x720px
>>59486351
>>59486384
>The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.
– Rob Pike
>>
>>59486341
>Rust is the best of the two if you're looking for a good general purpose systems language.
Not really; it's destined for irrelevance, as it *still* doesn't have a killer app in the current year (e.g. Rails for Ruby, Docker for Go). Furthermore, C++17 has done a lot to close the usability gap between the two languages.
You don't have to believe me; just compare the number of job postings for Rust with the ones for Go. There's a difference of 4 orders of magnitude.
>>
>>59486424
C++ is forever doomed to be unsafe cancer due to legacy libraries/code compatibility. Don't even try to argue there
>>
>>59486424
>le killer app
Servo.
>>
>>59486093
Which is better out of dog poop or cat poop?
>>
>>59486466
that argument applies equally to Rust, as most of its bindings for existing libraries/frameworks are written in C
>>
>>59486513
>most of its bindings for existing libraries/frameworks are written in C
Rust is not C compatible unlike C++
>>
>>59486483
Docker can be found in literally every Fortune 50 company.
Servo can only be found on the semen-stained T420s of HN-addicted autists who spend their Saturday nights writing meme libraries in Rust.
>>
>>59486542
Are you upset?
>>
>>59486093
I don't like Go, but it has a purpose and they're trying to make it more suitable for that purpose. Rust just wants to be everything like a hipster version of C++.

Given that I were forced to use one, I'd pick Go. As it stands, I can thankfully use neither.
>>
>>59486501
Cat poop obvs.
>>
>>59486542
>THIS mad
>>
File: 1455992864078.png (11KB, 420x420px) Image search: [Google]
1455992864078.png
11KB, 420x420px
>>59486570
>>59486579
poor way to concede the argument
>>
File: 1477946843523.png (364KB, 609x473px) Image search: [Google]
1477946843523.png
364KB, 609x473px
>>59486093
Neither.
>>
>>59486093
Go doesn't really fill any niche that we need filled in the world of programming languages, whenever I look into it I can only ask myself why anyone would use it when there are so many better alternatives.

At least Rust is actually attempting to fill a gap, to say it is succeeding is debatable, but it is certainly trying.
>>
>>59486598
You were arguing? Dumb frog poster
>>
>>59486405
>>59486384
Anal
devestation
>>
>Comparing Rust with Go
You don't know any of the languages OP. You are just here to shitpost, just admit it.
>>
>>59486614
Satania is made for anal.
>>
>>59486093
given that Java rekts the shitty LLVM backed garbage Golang, probably Rust
>>
also speaking of Go
what the fuck does Go do that Java doesn't?

the JVM is faster than the binaries Go makes and unlike the Go binaries, jars/wars/ears/class files are actually 100% portable as long as a JRE or greater, is available on the targeted platform.

WHY
>>
>>59486715
>what the fuck does Go do that Java doesn't
Have a good design.
>>
>>59486093
Rust.

Go is for retards who can't program.
>>
>>59486542
those kind of people are what makes a project successful
>>
>>59486836
how is interface{} abuse and no generics good design?
>>
>>59486715
effortless concurrency
>>
File: Untitled.png (31KB, 607x165px) Image search: [Google]
Untitled.png
31KB, 607x165px
>>59487250
certainly better than this shit
>>
>>59487250
It lowers compile times and simplifies the language per their original goals.

People got along fine without generics for decades.
>>
File: 1489603902347.jpg (38KB, 604x340px) Image search: [Google]
1489603902347.jpg
38KB, 604x340px
>>59486093
Threadly reminder that /g/ belongs to Maki
>>
File: IMG_0508.png (819KB, 1596x896px) Image search: [Google]
IMG_0508.png
819KB, 1596x896px
>>59487432
but that's wrong, you hag
>>
>>59487432
Kill yourself.
>>
File: angry_mayushii.jpg (30KB, 172x195px) Image search: [Google]
angry_mayushii.jpg
30KB, 172x195px
>>59487912
don't bully her! she's just confused
>>
File: 1480710684170.jpg (188KB, 1920x1080px) Image search: [Google]
1480710684170.jpg
188KB, 1920x1080px
>>59487432
maki maki gimi the faki
>>
>>59487432
I think you mean Horo or Amu.
>>
>>59486531
How is C++ C compatible?
>>
>tfw you will never get a deathgrip handjob from satania
>>
>>59486152
>Japan
What do you think?
>>
>>59486110
>systems language
>RAII
You fucked up.
>>
>>59486171
The fuck?
The only things Go has in common with C is the lack of abstractions, and ALGOL syntax.
Other than that they couldn't be farther apart.
>>
>>59488662
C++ can natively interface and build with C, no complex FFI needed.
>>
>>59488761
source level compatability was a fucking mistake
>>
File: 1489471863015.jpg (142KB, 702x864px) Image search: [Google]
1489471863015.jpg
142KB, 702x864px
>>59487842
>>59487912
>>59487950
>>59488604
For those of whom have forsaken the TRUE queen of /g/, I have only the upmost pity.
>>
File: lain.png (179KB, 1024x946px) Image search: [Google]
lain.png
179KB, 1024x946px
>>59488794
>true queen of /g/
>not pic related
I don't even care if you kill yourself, you are worse than an animal.
>>
>>59488777
source level compatibility is why C++ took off at all
>>
>>59489135
yet every other language does completely fine with a FFI and separate toolchain
>>
>>59488986
Sorry wrong pic
>>
>>59489350
Literally subnigger tier
Even rats are better than scum like you.
>>
>>59489381
stay mad newfag
>>
>>59489412
>projection
>>
>>59489412
lain is older.

One fuck with a script to make a post every day trolling /g/ does not equate to the queen of /g/. Only one comparable is yuki
>>
>>59489350
Fucking gross you furfag
>>
File: aba.png (245KB, 1000x935px) Image search: [Google]
aba.png
245KB, 1000x935px
>>59486384
>tfw too intelligent to use go
>>
File: Nishikino_maki_render.png (213KB, 500x482px) Image search: [Google]
Nishikino_maki_render.png
213KB, 500x482px
>>59489449
>Only one comparable is yuki
So what're stating is that you have pleb taste and all of your notions should be regarded as entry tier shitposting? Okay gotcha.
>>
>>59489543
it's /g/ culture man not personal preferences.
>>
Which is better, chlamydia or gonorrhoea?
>>
>>59486093
Rust if you want to be compiled but secure af. it's a deeper learning curve, but it's relatively efficient on run time. Would use this over C to make a server program (for security alone) - C++ too if i wasn't a good C++ coder (it's easy to learn shittier past practices than to learn the c++17 idiomatic way when it comes to online help, so you may sometimes find yourself reading solutions online that aren't as safe)

Go if you want the hipster lang of the future. I haven't used it much to give it a fair shake. seems easier, less convoluted, also there's a significant amount more well known software that was made with Go over Rust (See Docker, IPFS, gogs, etc.,)
>>
>>59489684
>secure af
Meme, secure af is done with actual formal verification. Rust basically gives you address sanitizer and automatic RAII.
>>
>>59488700

RAII is primarily a feature of systems languages, Anon, and it is primarily useful for managing low level resources.
>>
>>59489967
add static analyzer in cargo
>>
>>59486110
I am a distributed systems researcher. I have been programming in Go full time for 3 years. I have no experience with Rust but I can weigh in on garbage collection.

Garbage collection is slow. When I write a go program initially I use judicial makes, and appends which invoke allocs. The code is usually concise, correct, and a bit slow due to garbage collection.

Novice Go programmers can stop here, and have working code. I consider this a benefit over C/C++, my other languages of choice.

With even a little bit of Go experience, and knowledge of how memory works, a go program can be modified to rarely and optimally invoke garbage collection. I consider it a downside that I have to fight garbage collection every once in a while to get optimal code, but when it I do it is comparable to C or C++ performance, you just need a bit of skill to reach it.
>>
>>59489284
No they don't.
>>
>>59489465
intelligent people use the right tool for the right job.

Go is good for writing utilities for other systems, in my experience. I work on a huuuge HTTP/RESTful API implemented in C++. Perhaps I want a tool to easily interact with said API, but isn't a browser.

Instead of fighting with libcurl and rapidxml or whatever parser I need in C++, I can whack something out in half an hour in Go.
>>
>>59486351
LMFAO
>>
Here's some recent impression of Go: https://www.barrucadu.co.uk/posts/etc/2016-08-25-three-months-of-go.html
The Good:
> Incredibly easy to pick up
> Garbage collector keeps getting better and better
> Style wars are a thing of the past
The Neutral:
> Code generation seems to be the accepted solution to a lot of problems
> Strict, not lazy, evaluation
> The standard library is not so great
The Bad:
> A culture of “backwards compatibility at all costs”
> The type system is really weak(No generics, No sum types, No separation of pure code from effectful code)
> The tooling is bad
> Zero values are almost never what you want
> Lots of boilerplate
>>
>>59486150
Animal similiar to sheep
>>
File: rust_vs_go.png (152KB, 681x2557px) Image search: [Google]
rust_vs_go.png
152KB, 681x2557px
>>59486093
Rust, if you want to write fast, safe programs.
Thread posts: 82
Thread images: 16


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