Linked by Owen Anderson on Mon 19th Apr 2004 05:43 UTC
General Development For years the development scene has been dominated by the C family of languages, primarily C itself and its immediate successor C++. Recent years have given rise to other C-descendents, however, such as Sun's Java and Microsoft's C#.
Permalink for comment
To read all comments associated with this story, please click here.
D vs C#
by Sean on Mon 19th Apr 2004 14:07 UTC

This article is quite infactual in the C#/D comparison. For starts, C# is quite capable of being compiled to machine code. Mono supports AOT (Ahead Of Time) compilation, and I believe Microsoft's .NET implementation does as well. These compilers can be just as fast as any D (or even C/C++) can come up with, since the language doesn't have an inherent reason why it can't. (Unlike Java which is missing a number of features to make very high speed compiled machine code possible.)

Second, the new version of C# does indeed have Generics, which both Microsoft and Mono support.

C# allows manual memory management. It's called unmanaged code, and can be mixed with managed code. You can even do pointer arithmetic and the like. The features must be specifically requested, which is a good thing, because it prevents accidents from occuring, which even 20+ year veterans of C/C++ can still easily make.

C#/D are pretty functionally equivalent. C# is on the better side, however, as it already has both popular and Free implementations available, has a number of user and books/references available, and is standardized with ECMA. The small handful of advantages D retains really don't outweigh those.