International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 104 - Number 7 |
Year of Publication: 2014 |
Authors: Tarun Kumar, Mayank Singh, Arun Sharma |
10.5120/18211-8921 |
Tarun Kumar, Mayank Singh, Arun Sharma . D- A Powerful General Purpose Application Programming Language. International Journal of Computer Applications. 104, 7 ( October 2014), 1-6. DOI=10.5120/18211-8921
The real purpose of a programming language is to communicate a set of instructions to a system, basically a computer. Just like natural languages, programming languages are described using their syntaxes and semantics. This paper presents a comparison of a newly-developed Programming Language called D with traditional languages like C, C++, C# and JAVA. D is applicable to many programming paradigms like object-oriented with classes and interfaces, generic programming with templates and mix-ins, procedural programming with functions and arrays etc. There are two major versions of this language - D1 and D2. This paper also presents a comparison of the execution times of a program, which is written in the C, JAVA, C# and D languages. This is a comparative study, which illustrates the behavior of these languages using a program structure in each of the languages. This is done by developing a sample program in which various languages are used to check for the difference in flow of execution. This will firstly provide an opportunity to examine the variation in programming styles of different programmers. Second, it permits accessing and comparing the variability of program properties induced by different languages. Results indicate that for the given programming problem, D is more productive compared to other languages like C, C++, C# and Java.