Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Tobias

Tobias Avatar

***
Dedicated Member

182


November 2006
www.golang.org/
Anybody tried it?
I'm really liking the multithreading as a major design feature.
I wrote a parallel Sieve of Eratosthenes in it, although it's not using as much of my second core as I'd like it to (seemingly almost none?).
#intj (Mastermind)^

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
o.O Hadn't heard anything about it actually. It looks interesting though. Is it actually as fast as they say? And does it automatically handle threading or do you manually need to set it up?

Tobias

Tobias Avatar

***
Dedicated Member

182


November 2006
Chris Avatar
o.O Hadn't heard anything about it actually. It looks interesting though. Is it actually as fast as they say? And does it automatically handle threading or do you manually need to set it up?
Well the parallel Sieve I wrote runs as fast in a VM as the single threaded one in C# I wrote that i run natively, so it's fast enough I'd say. I haven't seen a way to change the way the threading happens so I'm guessing it's automatic, although I have a feeling you didn't see the "go" keyword.

EDIT: Found out why it wasn't using my second core. The task scheduler isn't finished, so for now you have to explicitly tell it how many cores to use.


Last Edit: Nov 30, 2009 23:04:52 GMT by Tobias
#intj (Mastermind)^

newBookmarkLockedFalling