×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
10

Go finally has generics

submitted by v0atmage to programming 2.2 yearsMar 20, 2022 11:25:51 ago (+10/-0)     (go.dev)

https://go.dev/blog/go1.18



7 comments block


[ - ] bobdole9 1 point 2.2 yearsMar 20, 2022 16:07:46 ago (+1/-0)

Oh boy, Google updated their code!

Can't wait for it to follow the Angular style and get a complete rewrite for version 2.

[ - ] AustroSlavism 1 point 2.2 yearsMar 20, 2022 13:48:39 ago (+1/-0)

Now the standard library will be rewritten leading to a bifurcated Dual Monarchy under the Googleburg Empire. Only time will tell if the House of Google is strong enough to hold together as one peoples of such different worldviews.

[ - ] chrimony 0 points 2.2 yearsMar 21, 2022 04:06:41 ago (+0/-0)

All it took was 15 years.

[ - ] headfire 0 points 2.2 yearsMar 20, 2022 17:05:07 ago (+0/-0)*

Who are you and what is this?
I’m Ken and I suck fat nigger cocks.
Bullshit.
No really, it’s true. See? slurp slurp slurp slurp Yum!
...oh god... What do you want?
I designed a programming language th-
FUCK OFF WE’RE FULL
No really, it’s better than C or C++ becau-
...FUCK...OFF...
...b..b..b..but I work for Google, and they like it...
OH OK LOL SORRY YA YA YA IT REALLY IS REALLY GRATE!!1!1oneone!!!

Ken Thompson wrote a dumbed down version of C++ because he’s jealous of Stroustrop and Ritchie, et al. Go removes from hair-to-mouth gen Z dipshit engineers the trivial cognitive load of using a programming language for adults, so that they have enough mental energy left to suck their own dicks about how smart they think they are without cutting into fixing-my-man-bun time.

n0w WiTh gEnErICZ lol !!!11!

lol fuck off. Go is a worthless joke that no one would pay attention to if gOoGLe wasn’t pretending like it’s valuable.

b..b..b..but seventy-one point four two seven zoggity zillion programmers use use it lol

Yes, because their all dumbfuck engineers who don’t know what they’re fucking doing.

They are precisely the retarded faggots that shit was written for.

oOooOH gAnaR1cZ

oh god no one gives a shit

[ - ] v0atmage [op] 1 point 2.2 yearsMar 20, 2022 20:15:21 ago (+1/-0)

Google only produces or uses crap languages. Remember dart? Neither do I.

[ - ] sculptor_and_statue 0 points 2.2 yearsMar 21, 2022 12:59:44 ago (+0/-0)

While your post is a tad hyperbolic, I've written a fair bit of code in Go, and I now find myself unwilling to start a new project in it. It's the kind of language that looked really good on the surface, but the reality of using it isn't nearly so rosy.

The fundamental idea that sounded so good was that it would be a better C than C for many applications, but actual use revealed it to be a more concurrent and generally performant Python. It's not a tremendously ergonomic language, either; the constant "if err != nil" spam is only the tip of the iceberg. Everything about it is just a little bit weird and non-standard. For a while at least, it made syscalls directly instead of going through the OS-provided libc, which led to all kinds of fun, especially on Apple platforms, where a new release of the OS could require you to recompile your program with a new version of the compiler. But hey, at least it meant that you could have statically-linked executables that didn't even need libc. They only end up being a few dozen megabytes in size for any remotely interesting program.

The idea of using Git repositories for package management also sounded like a good idea to many people until they saw it first-hand. Now there's a somewhat awkward (and potentially soon censored) module system that makes the whole process easier until you run into a library that doesn't use it. I recall really struggling to get the module system to do what I wanted it to last time I wrote serious Go code.

Even its interoperability with C wasn't all it was cracked up to be. We ended up with comments that get interpreted by the compiler, something that anybody with a brain should know is insane. On a related note, platform-specific code ended up getting two different mechanisms: one that uses interpreted comments and one that uses special file names and sucks.

Channels were just about the only thing in Go that was legitimately good, and now other languages have adopted them, nullifying that one advantage.

I think Go is going to end up going through many of the same pains as Java did when it added generics post-1.0, but I can't imagine the transition will be managed as well. I'll be watching and laughing from the sidelines.

[ - ] v0atmage [op] 0 points 2.2 yearsMar 20, 2022 13:16:35 ago (+0/-0)

I still think it's a shit language but at least it sucks less now.