News for hackers. Stuff that matters.
Re:Go's power is in emergent behavior by ryanobjc on Saturday April 26, 2014 @09:28PM (#7653501)
for me, the built in goroutines is what moves the needle. The rest of the stuff is very nice, but built-in concurrency is pretty nice.

Yes I know about Erlang, no I won't touch Erlang again.

Re:Go's power is in emergent behavior by coolsunglasses on Saturday April 26, 2014 @10:47PM (#7653699)
Haskell is statically compiled, has lighter weight green threads than Erlang, and a better type system than Go. You can even do CSP in Haskell.

Check it out :)

http://chimera.labs.oreilly.com/books/1230000000929

http://hackage.haskell.org/package/async

Re:Go's power is in emergent behavior by rdtsc on Saturday April 26, 2014 @10:29PM (#7653660)
> Yes I know about Erlang, no I won't touch Erlang again.

Curious, what makes you say that?

Re:Go's power is in emergent behavior by ryanobjc on Sunday April 27, 2014 @04:51PM (#7656809)
Strings basically. I ended up joining Google back when, and ultimately I realized that "the web = strings" and Erlang is particularly bad at that. 128 bits for a 7-bit ascii character?

At the time, there was no good binary<->string utf8 libraries, not sure what the state of the art is now.

Re:Go's power is in emergent behavior by findjashua on Saturday April 26, 2014 @09:50PM (#7653571)
Elixir?
Re:Go's power is in emergent behavior by midas007 on Saturday April 26, 2014 @10:22PM (#7653642)
Elixir is neat, but it takes dynamic languages much farther away from static type checking.

Static compilation and compilation speed make Go very attractive for large projects.

Re:Go's power is in emergent behavior by rdtsc on Saturday April 26, 2014 @10:36PM (#7653673)
Erlang has dialyzer type checker. Depending on how well users refine their types that can produce very good results. Combine that with property checker (PropEr or QuickCheck) + Erlang's default process isolation and fault tolerance, and I think it can make for a more reliable system. I think I'll take that into production over just having a statically typed program. (Just going off my gut feeling and experience).

http://learnyousomeerlang.com/dialyzer

( not sure if Elixir supports it though, but it seems so:

http://elixir-lang.org/docs/stable/Kernel.Typespec.html )

Re:Go's power is in emergent behavior by midas007 on Saturday April 26, 2014 @10:40PM (#7653682)
Yeap thanks, have used both.

It's just optional, and therefore doesn't get used much on open source projects. So the average quality of code suffers.

Whereas something like Go where extra import are hard errors, making best-practices mandatory keeps code to certain standard and it's zero work to setup.

Re:Go's power is in emergent behavior by rdtsc on Saturday April 26, 2014 @10:55PM (#7653721)
Yap, makes sense, I see your point.

Haven't heard of mandatory dialyzer type coverage yet. It would be kind of commit hook of sort, still external to the compiler though...

Re:Go's power is in emergent behavior by midas007 on Saturday April 26, 2014 @11:04PM (#7653735)
Ugh. What's most needed is a erlang-platform like haskell-platform.... bring together vital tools (proper/dialyer/etc), have a great package index (like hackage/pypi/rubygems) + package manager and have a skeleton project generator (rails-ish) that sets up what was asked for.

Convention > configuration

The easier it is to get going and contribute, the more people will use it. (Haskell pushed hard on this later on and has really benefited. Node did it early.)