News for hackers. Stuff that matters.
Re:Generics in Go with Ian Lance Taylor (2019) by geodel on Tuesday February 18, 2020 @06:59PM (#22361742)
Well for that purpose we already have Rust/ Swift and so many other languages. What is Go's USP apart from fast compiler.
Re:Generics in Go with Ian Lance Taylor (2019) by sacado2 on Wednesday February 19, 2020 @04:51AM (#22364238)
Readability. I never ran into go code I couldn't read.
Re:Generics in Go with Ian Lance Taylor (2019) by eikenberry on Tuesday February 18, 2020 @08:53PM (#22362418)
Native CSP? That's what got my initial interest. The tooling really helped it stick though.
Re:Generics in Go with Ian Lance Taylor (2019) by Thaxll on Tuesday February 18, 2020 @07:57PM (#22362082)
Swift is nowhere outside of mobile space, on server side it's pretty much dead.
Re:Generics in Go with Ian Lance Taylor (2019) by jitl on Wednesday February 19, 2020 @12:03AM (#22363169)
Swift and Rust both are known for long build times.
Re:Generics in Go with Ian Lance Taylor (2019) by pjmlp on Wednesday February 19, 2020 @01:47AM (#22363559)
Mostly caused by LLVM.

Other equally expressive languages have multiple implementations, including REPLs, with Go like compilation speeds.

So Swift and Rust just need equally LLVM fat free implementations for the developer loop, leaving the LLVM backend for the blazing execution release builds.

Re:Generics in Go with Ian Lance Taylor (2019) by camgunz on Wednesday February 19, 2020 @04:26PM (#22370267)
LLVM isn't fast, but there are other slow parts of the process unique to Rust [1].

[1]: http://gistpreview.github.io/?74d799739504232991c49607d5ce74...

[dead]
Re:Generics in Go with Ian Lance Taylor (2019) by dang on Tuesday February 18, 2020 @08:06PM (#22362148)
Please don't degrade the community and yourself by posting like this, regardless of how strongly you feel about programming languages.

https://news.ycombinator.com/newsguidelines.html

Re:Generics in Go with Ian Lance Taylor (2019) by monocasa on Tuesday February 18, 2020 @08:29PM (#22362288)
I'm not saying it's a bad thing.
Re:Generics in Go with Ian Lance Taylor (2019) by dang on Tuesday February 18, 2020 @10:21PM (#22362793)
Ok, but it's a bad thing to post like that to HN.
Re:Generics in Go with Ian Lance Taylor (2019) by codr7 on Tuesday February 18, 2020 @07:59PM (#22362093)
Go has its issues, name a language that doesn't.

For a long time I couldn't stand using it because it's so damn opinionated, but it still hits a sweet spot for me.

I like C a lot because of its simplicity, but hate spending days solving trivial problems.

If you really need C, nothing else will do. But if you're willing to trade some flexibility for convenience, Go lets you make that compromise without dragging along a ton of features that you didn't ask for.

It's a tool, if it works it works.

Re:Generics in Go with Ian Lance Taylor (2019) by tptacek on Tuesday February 18, 2020 @08:04PM (#22362134)
The overwhelming majority of Go code isn't written at Google, and just a glance at Github will show you that it isn't being used to "jerk off into template engines" or "increase clickthrough rate by 0.1%". This comment contributes nothing to the discussion.
Re:Generics in Go with Ian Lance Taylor (2019) by monocasa on Tuesday February 18, 2020 @08:36PM (#22362329)
> The overwhelming majority of Go code isn't written at Google

I write go for my day job; I'm quite aware of their process. They control the language's future and new features pretty much single handedly. Also, I'd be very very surprised to find out that the overwhelming majority of code isn't written by google, do you have a stat on that you can quote?

> it isn't being used to"jerk off into template engines".

I'm saying go doesn't do that. You can't build these crazy compile time abstractions in it like you can other languages, and Google doesn't really need it to because they have enough man power to just brute force it. It doesn't want their workforce build abstractions for abstractions sake, and go doesn't really help you do that.

> or "increase clickthrough rate by 0.1%".

It is very much used to do that, I've been told by product and engineering friends at google.

Re:Generics in Go with Ian Lance Taylor (2019) by tptacek on Tuesday February 18, 2020 @09:08PM (#22362484)
I'm sure developers at Google use it to do that, because that is a problem that Google works on. It is not a problem that Cockroachdb works on, or that Docker works on, or that Hashicorp works on, or that Caddy works on, or that Tailscale works on.