Abstract

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.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call