Languages for servers (Go, D, and more)

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 4 07:10:28 PDT 2014


Go (compared to several other languages) for servers:

http://togototo.wordpress.com/2014/07/04/why-go-is-great-for-servers/

http://www.reddit.com/r/programming/comments/29t3zy/why_go_is_great_for_servers/

The two comments about D:

>I considered an implementation in D, but while D has green 
>threads in the form of fibres, but doesn’t seem to include a 
>scheduler, so I’d have to write one myself. Also, while it has 
>message passing between threads, it doesn’t seem to have message 
>passing between fibres. It also has no equivalent of Go’s select 
>statement, so the only way to poll multiple channels would be to 
>wait on one with a very short timeout, then wait on the next, 
>and so on in a loop, which is rather ugly.

>D: y u no distinguish between ints/longs/floats/doubles and 
>pointers when taking out the trash? You argue that internal 
>pointers make implementing a precise garbage collector (which 
>wouldn’t mistake numbers for pointers) impossible, but Go 
>managed it in spite of also having internal pointers.

Bye,
bearophile


More information about the Digitalmars-d mailing list