News for hackers. Stuff that matters.
Re:Swift Algorithms by vips7L on Wednesday October 07, 2020 @11:31PM (#24715424)
Instead of just using an actual good language?! Go is the problem!
Re:Swift Algorithms by hazz99 on Thursday October 08, 2020 @12:30AM (#24715812)
"Good" is meaningless – there is no absolute measure of the relative value of one programming language over another. C is not "better" than Python, or vice versa, just different tradeoffs for different problems and programming styles. The same is for Go.
Re:Swift Algorithms by vips7L on Thursday October 08, 2020 @05:03AM (#24717278)
I think there is some measure of value to not having to use a whole different language to generate go because it's incapable of making maintainable code without it.

This is stockholm syndrome.

Re:Swift Algorithms by hazz99 on Thursday October 08, 2020 @06:01AM (#24717622)
Part of Go’s tradeoff is managing that extra effort (or delay in waiting for the features to hit the main branch) in return for an extremely stable, simple language.

You might find that to be a terrible idea, but others ostensibly think differently (Go is quite popular)

Personally, I prefer more advanced type systems. But I understand Go can be a good choice in other situations.

Re:Swift Algorithms by nicoburns on Thursday October 08, 2020 @07:57AM (#24718271)
> Go is quite popular

Well sure, but inheritance and enterprise-style Java were all the rage in the 90s, but they largely haven't stood the test of time. I rather suspect Go will be similar. It has some good ideas, and it's compiler toolchain is top-quality. But I'd be willing to bet that the languages we're using in 20 years time look a lot more like Rust/Swift/Kotlin and TypeScript/Julia than Go.

Re:Swift Algorithms by pjmlp on Thursday October 08, 2020 @08:15AM (#24718394)
Go will eventually grew up to be like Java and Cä# in 2020.

Java was released in 1996, and only got enterprise-style C++ adoption around 2000.

Until then, the inheritance and enterprise-style programming was done in a mix of Smalltalk, Eiffel, C++ and C based OOP.

Julia is basically Dylan/Common Lisp at its kernel, Java and C# are getting all the ML like goodies to stay relevant, see C# vs F#.

Re:Swift Algorithms by ironmagma on Thursday October 08, 2020 @03:00AM (#24716611)
Kind of, but C and Python have undergone many iterations to try to become as good as they can be, while Go has lagged behind and almost prides itself on how uncomplex it is which is unfortunate only because people crave for it to be more complex. With languages like C and Python, the complexity and capability is there; it’s on you to decide when to use it. With Golang, you are just SOL.
Re:Swift Algorithms by Philip-J-Fry on Thursday October 08, 2020 @03:26AM (#24716756)
The thing is, do you want so many iterations to get something close to being good. Or do you want people to work with the community and decide together what a feature should look like and then get it in a good shape at day 1.

Like, ask any python dev what dependency management is like. That's what iteration gets you. Take your time and you get in a much better shape.

Re:Swift Algorithms by ironmagma on Thursday October 08, 2020 @02:44PM (#24722324)
Thing is, I’m not convinced Go is actually “taking their time,” it’s just intentionally crap and there won’t be any significant improvements. Generics have been “coming” since the language became popular ~10 years ago.