Friday, November 12, 2010

After C++ , Its time for D

FIRST IT WAS C, THEN CAME C++, KNOW WHO IS KNOCKING??  IT’S D!

Well, before the above mentioned heading start spinning your thoughts,let me assure that following structure of alphabets will help throw more light on the newest member of programming language. D
Hassles in C, prompted the programmers to come out with something new, now by no means it is to be seen as a replacement of C, but it offers features that are making complicated programming world little simpler. D language is designed keeping in mind, to eliminate undefined and implementation defined behaviors. It support memory safe programming, and have a short learning curve for programmers comfortable with programming in C, C++ or Java. Its biggest strength lies that it is compatible with the local C application binary interface, and is able to build lightweight, standalone programs and reduce the costs of creating documentation.
Now, one thing which programmers have to keep in mind is where D code looks the same as C code, have it either behave the same or issue an error.
The featured that are abandoned from the current C language are link compatibility with C++. The C++ runtime object model is just too complicated - properly supporting it would essentially imply making D a full C++ compiler too. It also look into a complex structure of Multiple inheritance, a complex feature of debatable value. It's very difficult to implement in an efficient manner, and compilers are prone to many bugs in implementing it. Nearly all the value of Multiple Inheritance can be handled with single inheritance coupled with interfaces and aggregation. The D language design assumes at least a 32 bit flat memory space. D will fit smoothly into 64 bit architectures.
So for all you users, who are frustrated by the need to expend much effort explicitly managing memory and finding pointer bugs. D is an angel for you. However, basic or Java is more suitable for beginners. D makes an excellent second language for intermediate to advanced programmers. D is a practical language, and each feature of it is evaluated in that light, rather than by an ideal. For example, D has constructs and semantics that virtually eliminate the need for pointers for ordinary tasks. But pointers are still there, because sometimes the rules need to be broken. Similarly, casts are still there for those times when the typing system needs to be overridden.
D programming language exists in two versions: 1.0 and 2.0. D 1.0 became stable with the release of D 2.0, on June 17, 2007, and further additions to the language have since been added to 2.0. The release of Andrei Alexandrescu's book The D Programming Language on June 12, 2010 marked the stabilization of D 2.0.
Whether, we like It or not, but the Universe of Web like ours is expanding exceptionally, and we need to be on alert about the what is bumping up new in the market. So that we don’t lack behind in our quest of providing with better quality.

1 comment: