[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Rust-lang or Go-lang?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 118
Thread images: 28
File: output.png (130 KB, 1007x400) Image search: [Google]
output.png
130 KB, 1007x400
Rust-lang or Go-lang?
>>
>>55237779
They're both run by SJWs, but if I had to pick one, I'd pick Rust
>>
File: elixir-flame__riuc2g__.png (35 KB, 309x405) Image search: [Google]
elixir-flame__riuc2g__.png
35 KB, 309x405
Elixir.
>>
>>55237991
thistbqhwyf
>>
just 4 replies, shows the lack of real programmers in /g/
>>
Golang for the web, C for embedded, everyone kikes rust because of the safe memory meme but you can track that yourself by not being incompetent
>>
>>55237937
>muh SJWs
>>
File: lumbersexual4.jpg (210 KB, 1280x720) Image search: [Google]
lumbersexual4.jpg
210 KB, 1280x720
>>55237779
>>
>>55237991
Elixir is garbage for everything except networking.
>>
>>55238114
Erlang is top-tier m8
If you're talking about general purpose I would just say python 'cuz yeah...
>>
>>55237779
Go if you don't want to manage memory
>>
>>55237779
>Rust: Don't like the name, the syntax, etc
>Go: Pretty, simple, C like, server oriented apps
>>
>>55237779
>the best language ever invented
>or google's dogshit
Hmmmm
>>
Is neither an option?
>>
File: C unites workers.jpg (2 MB, 2000x2610) Image search: [Google]
C unites workers.jpg
2 MB, 2000x2610
>>55237779
C
>>
>>55237779
Go!
>>
>>55241244
can someone post the lambda functional programming propoganda poster too?
>>
>>55237779
NEITHER
>>
Haskell
>>
File: why is this man smiling.jpg (43 KB, 439x616) Image search: [Google]
why is this man smiling.jpg
43 KB, 439x616
>>55241286
I don't have that one, but I do have some other programming propoganda
>>
File: you cant afford to miss either.jpg (67 KB, 461x588) Image search: [Google]
you cant afford to miss either.jpg
67 KB, 461x588
>>55241286
>>55241356
>>
File: d3.png (14 KB, 160x301) Image search: [Google]
d3.png
14 KB, 160x301
D

It's a non retarded version of C++
>>
>>55237779
Go. Because I've never tried Rust
>>
>>55241356
>>55241368
These are great
ty based anon
>>
>>55241583
>GC
>java syntax everywhere
Nope.jpg
>>
>>55241628
>Java syntax
Lol confirmed for never using it once.

And the GC is fine
>>
>>55241769
t. pajeet
>>
File: tay tay is disappointed.jpg (29 KB, 640x640) Image search: [Google]
tay tay is disappointed.jpg
29 KB, 640x640
>>55237779
> Rust-lang or Go-lang?
fucking plebs. Go has garbage collection and Rust is a SJW HIV infested garbage.

Swift > *
>>
>>55241845
It's called swift cuz when u use it, u swiftly turn gay or turn away lmaooo
>>
RUST
literally best language ever invented
>mfw all this talk about SJW
>actually caring about the people that make/support the language
i use the language.... not the people?!?
>>
>>55241845
hahaha swift is a fucking joke, literally normie meme lang
>G I T G U D
>>
File: rust logo.png (31 KB, 512x512) Image search: [Google]
rust logo.png
31 KB, 512x512
>>55241870
you're a fucking retard.

>>55241879
Swift's better than Rust and is actually being developed by a large company that has money & resources to make it successful. If you learn Swift, you can start making money tomorrow. If you learn Rust, you’ll be hacking for free on some open source shit for faggots and SJWs.
>>
File: FLf5J6f.jpg (464 KB, 1131x1600) Image search: [Google]
FLf5J6f.jpg
464 KB, 1131x1600
>>55241609
Found it
>>
File: tay tay says you're a loser.gif (3 MB, 500x253) Image search: [Google]
tay tay says you're a loser.gif
3 MB, 500x253
>>55241892
>normie meme lang
wtf does that even mean you retarded neckbeard? at least you can make money with it.
>>
>>55241922
Avatarfagging is against the law.
>>
File: captain fagdroid.jpg (106 KB, 606x808) Image search: [Google]
captain fagdroid.jpg
106 KB, 606x808
>>55241938
go rat me out to your mom.
>>
>>55241845
And C is oldfag neckbeards.

It doesn't have ANYTHING to do with the language's merit.
>>
>>55241769
>And the GC is fine
Confirmed garbage opinion
>>
>>55242168
Impossible. If it was garbage, it would've been collected.
>>
>>55242179
KEK
>>
>>55241845
>SJW HIV infested garbage
how does the impede your ability to use the language?

Do you really allow this shit into your life?
>>
File: CARLOS.jpg (12 KB, 300x228) Image search: [Google]
CARLOS.jpg
12 KB, 300x228
>>55242179
>>
>>55241628
"java syntax" is called camelCase, buttface
>>
>>55237779
Go is just another garbage collected garbage language. Rust is actually a modern systems language that can be used in place of c/c++. I don't see how they are comparable.
>>
>>55242361
OK inbred, whatever you say.
>>
>>55242367
Maybe because Go is actually a modern systems and server language that can be used in place of C/C++?
>>
>>55242367
Google are so retarded they decided to advertise go as being a systems programming language. That's also their excuse for their standard library being so ridiculously unsafe that even C's seem formally verified by comparison.
>>
>>55241899
Swift is going nowhere outside of the Apple ecosystem and most of the libraries that Swift developers on iOS and OS X rely on aren't being ported or open sourced.
>>
>>55242405
To be fair, Go isn't terribly popular inside of Google either. More Googlers are using Dart ffs.
>>
>>55242430
the docker ecosystem is mostly go
>>
golang because the eco system is sane and cool stuff like segmented stacks, goroutines and golang.org/s/gctoc
>>
>>55242443
So what?
>>
>>55242443
Docker is written in go, if thats not what you meant
>>
>>55242398
>garbage collected
>slower than java
>actually has less features than other similar languages
sure buddy
>>
>>55239810
>C like
>gc
m8...
>>
>>55242555
it's C-like in that it doesn't have any features as to not confuse the /dpt/ vegetables
>>
>>55242636
>/dpt/ is not confused by C
anon...
>>
golang is fun
i'm learning it right now
>>
>>55242514
>slower than java
lel
>>
>>55242940
Gotards, everybody!
>>
>>55242514
You know GoLang is still pretty new versus Java which has had billions poured into it?
>>
>>55242964
So what? The language is deliberately shit. More money and more time isn't going to fix it.
>>
Or you could just don't care about the language and write good applications?
A side from that I think go is not really a low level language and depends on a high level of abstraction. Rust can be pretty low level, just look at redox
>>
>>55243006
>deliberately
That's what irks me the most. They could have made it non-deliberately shit, like D, but nooooo they decided to make it deliberately shit and then they're surprised nobody, not even their own employees, want to use it.
>>
>>55237991
>erlang for dumbs
>>
>>55241845
spotted the applefag
>>
>>55237779
They mean to cover two completely different use cases. Go is almost exclusively aimed towards easier and safer network programming while being easy to pick up and difficult to fuck up coming from a scripting language like Python/Ruby/etc. while still being good for network programming, which covers a lot of Google employees.

Rust is almost exclusively aimed towards making manual memory management safer and harder to fuck up while including some quality of life improvements like static typing and pattern matching, and then building on that safer memory model to create software projects.
>>
File: CkkU85vWsAUeCrU.jpg (483 KB, 2048x2048) Image search: [Google]
CkkU85vWsAUeCrU.jpg
483 KB, 2048x2048
>>55238060
ask me how I know you've never dealt with a project of any sufficient size
>>
File: 1445109865252.jpg (87 KB, 580x345) Image search: [Google]
1445109865252.jpg
87 KB, 580x345
>>55239625
Rust is RAII by default
>>
>>55241922
Holy fuck the L is backwards
>>
>>55237937
>i place my opinion on things based on tangentially related feelings I have for vaguely related other thing
you're just as bad as the SJWs

>>55238060
tell me when you've finished writing anything larger than your homework assignments

this thread is 90% troll thread. you people literally can't make any valid reasons to use or not to use a language other than

>meme
>meme
>it's a meme lang
>it's backed by SJWs. i'm not an SJW. x lang sucks

damn i'm upset.
0/10 for making me respond.

>Golang
this language has a terribly non-standard and awkward way of handling and passing around errors that bubble up from functions.
>if err != null
have fun writing that shit a billion times in any large project. that alone gets my panties in a wad
>>
>>55237779

depends on what you want to use it for?

Go was developed with cloud stuff in mind
>>
>>55244441
>Go was developed with cloud stuff in mind
lmfao what does that even mean?
>>
>>55241583
>D

sorry, gc-infested shit need not apply
> yes that includes go
> no, littering your entire codebase with 'nogc' doesn't count, especially when core std lib semantics require gc
>>
>rust
>language made by sjws
>you have to give the compiler trigger warnings for "unsafe" code
W e w l a d
>>
>>55242367
yeh seems like anything you can do in go you can do in java, whereas rust is shaping up to be a real c/c++ alternative
>>
File: v4D8iON.jpg (170 KB, 640x480) Image search: [Google]
v4D8iON.jpg
170 KB, 640x480
>>55244631
>"unsafe" code
"I don't know how computers work"
>>
>>55237779
dude putting free/delete in the destructor is hard lmao, let's make a new language with no standards or libraries to combat this problem!
>>
>>55237779
i would rather touch a rust codebase than a go codebase, so pick you poison according to your own needs
elixir is fine too, erlang is noice tier
>>
File: Q0ol-Ylx.jpg (12 KB, 250x250) Image search: [Google]
Q0ol-Ylx.jpg
12 KB, 250x250
>>55244423
>0/10 for making me respond
>making me respond
>making me
Do you not have control over your own life anon?
>>
>>55244558
>i have no idea what i'm talking about
lol
>>
File: pumpkin.jpg (280 KB, 940x705) Image search: [Google]
pumpkin.jpg
280 KB, 940x705
>>55244883
hello new friend
>>
>>55244817
If you're writing "delete" anywhere on a regular basis, you're doing C++ wrong.
>>
File: 183748485.jpg (49 KB, 812x522) Image search: [Google]
183748485.jpg
49 KB, 812x522
>>55244883
>uses the costanza meme
giddy up!
>>
>>55244741
https://doc.rust-lang.org/book/unsafe.html
?
>>
>>55242430
because most of google is front end shit or android

backend is go
>>
>>55237779
Rust is founded on better principles, however the development is stalled and it's infested with SJWs
>>
File: CYYPUWMWQAEjjmw.jpg (144 KB, 1024x768) Image search: [Google]
CYYPUWMWQAEjjmw.jpg
144 KB, 1024x768
>>55245297
>the development is stalled
what?
https://this-week-in-rust.org/
https://guillaumegomez.github.io/this-week-in-rust-docs/
https://blog.servo.org/
http://www.redox-os.org/news/
etc.
>>
>>55245144
no it's not? historically an overwhelming majority of it was written in C++ and python. over the years they have gained a large base in Java, node, and Go. I assume bits and pieces have random other language, but by no means is it all Golang. You are full of shit. a simple google search could tell you these things. stop falling for memes.
>>
>>55241597
this
>>
>>55245144
No, it's not. The vast majority of Google's backend services are written in C++ and Java. There's more C++ and Java at Google than all the other languages combined and more internal services are currently being written in Dart than Go.

Go is basically a hobby project to keep Pike and Cox around.
>>
>>55244925
Cry me a river, Walter.

D's GC is its #1 flaw hampering enterprise adoption, even/especially at Facebook.
compiler directives to manually override behavior of every routine is shit and you know it.
>>
>>55246001
i'm curious as to what part of the GC that differentiates D vs other dynamic languages that incorporate GCs that makes it more or less shitty. please do go on into specific details
>>
>>55246286
The issue is that D tried to sell GC as being actually faster than non-GC because of deferred batched heap maintenance for frees or some-such, but it never was able to address the vast memory overhead and locality destroying/cache trashing endemic to all sweeping GCs.

Not every application needs pure deterministic object lifetime semantics, but enough people that mattered wanted support for it that it had to get shoehorned in, very late in the game.
>>
>>55237779
I've done a small amount of Go and I didn't enjoy it. I've never learned Rust but this is what I'd go for if I had to choose between those two languages.
>>
I seriously don't see them as competitors.

Noone is going to write a browser in Go. Servo looks promising. Noone is going to write a web application in Rust (unless they are autists. And there are many such autists).
>>
>>55248446
>Noone is going to write a web application in Rust (unless they are autists. And there are many such autists).
Why not?
There are many people looking to do web stuff with Rust, and with good reason. It offers the speed and memory efficiency of C with the syntax and memory safety of a typical webapp language.
>http://www.arewewebyet.org/
>>
>>55248564
>It offers the speed and memory efficiency of C
Rust is still slower than C. Not PHP-slow, put still slow.
>>
Rust is for edgy macfag hipsters.

The whole language looks like a vomit of ruby perl obj-c because C and C++ is too mainstream for them. They dismiss D because it looks good as a C language while improving on it with novel features and metaprogramming.

Nobody gave a shit when D appeared on the field, yet everyone lose their mind when sjwmozilla announced rust.
>>
File: perl6.png (56 KB, 261x243) Image search: [Google]
perl6.png
56 KB, 261x243
H-hi anons!
>>
>>55248564

Trying to write a typical CRUD application in Rust is just going to be an exercise is very slow development.

I'm sure it's valuable to certain hyperscale companies.
>>
>>55245936
?
>Who uses Go at Google?
>Hundreds of projects. Thousands of Go programmers. Millions of lines of Go code.
>Public examples:
>Flywheel: SPDY proxy for Chrome on mobile devices
>dl.google.com: Download server for Chrome, ChromeOS, Android SDK, Earth, etc.
>Vitess: YouTube MySQL balancer
>Seesaw: Linux Virtual Server (LVS) based load balancer
>Lingo: Logs analysis in Go, migrated from Sawzall

>The target is networked servers, but Go is a great general-purpose language.

https://talks.golang.org/2016/applicative.slide
>>
File: internetaddiction.jpg (37 KB, 424x283) Image search: [Google]
internetaddiction.jpg
37 KB, 424x283
>>55248584
just barely.
>https://benchmarksgame.alioth.debian.org/u64q/rust.html
the rust compiler is still a work in progress and doesn't have the decades of use and optimization behind it that C and C compilers have.
and compared to go
>https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=rust&lang2=go

virtually any garbage collected or interpreted language stands no chance against a non-gc, compiled language in terms of performance and efficiency
>>
>>55248857
https://github.com/rustless/rustless
https://github.com/sfackler/rust-postgres
>>
>>55248952
>just barely
Dude, take a look at the numbers you just gave us, Rust is twice slower than C in half of the benchmark. Hell, it only beats C by 0,20 seconds on a single benchmark. And look at the size of the binaries. That's awful.

Rust has a lot of nice things and it does allow programmers to write secure code, but it'll never be both faster and more secure than C.
>>
File: look3-md.jpg (35 KB, 340x340) Image search: [Google]
look3-md.jpg
35 KB, 340x340
>>55249012
did you even read the post?
if course it's not going to be faster than C; C is the decade old, defacto portable assembler.
the fact that you think that is possible, or that it detracts from the merits of rust is a joke.
it will be on par with C soon enough, though.

and just to clarify, you do know that a survey of C compilers found across the internet wouldn't fair near as well against rustc as gcc does, right?
>>
>>55249127
I never said it detracted from the merits of rust. I was just answering posts that were wrong, a language A that is twice as slow as another language B does not "offer the speed and memory efficiency of B" nor is "barely slower than B". I do not care about what the languages will be, I care about what the languages are at the moment. I also do not care about compilers that are not widely used because I'll never have to work with them.
>>
File: movfuscator_nope.png (399 KB, 1500x1125) Image search: [Google]
movfuscator_nope.png
399 KB, 1500x1125
>>55249185
>I do not care about what the languages will be, I care about what the languages are at the moment.
>I also do not care about compilers that are not widely used because I'll never have to work with them.
kindly excuse yourself from this thread then.
this thread is about languages that aren't entirely mature yet and you clearly don't understand at least one of them
>>
>>55249309
No. This thread is about "Rust-lang or Go-lang?". Nothing more. I'll keep on telling Rustfags that their language is slow whenever they say that Rust IS as fast as C, because it is clearly bullshit at the moment. Please do note that I won't contradict them when they say their language will become faster as I believe it is true.
>>
File: 1465235856077.jpg (708 KB, 2000x1196) Image search: [Google]
1465235856077.jpg
708 KB, 2000x1196
>>55249358
>>
>>55237779
Can't be compared. But if you had to pick and you're uncertain, rust is just delicious
>>
>>55249012
The reason Rust is 2x slower in some of those benchmarks is currently lacking SIMD support in Rust. Nothing about idiomatic Rust makes it any slower than C. The reason binaries are large is because it statically links the runtime by default.
>>
>>55249012
>size of binaries
rust still statically compiles its std lib for ease of development. I don't know what's the state of the stability of their std lib (API and ABI).

For a meaningful comparison try to statically link glib to a C, C++ binary.
>>
>>55248857
I wouldn't write a web app in Rust _now_ simply because the frameworks aren't mature.
>>
>>55250117
There's also the fact it uses llvm, I haven't seen a benchmark that uses clang for C by comparison. llvm is known to compile to somewhat slower binaries for now.

Additionally, rust has several non-trivial crates which perform faster than the equivalent library in C++ (although no comparison to C exists as far as I'm aware), such as leaf v.s. caffe. This means that rust can definitely perform well (but as in all things, does not guarantee it).
>>
>>55253242
I wouldn't disagree entirely, but iron-meteor is pretty nice, and I've not had many issues developing a web app with plain iron. I wouldn't write a production-grade webapp in rust yet, though.
>>
>asking between the two current worst meme languages
>>
>>55248857
Actually, a typical CRUD application is about the only application that rust is "perfect" for (in that it has several frameworks available, all of which are about as mature as is possible for pure-CRUD).
Thread replies: 118
Thread images: 28

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.