Languages for servers (Go, D, and more)
Brian Rogoff via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jul 5 09:22:52 PDT 2014
On Friday, 4 July 2014 at 19:46:40 UTC, Remo wrote:
> On Friday, 4 July 2014 at 16:16:35 UTC, Meta wrote:
>> With @nogc and the -vgc compiler switch, I think it would
>> fairly easy now to do C-style memory management and know that
>> there are no hidden GC allocations in your program. Whether
>> you would want to do this in D is another story.
>
>
> Who want to use C-style memory management today ?
Lots of interesting programs and libraries are written
specifically in C, not C++, even today. But, as others have
pointed out, you can use RAII in D and as time goes on even more
advanced memory management libraries will become available.
But my point was merely that D is somewhat hamstrung by virtue of
being a garbage collected language with a not so great GC, and
some complexities around not using it. Not an insurmountable
problem if you're committed to using D, but when you are making a
decision about what to use, it is a factor. For writing various
server programs, if you want to work with a GC'ed, compiled to
native code language, Go may be a much better choice than D right
now.
This is a problem with being such a wide spectrum language: D has
to compete with high level GC'ed languages and will also need to
compete with low level languages without GCs. That's a tough row
to hoe!
More information about the Digitalmars-d
mailing list