Holy shit. this language is comfy af

holy shit. this language is comfy af.

>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

tell me a better language Jow Forums?

Attached: Screen Shot 2018-07-15 at 23.11.07.png (922x374, 100K)

Other urls found in this thread:

benchmarksgame-team.pages.debian.net/benchmarksgame/faster/go-python3.html
stackoverflow.com/questions/28576173/reason-for-huge-size-of-compiled-executable-of-go
raw.githubusercontent.com/Mark-Weston/platformer/master/state.h
golang.org/doc/faq#Why_is_my_trivial_program_such_a_large_binary
akkadia.org/drepper/no_static_linking.html
twitter.com/SFWRedditGifs

the only thing i hate is the mascot. would fuck renee french with a dildo shaped like a gopher desu.

lol no generics

Doesn't it have terrible error handling?

Or was that rust?

>sane syntax
for i := 1; i

>tell me a better language Jow Forums?
Python.

>interfaces
It's like asking for a hamburger and getting a dildo in return.
>not bloated
See pic related
if err != nil {
log.Fatal(err)
}

Make that a hotkey somewhere. Because this shit will be 70% of your source code.
Didn't they switch to a new logo?

Attached: Screenshot_2018-07-24_17-39-37.png (482x595, 43K)

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.

>See pic related
Unfair comparison.
Try gcc -static

>"generics," a broken misfeature
lmao

I literally fucking did are you this blind?

>no generics

A fairer comparison is to use "print", which is a Go built-in. "fmt.Println" pulls in additional content.

How is Go's performance compared to Python? I've always wondered, and for that matter, if C# is faster than Go or not.

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.

benchmarksgame-team.pages.debian.net/benchmarksgame/faster/go-python3.html
order of a magnitude

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 ?

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

Sorry, I automatically assumed you were going to do this trick to fool the new guy.

Anyway, here's a more detailed analysis of the issue
stackoverflow.com/questions/28576173/reason-for-huge-size-of-compiled-executable-of-go

wow nice dumbass tripfag

Attached: file.png (390x282, 9K)

>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; }

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.

good shit comparison you've got there
golang.org/doc/faq#Why_is_my_trivial_program_such_a_large_binary

akkadia.org/drepper/no_static_linking.html

shitty c interop

Attached: file.png (337x97, 2K)

Attached: nope.png (609x35, 8K)

>pacman -Si go | grep Size
>Download Size : 67.41 MiB
>Installed Size : 330.20 MiB

>pacman -Si gcc | grep Size
>Download Size : 32.94 MiB
>Installed Size : 131.87 MiB
Why is it so fucking gigantic?

>made by Thompson, endorsed by Kernighan
>Jow Forums insists it isn't the true C replacement because muh sjws

Yeah, can't understand this.

Only the poltards care about that

because it includes cross-compiler and standard library :^)

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

Attached: Screenshot_2018-07-24_18-14-00.png (339x178, 16K)

go build -ldflags "-s -w" ggggggg.go
remove the debug symbols

>666K
coincidence? I don't think so

Attached: google-evil.jpg (1131x581, 254K)

>>has a syntax standard that literally everyone follows

I don't follow it.

FUCKING SUE ME, TABS ARE BAD AND YOU SHOULD FEEL BAD

>comfy
it's awful and not expressive at all, like writing 20 year old java

It still isn't good, but I guess it's comfy.

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

What do you actually use this language for?

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.

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

I've been rewriting all my stuff in Go

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.

the joke is that compilation speed doubled when thy ported the compiler from C to Go

>why is fast compilation a primary goal
t. someone who's never had to interact with any jdk based languages

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?

>Do you kids do anything other than compile gentoo?
There's no point in asking. You already know the answer to that.

>i hear haskell needs a new monad library
lmao

by the way don't use println...

Yep, a great lang.

Attached: Screen Shot 2018-07-24 at 18.24.08.png (833x274, 51K)

golang is losing its meme status fast, if it doesn't have a good 2.x it'll be on its way out

tell that to the chinese

Golang is exponentially popular

makes sense, they do love outdated shit like windows xp

Java 2.0 without generics

>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"

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.

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.

>tell me a better language Jow Forums?
How about C++, the original language it ripped off?

rewriting the rust toolchain obviously

Understandable, I'm not the other guy tho.

>these are Jow Forums's champion arguments against Go
Feels good not being 12 years old.

Attached: acme.png (600x302, 2K)

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

package main

import (
"compress/zlib"
"flag"
"io"
"os"
)

func decompress() {
r, _ := zlib.NewReader(os.Stdin)
io.Copy(os.Stdout, r)
r.Close()
}

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

Is Golang a good language to pick up after Python?

No, Golang is for writing tiny webservices and not much else. Learn C next.

Ruby

Java

No. Your next step should be Haskell.

> 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"

Contrarians on Jow Forums will see this and say its photoshopped

Attached: Screen Shot 2018-07-24 at 11.09.19 AM.png (1550x1074, 208K)

what use is it?
what can i actually do with it?

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

Wow. Golang is more popular than three other obsolete meme languages. Amazing!

Bros what the fuck? I compiled my fizzbuzz and it was 1.6 MB. This language is fucking garbage.

>emotionally devoted to the latest trend
>obsessed with microsoft
pajeet detected

you can be a googler

does go have macros? perhaps that would be of use for that error handling.

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

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

>Kubernetes, etcd, cockroachdb, docker, vault
And all of those are fucking plagued with massive issues.

>Google hardly uses Go.
True, they just push the shit on everyone else.

Good job proving that golang is past the inflection point on it's adoption S-curve....

It is one of the best for sure.

could someone post the meme hello world in rust? thanks

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