>minimal keywords >not bloated >fast to write, compile and test >has a syntax standard that literally everyone follows >forces you to keep your project lightweight and easily maintainable. e.g. only importing packages you need and declaring variable that actually get used >standard library has all of the useful shit that you need >and probably the best part; goroutines - these are fucking awesome
>inb4 sjw, (((google))), generics - every language has sjw cunts around it now - its open source and has a ton of non-google contributers - interfaces
Rust error handling requires "generics," a broken misfeature that makes compilation take longer. Fast compilation is a primary goal of Go. The resulting simplicity means it has easy solutions to hard problems.
Nicholas Adams
>See pic related Unfair comparison. Try gcc -static
Eli Powell
>"generics," a broken misfeature lmao
Jason Howard
I literally fucking did are you this blind?
Cameron Flores
>no generics
Thomas Wilson
A fairer comparison is to use "print", which is a Go built-in. "fmt.Println" pulls in additional content.
Landon Nguyen
How is Go's performance compared to Python? I've always wondered, and for that matter, if C# is faster than Go or not.
Logan Anderson
how will go ever recover?
it's an anti-progress language, ignoring modern PL theory and giving the programmer an inadequate set of tools to express themselves. it has no excuses for doing what it does, since it's not old, performant or low-abstraction like C - it's a completely unnecessary invention.
you forgot good official tools >testing and coverage >benchmarking >tracing and profiling with google's toolchain >solid tls library >code analysis tool with editor integration >doc tool >soon versioning dependency manager too bad the compiler sucks, what's the state of gccgo or something llvm-based ?
Gabriel Taylor
Drops it to 1.1 MB, considering that puts() isn't a builtin and still manages to have a smaller filesize while using static linking, go is just shitty. >it's a completely unnecessary invention. ...no
Daniel Perry
Sorry, I automatically assumed you were going to do this trick to fool the new guy.
>Drops it to 1.1 MB, considering that puts() isn't a builtin and still manages to have a smaller filesize while using static linking, go is just shitty. Would you agree it's the second best compiled language after C? Or would you suggest something else? I'm asking because in a state structure: raw.githubusercontent.com/Mark-Weston/platformer/master/state.h I have 12 structs in the form of struct { int n; SomeType *arr; }
Tyler Butler
objdump -d n contains: sync/atomic package, gc (which probably requires the sync package), because the linker is retarded - full fmt package instead of only what's used, reflect package and some more
there is built-in function print() without string formatting and only to stderr for some backward compatibility purposed of the 1.4 bootstrap, links to 1.1M binary. I would guess this is important to you since you don't write more than hello world and fizzbuzz.
>pacman -Si gcc | grep Size >Download Size : 32.94 MiB >Installed Size : 131.87 MiB Why is it so fucking gigantic?
Ayden Morales
>made by Thompson, endorsed by Kernighan >Jow Forums insists it isn't the true C replacement because muh sjws
Anthony Miller
Yeah, can't understand this.
Adam Martin
Only the poltards care about that
Caleb Bailey
because it includes cross-compiler and standard library :^)
Cooper Barnes
Alright babe. cat-v is a cult centered about retardation. Sure, but shoving in an entire runtime doesn't really reflect the >not bloated aspect that OP was talking about. C isn't the best either. I just used it for a point of comparison. I don't think that Go is the best either, but if it floats your boat, use it, all languages are shit in some way, but OP was just spewing bullshit. Yeah, I don't, because it's the world of *examples*.
>>has a syntax standard that literally everyone follows
I don't follow it.
FUCKING SUE ME, TABS ARE BAD AND YOU SHOULD FEEL BAD
Austin Price
>comfy it's awful and not expressive at all, like writing 20 year old java
Anthony Evans
It still isn't good, but I guess it's comfy.
Sebastian Mitchell
>Fast compilation is a primary goal of Go. Why would that ever be a primary goal? Serious question. I don't know what benefits you get from that? Apart from wasting a few bucks, because your employees have to wait.
Oliver Taylor
What do you actually use this language for?
Jaxon Bailey
Compilation shouldn't be a time suck. Languages should run fast when compiled but not at the expense of slowing down the fix-build-edit cycle.
Jacob Cooper
>Comparing a statically compiled, managed language with a dynamically linked no-runtime language The absolute state of Jow Forums. I'm convinced you guys are all 16 years old.
Jaxon Walker
I've been rewriting all my stuff in Go
Ryder Anderson
but how often do you do a complete rebuild? Partial builds should go fast, r-r-rite? Just havent worked on a big enough project yet, I guess.
Gavin Rogers
the joke is that compilation speed doubled when thy ported the compiler from C to Go
Andrew Cox
>why is fast compilation a primary goal t. someone who's never had to interact with any jdk based languages
Nicholas Johnson
The absolute state of Jow Forums
And yet there is an accelerating pace of projects being done in Go, while meme language of the month languishes on it's batshit futures implementation.
>muh exceptions Exceptions are control flow cancer.
>Standard C constructs is "inane syntax" go back to Python retard
>compares a binary with a managed runtime, and it's stdlib implementation with a linked C++ app, that has no runtime Who put you in front of a computer retard?
Go dick around with your modern PL theory languages then while the big kids write actual software. I hear Haskell needs a new monad library
If you don't want to include the full fmt package use the `println` builtin retard.
Circlejerk more over microbenchmarks retard. I'm sure binary size has helped you create some useful programs
>Why is a fast feedback cycle bad This is like asking why is bad that your keyboard has low latency. Do you kids do anything other than compile gentoo?
Jaxon Williams
>Do you kids do anything other than compile gentoo? There's no point in asking. You already know the answer to that.
golang is losing its meme status fast, if it doesn't have a good 2.x it'll be on its way out
Joshua Rogers
tell that to the chinese
Jason Mitchell
Golang is exponentially popular
Aiden Johnson
makes sense, they do love outdated shit like windows xp
Julian Baker
Java 2.0 without generics
Sebastian Gonzalez
>And yet there is an accelerating pace of projects being done in Go, while meme language of the month languishes on it's batshit futures implementation. Fizzbuzz tests? Yeah okay. >>compares a binary with a managed runtime, and it's stdlib implementation with a linked C++ app, that has no runtime >Who put you in front of a computer retard? Look at me, I can't compare languages because apparently everything has to be EXACTLY THE FUCKING SAME IN EVERY BYTE EVER IN ORDER TO TREAT MY TOY FAIRLY. >Go dick around with your modern PL theory languages then while the big kids write actual software. HAHAHA holy shit, name me ONE (1) piece of professional software that's written in Go. >Circlejerk more over microbenchmarks retard. I'm sure binary size has helped you create some useful programs Let's ignore the fact that it's a response to how OP blatantly stated that it's "not bloat"
Thomas Carter
c'mon dude you know there's things like docker and so on. It's not just fizzbuzz.
Like dude what the fuck you're a total fanboy.
Easton Reed
Ah shit, you win. Docker is written in Go. I'm not into these new meme container technologies I guess, I do write in C so all I use is an old ass VCS.
Joseph Murphy
>tell me a better language Jow Forums? How about C++, the original language it ripped off?
Anthony Hernandez
rewriting the rust toolchain obviously
Charles Roberts
Understandable, I'm not the other guy tho.
Matthew Johnson
>these are Jow Forums's champion arguments against Go Feels good not being 12 years old.
>Generics >Error handling >Boilerplate >Package management >No terenary operator >Interface >Absolutely bizarre overload of capitalization for scoping It's like you took a language from 1980 and bolted on a garbage collector. What the actual fuck were they thinking? The only reason Go is popular is because Google shills the shit out of it. They'll eventually lose interest like they ALWAYS do, and this shitty limited toy will die a slow death.
func compress() { w := zlib.NewWriter(os.Stdout) io.Copy(w, os.Stdin) w.Close() }
func main() { mode := flag.Bool("d", false, "decompress") flag.Parse() if (*mode) { decompress() } else { compress() } } well at least it has an ok I/O abstractions
Grayson Scott
Is Golang a good language to pick up after Python?
Nicholas Jenkins
No, Golang is for writing tiny webservices and not much else. Learn C next.
Ryder Lopez
Ruby
Camden Stewart
Java
Isaiah Adams
No. Your next step should be Haskell.
Oliver Sanders
> Fizzbuzz I didn't know Kubernetes, etcd, cockroachdb, docker, vault were all Fizzbuzz. Microsoft has a whole entire team in Azure writing Go in Redmond. Didn't know they were all Fizzbuzz. Almost all the work in """cloud""" computing is int Go.
>Look at me, I can't compare languages because apparently everything has to be EXACTLY THE FUCKING SAME IN EVERY BYTE EVER IN ORDER TO TREAT MY TOY FAIRLY.
It's called having a sensible and fair comparison dickhead. HURR WHY CANT I COMPARE APPLES AND ORANGES
>HAHAHA holy shit, name me ONE (1) piece of professional software that's written in Go. Read the start of my post. >inb4 software written by professionals, for professionals is not professional because inane reasons
>Let's ignore the fact that it's a response to how OP blatantly stated that it's "not bloat" 2mb is bloat in a world where the JVM exists??
The "hurr" Google Marketing thing again really? Google hardly even uses Go, they are primarily a Java and C++ shop. However plenty of other companies are using Go more and more like Microsoft.
>Learn C next. Name one piece of new software that has been written in C in the last 5 years thats more than a "tiny webservice"
Isaac Gomez
Contrarians on Jow Forums will see this and say its photoshopped
can i fuck with games with it? can i write an os in it? can i use it on legacy hardware with legacy operating systems?
if no to any of these, then fuck off no matter how good it is, it still has no uses
Chase Butler
Wow. Golang is more popular than three other obsolete meme languages. Amazing!
Jaxon Ortiz
Bros what the fuck? I compiled my fizzbuzz and it was 1.6 MB. This language is fucking garbage.
Robert Jackson
>emotionally devoted to the latest trend >obsessed with microsoft pajeet detected
Easton Baker
you can be a googler
Zachary Rivera
does go have macros? perhaps that would be of use for that error handling.
Jonathan Mitchell
>has a syntax standard that literally everyone follows Every syntax is a grammar that everyone follows, you Go brainlet. Not surprising since the creator himself advertised it as a brainlet language. Retardlang.
Connor Evans
> growing userbase means it's good
I guess by this metric Javascript is the best language in the world since it's got the most users.
Alexander Taylor
>Kubernetes, etcd, cockroachdb, docker, vault And all of those are fucking plagued with massive issues.
Easton Hernandez
>Google hardly uses Go. True, they just push the shit on everyone else.
Joshua Ross
Good job proving that golang is past the inflection point on it's adoption S-curve....
Easton Mitchell
It is one of the best for sure.
Kayden Thomas
could someone post the meme hello world in rust? thanks
Gavin White
>can i fuck with games with it? Yes. >can i write an os in it? Yes. >can i use it on legacy hardware with legacy operating systems? Yes.