News for hackers. Stuff that matters.
Re:Why has CPU frequency ceased to grow? (2014) by ilogik on Wednesday February 21, 2018 @06:52AM (#16428757)
Doesn't go also make it relatively easy to write parallel code?
Re:Why has CPU frequency ceased to grow? (2014) by gameswithgo on Wednesday February 21, 2018 @09:37AM (#16429721)
Not especially. It has goroutines, C# has Tasks, C++ has green thread libraries. Added onto this are channels which are basically thread safe queues, other languages have those too. (I am aware that there are differences between what features goroutines and Tasks provides)

Go's implementation of these things is nice, neat, and all included out of the box though which is nice.

In general you can make parallelism easy, or efficient, rarely both, at least not in a way that can solve problems generally.

edit: I should add Go does also come with a data-race detection tool which can be very useful. Not sure any other language includes that out of the box!

Re:Why has CPU frequency ceased to grow? (2014) by burntsushi on Wednesday February 21, 2018 @12:05PM (#16430916)
I think Go does make it relatively easy to write parallel code in comparison to most other frequently used languages.

> Not sure any other language includes that out of the box!

Rust's compiler does it by default, at compile time. ;-) Go's race detector is never wrong, but it may omit things. On the other hand, Rust's compiler is also neither wrong nor does it omit things, except under one circumstance: someone, somewhere, wrote `unsafe` code and committed a bug inside that block.

ThreadSanitizer is also a thing: https://clang.llvm.org/docs/ThreadSanitizer.html

Re:Why has CPU frequency ceased to grow? (2014) by Thaxll on Wednesday February 21, 2018 @11:37AM (#16430677)
Except in other languages it's not part of the core, it's an external library. So on the end it's easy to write "parallel" code.
Re:Why has CPU frequency ceased to grow? (2014) by gameswithgo on Wednesday February 21, 2018 @01:41PM (#16431794)
In C#, Task is part of the language, thread safe queues are part of the core libs.

Still not quite as tightly integrated as Go though.

Re:Why has CPU frequency ceased to grow? (2014) by ztoben on Wednesday February 21, 2018 @08:03AM (#16429107)
I believe you're thinking of concurrency, which go handles pretty well with goroutines.
Re:Why has CPU frequency ceased to grow? (2014) by icedchai on Wednesday February 21, 2018 @09:16AM (#16429554)
Go can use multiple cores. Goroutines will run in parallel (assuming GOMAXPROCS > 1.)