News for hackers. Stuff that matters.
Re:Go 1.1 beta 1 Released by pkolaczk on Thursday April 04, 2013 @04:55AM (#5491646)
I agree Go and D really can't find its niche. They both are very interesting languages, but is there any really impressive application where those languages would rock? Something that when asked for, the only obvious answer would be "use Go"? Being a better C or a better C++ is IMHO not enough.

Want high performance and full control? Use C (or C++). Want your code to be easy to maintain by an average Joe? Use Java or C#. Want your code to be concise? Use Clojure. Want extreme typesafety? Use Haskell. Need to use both OOP and FP? Use Scala. What question to ask so the obvious answer would be "Use Go?"

Re:Go 1.1 beta 1 Released by polshaw on Thursday April 04, 2013 @08:32AM (#5492208)
>What question to ask so the obvious answer would be "Use Go?"

I basically see it as a midpoint between C and python, that offers most advantages of both.

From C: Low memory use, fast execution, type safety/ compiled.

From python: Easy/fast to learn/read/write, no slow compile, GC, memory safety, good standard libraries

It also does concurrency better than python (/anything else?). What would you say better fits these criteria? Certainly not the JVM languages (memory) or Haskell (accessibility).

Re:Go 1.1 beta 1 Released by dons on Thursday April 04, 2013 @09:16AM (#5492397)
Go is a low level language compared to Haskell though. It's like walking back to 1982.
Re:Go 1.1 beta 1 Released by ansible on Friday April 05, 2013 @09:09AM (#5498143)
Go is a low level language compared to Haskell though. It's like walking back to 1982.

I was immediately dismissive of Go when I first heard of it a few years ago. I only started looking at it again a couple months ago when I ran across the 'splash' article. [1] The attention to detail with regards to the language, the standard library and the tooling really impressed me.

Yes, in many ways Go is low level. It doesn't break much new ground from a programming language design perspective. It doesn't provide a lot of features, but what it does have is well integrated. At every turn, language features were added or left out based on the larger software engineering perspective, rather than what can produce the most succinct or elegant code.

[1] http://talks.golang.org/2012/splash.article

Re:Go 1.1 beta 1 Released by redbad on Thursday April 04, 2013 @09:55AM (#5492637)

    What question to ask so the obvious answer would 
    be "Use Go?"
Writing services in a SOA tech stack.
Re:Go 1.1 beta 1 Released by pjmlp on Thursday April 04, 2013 @07:36AM (#5492045)
Go is C programming for the average Joe.
Re:Go 1.1 beta 1 Released by polshaw on Thursday April 04, 2013 @08:41AM (#5492235)
I kind of agree with you (being an 'average Joe'?), but surely Go offers some advantages over C even for a C programmer; faster to write and compile, more readable code, concurrency, memory safety.
Re:Go 1.1 beta 1 Released by pjmlp on Thursday April 04, 2013 @08:54AM (#5492290)
Except those advantages were already possible back in 1978 with Modula-2, nothing new.
Re:Go 1.1 beta 1 Released by bishop_mandible on Thursday April 04, 2013 @11:58AM (#5493363)
If it helps bringing these advantages to modern day programmers then I'm all for it. A lot has been lost during the 90's with the rise of C++ and Java.
Re:Go 1.1 beta 1 Released by pjmlp on Thursday April 04, 2013 @12:05PM (#5493402)
I agree, but I see Rust, D or even C# better suited for that purpose as Go, since it throws too much away.
Re:Go 1.1 beta 1 Released by RickHull on Thursday April 04, 2013 @10:41AM (#5492924)
What's the Modula-2 equivalent of the goroutine concurrency primitive?
Re:Go 1.1 beta 1 Released by pjmlp on Thursday April 04, 2013 @12:03PM (#5493390)
Co-routines, Modula-2 was one of the first languages to have native support for such constructs.

The only things that Go has over Modula-2 are interfaces, single declaration modules and GC.

Single declaration modules and GC were part of Modula-2 successor, Oberon in 1986, while Active Oberon in 2001 added Tasks and Interfaces to the Oberon language family.

All of these languages were used to built operating systems used for real work at Zurich's Technical University.

Re:Go 1.1 beta 1 Released by jksmith on Thursday April 04, 2013 @05:35PM (#5495447)
Yep, I miss me some M2. That's the most satisfying programming I've experienced so far.
Re:Go 1.1 beta 1 Released by kyrias on Thursday April 04, 2013 @05:31AM (#5491719)
"easy to maintain by an average Joe" and "Java" don't belong together
Re:Go 1.1 beta 1 Released by coldtea on Thursday April 04, 2013 @06:12AM (#5491803)
Seen any other language used and maintained by more average Joes?

Because that's exactly one of the niches of Java -- enterprise programming by average Joes. It was even a stated design goal of the language back in the day.