I'm porting some go code to D
David Nadlinger
code at klickverbot.at
Sat Aug 24 05:09:27 PDT 2013
On Friday, 23 August 2013 at 23:54:55 UTC, Rory McGuire wrote:
> So I'm porting so #golang code to #dlang and there is all these
> blasted
> "go" statements.So I thought I'd give implmenting it in D a
> shot. What do you guys think?
It's a cute idea, but not really practical, I'm afraid –
Goroutines are managed by a scheduler in the Go runtime library,
whereas D threads directly map to OS threads. Thus, if the Go
application you are porting uses many Goroutines (and the Go code
I've seen usually does so very liberally), the performance of the
D equivalent is going to be horrible.
David
More information about the Digitalmars-d-announce
mailing list