News for hackers. Stuff that matters.
Re:Go 1.11 Beta 2 is Released by quantumwoke on Friday July 20, 2018 @08:34AM (#17574452)
I am disappointed every time I see a new Go release and go to check the release notes. The language is still lacking features like generics, sane concurrency primitives and even performance in some cases. Of course the WebAssembly port in 1.11 is an impressive feat of engineering, but I can't see myself replacing core components at my company with Go yet. Fingers crossed.
Re:Go 1.11 Beta 2 is Released by mseepgood on Friday July 20, 2018 @08:43AM (#17574497)
If you check each Go release notes for generics you're doing it wrong. If generics will come one day you will have heard about it long before any release notes.
Re:Go 1.11 Beta 2 is Released by claydavisss on Friday July 20, 2018 @10:30AM (#17575253)
Literally years before.
Re:Go 1.11 Beta 2 is Released by endorphone on Friday July 20, 2018 @10:01AM (#17575027)
It sounds like other languages fill your needs better. That's okay, different languages target different philosophies and needs.
Re:Go 1.11 Beta 2 is Released by cy_hauser on Friday July 20, 2018 @06:16PM (#17579429)
Which ones? Need compile to executable, no separate runtime/fat jar, non-system language (C, C++, D, Rust, etc.) with garbage collection and is production ready (not pre 1.0).
Re:Go 1.11 Beta 2 is Released by ancarda on Friday July 20, 2018 @08:43AM (#17574496)
>sane concurrency primitives

Could you elaborate on this? Are you perhaps talking about STM? I can't think of anything else that is really missing.

Re:Go 1.11 Beta 2 is Released by carwyn on Saturday July 21, 2018 @06:44AM (#17581559)
Generics are very unlikely to happen before Go 2

https://dave.cheney.net/2017/07/22/should-go-2-0-support-gen...

Re:Go 1.11 Beta 2 is Released by pjmlp on Friday July 20, 2018 @09:57AM (#17575001)
If you think Go will ever get generics you are fooling yourself.
Re:Go 1.11 Beta 2 is Released by kxukfoldld on Friday July 20, 2018 @11:47AM (#17575979)
Re:Go 1.11 Beta 2 is Released by PopsiclePete on Friday July 20, 2018 @01:20PM (#17576966)
The Go team's stance on generics, summarized:

For us to consider generics, show us an implementation, that:

1. Doesn't hurt compile times too much. 2. Doesn't bloat the binary too much. 3. Doesn't hurt run-time performance too much. 4. Doesn't fundamentally change the language syntax too much. 5. Doesn't complicate the type system too much. 6. (My personal fav) - Plays nicely with Go interfaces. (Seriously, good luck with that one!)

Show us that and no problem - you'll get generics!

Now before you go off and waste months doing that, realize that it's them basically politely telling the community to piss off with these generics proposals. But they're free to write comments in a dozen or so Github issues if it makes them feel better, why not.

If you've been following the language since 2010 or so, like I have, you'd know by now that roughly 4 well-thought generics proposals have been shot down by the core team.

Programmers are really horrible with emotional intelligence and reading between the lines, it seems.

Re:Go 1.11 Beta 2 is Released by Vendan on Friday July 20, 2018 @01:04PM (#17576819)
> The intent is not to add generics to Go at this time, but rather to show people what a complete proposal would look like.

Yeah, that's there specifically to be pointed to for all the people that say "generics would be easy to add to the language, just do it"

Re:Go 1.11 Beta 2 is Released by pjmlp on Friday July 20, 2018 @11:52AM (#17576035)
"Issue opened two years ago".

Visible work done on generics, beyond go generate, zero.

Unless you also want to teach me how to check Go's source code for the pull request related to that issue.

Until then it is all just smoke and mirrors.

Re:Go 1.11 Beta 2 is Released by PopsiclePete on Friday July 20, 2018 @01:21PM (#17576979)
There is no work done by anyone on the core Go team on generics, you are correct. An open github issue means diddly squat.

It's tagged as "language change" and "Go 2".

There is no Go 2 being planned/worked on - it's just a bucket of thoughts.

Re:Go 1.11 Beta 2 is Released by carwyn on Saturday July 21, 2018 @06:42AM (#17581552)
Re:Go 1.11 Beta 2 is Released by pjmlp on Saturday July 21, 2018 @02:55PM (#17583254)
A blog post dated from 13 July 2017, one year later hardly anything changed.