News for hackers. Stuff that matters.
[dead]
Re:Go is moving to GitHub by patrickaljord on Thursday November 13, 2014 @08:34PM (#8605341)
Really? You've managed to mention the lack of generics on a thread announcing moving go to github? Is this a parody comment or are you serious?
Re:Go is moving to GitHub by sanatgersappa on Thursday November 13, 2014 @10:46PM (#8605721)
Seriously. Why does every single thread about Go have to have at least 1 guy talking about lack of Generics?
Re:Go is moving to GitHub by shadowmint on Thursday November 13, 2014 @08:42PM (#8605381)
Why does hacker news not have a reddit style 'below threshold' to display none subthreads? :/
Re:Go is moving to GitHub by dang on Thursday November 13, 2014 @08:48PM (#8605403)
I feel your pain. This is coming. In the meantime, we've detached this subthread from its parent so we can mark it off-topic.

All: predictable flamewars add no new information, therefore have a signal/noise ratio of zero, and therefore are off topic for Hacker News.

Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @09:01PM (#8605442)
If this area is going to be marked off, then I would appreciate my mod points being restored as well. If you look at my original response, it was pointing out the fallacy in a very particular claim (and nothing resembling a 'flame war').
Re:Go is moving to GitHub by dsymonds on Thursday November 13, 2014 @09:04PM (#8605454)
You got downvoted (presumably; I don't have such powers) because you took this off-topic (Go's type system has nothing to do with what version control system is used for its development). What's the point of HN karma if you can get those points back?
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @08:34PM (#8605345)
Totally serious. And, it's not just the lack of generics-- that's just the tip of the iceberg.
Re:Go is moving to GitHub by hahainternet on Thursday November 13, 2014 @08:46PM (#8605397)
What problems have the lack of generics caused you in development?
Re:Go is moving to GitHub by lmm on Friday November 14, 2014 @04:51AM (#8606443)
Last time I used a language without generics I had to cast web form values (we used a library with a general-purpose representation of "form control backed by object"). Sometimes these were incorrect, and had to be debugged. More than that, when working on the form code I had to constantly keep track of the types of things in my head, because there was no way to have the computer do it for me (we did try Hungarian notation for a bit but that was a disaster). Is it the end of the world? No. Does it slow development? Absolutely.
Re:Go is moving to GitHub by NateDad on Friday November 14, 2014 @06:23AM (#8606631)
"a language" means it presumably was not Go, and is therefore irrelevant. All languages are different.
Re:Go is moving to GitHub by lmm on Friday November 14, 2014 @09:27AM (#8607238)
The fact that we can talk about "generics" at all means you're wrong. Any general-purpose programming language has to solve the same set of problems and the ways different languages solve them are often recognizably the same approach. And Go is very, very similar to Java 1.4.
Re:Go is moving to GitHub by NateDad on Friday November 14, 2014 @11:28AM (#8607913)
> Go is very, very similar to Java 1.4

Except for multiple return values, easy concurrency, implicit interfaces, real value types, pointers, functions as first class types, closures, no inheritance, no exceptions.... but yeah, other than that, they're totally similar languages.

Re:Go is moving to GitHub by tracker1 on Thursday November 13, 2014 @09:20PM (#8605505)
In JavaScript, none at all.. ;-)

In C#, before generics, wiring up a typed collection/enumerable was seriously painful.

Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @09:13PM (#8605485)
I think the right way to think about that is: "what solutions has lack of generics prevented me from writing?". From the expressive end of the power continuum, Go is way down there (somewhere below Blub probably).

http://www.paulgraham.com/avg.html

Re:Go is moving to GitHub by hahainternet on Thursday November 13, 2014 @09:45PM (#8605581)
What solutions have lack of generics (in Go) prevented you from writing?
Re:Go is moving to GitHub by codygman on Friday November 14, 2014 @10:39AM (#8607595)
Type-safe json decoding.
Re:Go is moving to GitHub by dsymonds on Thursday November 13, 2014 @08:33PM (#8605335)
I think you mean s/ignorance/rejection/.
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @08:34PM (#8605339)
Probably a combination of both really. I get the sense that the 'Commander' hasn't done the requisite reading.
Re:Go is moving to GitHub by dsymonds on Thursday November 13, 2014 @08:36PM (#8605353)
I just asked him in person. He has.
Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @08:36PM (#8605355)
Anyone that knows Rob will tell you that you're simply wrong about this.
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @09:16PM (#8605496)
Only if you are inside the cult could you possibly have that opinion. Do you also think that Jim Jones was an expert on the New Testament teachings? If you take his word for it, of course he was.
Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @09:23PM (#8605514)
We (the Go team) regularly have conversations about all kinds of programming paradigms, because we're into that kind of stuff. Some of us really like functional programming languages. But Go is not that kind of language, so those primitives do not belong there. Go is not everything to everyone, and it would be a mistake to try to make it that way. That doesn't mean that we don't see those things as generally valuable, just not in this context.
Re:Go is moving to GitHub by yarou on Friday November 14, 2014 @05:03AM (#8606466)
A bit OT, but probably the biggest roadblock for me switching over to Go is the wonky syntax. Are there any plans to make Go more accessible to someone coming from more traditional languages? (i.e. like "do" notation in Haskell) I've done the Go tutorial about 5 times last I checked (seriously), and I just can't stomach the syntax. I may be tainted by my years of C, though.
Re:Go is moving to GitHub by NateDad on Friday November 14, 2014 @07:07AM (#8606727)
What?! If anything, your use of C should make Go's syntax really familiar (aside from putting the name before the type, which doesn't take long to get used to). It's exactly like any other C-like imperative language. C, C++, Java, C#, even Javascript. Those are pretty traditional langauges. Haskell is not what I think most people would call a "traditional language".

What exactly is your problem with the syntax?

Re:Go is moving to GitHub by yarou on Friday November 14, 2014 @05:31PM (#8609906)
My point about Haskell was not to say that it was more intuitive for imperative programmers, rather, it was to demonstrate a syntactic sugar construct that eases programmers in. Because Go's syntax is so similar to C, it is confusing because as a coder, I can only context switch a finite amount of times.
Re:Go is moving to GitHub by gorhill on Friday November 14, 2014 @07:04PM (#8610291)
> I just can't stomach the syntax. I may be tainted by my years of C, though.

I can't relate to this.

That's exactly my years of C that makes Go quite attractive to me. The way I see Go is that it allows me to code as close to metal as C, but without the pains of C -- headers, make file/dependencies, memory management, and more.

Re:Go is moving to GitHub by kxo on Saturday November 15, 2014 @08:34PM (#8613195)
> code as close to metal as C

> without ... memory management

Re:Go is moving to GitHub by gorhill on Tuesday November 18, 2014 @09:39AM (#8623989)
Read again. As said "as close to ... but without", I didn't say "close to". If you are unable to make sense of what I wrote, don't blame me for your shortcomings.
Re:Go is moving to GitHub by enneff on Friday November 14, 2014 @06:40AM (#8606667)
You appear to know both Haskell and C, but find Go's syntax hard to deal with? This is one of the weirdest Go complaints I've read, for sure. Syntactically, it's just one of the many Algol/pascal-style imperative languages of the last 40 years. Most people get used to it quickly.

At least it's nice and unambiguous.

Re:Go is moving to GitHub by hahainternet on Thursday November 13, 2014 @08:36PM (#8605356)
When people disagree with you, that does not mean they are ignorant.
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @08:40PM (#8605374)
To the siblings to this post: it seems rather unlikely as the research is being generated at a rate that far exceeds any one person's ability to read it (especially when they are already busy marrying C and CSP [which is easy to build as a library or add-on to any other existing language] & type theory isn't their specialty).
Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @08:41PM (#8605378)
So, you're criticising someone for not doing something that's impossible? Just stop.
Re:Go is moving to GitHub by dang on Thursday November 13, 2014 @08:55PM (#8605426)
It was at least interesting how quickly those goalposts moved.
Re:Go is moving to GitHub by yohanatan on Thursday November 13, 2014 @09:09PM (#8605469)
The portion of that material which is requisite is obviously a strict subset of the entirety of the material. But, for one to flippantly say "I've read it" without even establishing what "it" is, seems a bit dismissive and duplicitous to me. Regardless it is obvious to anyone who is knowledgeable that Rob Pike has not read what most who are in the know would consider "requisite".

Also, if you take a look at the thread I posted, his attitude and approach re: map, filter & reduce doesn't come across as the most academic or well thought out.

Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @09:21PM (#8605508)
Rob didn't really say anything about map, filter, and reduce in that thread. His comments should be taken as being in addition to the earlier comments by Ian Lance Taylor, another member of the Go team.

You should address the gaps in your own knowledge before criticising others. For instance, you're obviously unaware that Rob designed and implemented a whole language based around map/reduce/filter style operations: http://static.googleusercontent.com/external_content/untrust...

Re:Go is moving to GitHub by user567 on Thursday November 13, 2014 @10:42PM (#8605708)
I think his obvious implication is that Go doesn't need map, filter and reduce because (if I may summarize) "line feed is just a single character".

That's just really poor (and silly) reasoning honestly. A 12-yr old could look deeper. For instance:

-. Is 'writing' code all that matters?

-. Aren't there in fact 10s or 100s or 1000s more readers to code than writers (including the original author also as a reader)?

-. Do readers like to scroll between various blocks of logic and divine signal from noise by teaching their brain to ignore boilerplate?

-. And what if the brain at first sees something as boilerplate but only upon further examination finds a subtle difference in the pattern for this one rare instance?

-. And what if that happens when the programmer is investigating a long-standing bug that has just resulted in a great loss of human life (and will continue to do so)?

[dead]
Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @11:49PM (#8605858)
Rob, myself, and others have written tomes on this, on Hacker News, golang-nuts, and elsewhere. If you're trying to have an argument with Rob (he's not reading this, btw) over some pithy statement he made in February, you're wasting your time.
Re:Go is moving to GitHub by user567 on Friday November 14, 2014 @12:21AM (#8605922)
You've written tomes on how wasting vertical space and multiplying syntactic noise is a good idea? Even if so: ideas are not measured by the volume of noise you write in support of them.
Re:Go is moving to GitHub by user567 on Thursday November 13, 2014 @11:55PM (#8605874)
You've written tomes on how wasting vertical space and multiplying syntactic noise is a good idea? Even if so: ideas are not measured by the volume of noise you write in support of them.
Re:Go is moving to GitHub by enneff on Thursday November 13, 2014 @11:57PM (#8605877)
At the risk of prolonging this insufferable "conversation": my point is that it has been discussed to death, and you're being down voted because nobody is interested in discussing it with you, or even hearing you discuss it.