News for hackers. Stuff that matters.
Re:Channels Are Not Enough by latch on Sunday September 14, 2014 @11:01PM (#8317081)
In the Go FAQ [1], when they list the purpose of the project, the first answer they give isn't about concurrency (as some might suspect), it's:

  "It is possible to compile a large Go program in a few seconds on a single computer."
They've been consistent about this. It's a major design goal and, for some, compilation speed is worth more than support for Generics.

[1] http://golang.org/doc/faq#What_is_the_purpose_of_the_project

Re:Channels Are Not Enough by pjmlp on Monday September 15, 2014 @03:23AM (#8317646)
Any language with modules and generics and production quality native code compiler, does enjoy fast compilation speed.

It is a good sell when the audience only knows about C++ compilation issues.

Re:Channels Are Not Enough by vidarh on Monday September 15, 2014 @09:31PM (#8322586)
Last time people were ecstatic about go compilation speed, the speeds cited didn't even hold up well against gcc.. The go compiler is not very fast, but as you point out the features of the Go language makes it amenable to fast compilation.

What kills compilation performance for larger C/C++ projects is include hell and managing build dependencies, which as you point out is mitigated in language with modules.

Re:Channels Are Not Enough by pjmlp on Tuesday September 16, 2014 @01:14AM (#8323164)
And with luck, even C++ will finally have modules. Still need to wait a few more years, though.
Re:Channels Are Not Enough by gnuvince on Sunday September 14, 2014 @11:28PM (#8317151)
And yet, the dmd compiler for D support templates and is faster than the gc Go compiler.
Re:Channels Are Not Enough by enneff on Monday September 15, 2014 @12:15AM (#8317244)
I'll say it again: Go doesn't have generics because of implementation complexity. The tradeoff was against the additional complexity that our users would have to deal with.
Re:Channels Are Not Enough by SirWart on Monday September 15, 2014 @01:56PM (#8320275)
I don't know where people would have gotten that idea from: https://golang.org/doc/faq#generics
Re:Channels Are Not Enough by mlatu on Monday September 15, 2014 @10:39AM (#8319141)
right, because a big codebase to deal with the lack of generics doesnt add complexity at all.

you see, the problem with the complexity of a language isnt real. it is perfectly possible to avoid generics in c++ forever. but there will come a day when you think to yourself, was it really worth it to be this lazy? then you take a peek and (assuming you understand generics by then enough to use it a little) suddenly half of what you have writen so far is for the bin.

Re:Channels Are Not Enough by gnuvince on Monday September 15, 2014 @07:48AM (#8318277)
I was only addressing the comment of the parent that suggested adding parametric polymorphism would kill compiler performance.
Re:Channels Are Not Enough by f2f on Monday September 15, 2014 @12:36AM (#8317294)
DMD isn't faster than the go compiler anymore
Re:Channels Are Not Enough by Jweb_Guru on Monday September 15, 2014 @10:14AM (#8318993)
You've said this several times. I believe you, but can you please link to your source? There aren't a lot of comparative compile time statistics out there. Last time I checked, dmd was quite fast regardless--maybe no longer faster than the Go compiler, but within the same ballpark.