An Empirical Comparison of Seven Programming Languages

  • Authors:
  • Lutz Prechelt

  • Affiliations:
  • -

  • Venue:
  • Computer
  • Year:
  • 2000

Quantified Score

Hi-index 4.11

Visualization

Abstract

Often heated, debates regarding different programming languages' effectiveness remain inconclusive because of scarce data and a lack of direct comparisons. The author addresses that challenge, comparatively analyzing 80 implementations of the phonecode program in seven different languages (C, C++, Java, Perl, Python, Rexx, and Tcl). Further, for each language, the author analyzes several separate implementations by different programmers. The comparison investigates several aspects of each language, including program length, programming effort, run-time efficiency, memory consumption, and reliability. The author uses comparisons to present insight into program language performance. For example, the study indicates that Java's memory overhead is still huge compared to C or C++, but its runtime efficiency has become quite acceptable. The scripting languages, however, offer reasonable alternatives to C and C++, even for tasks that must handle fair amounts of computation and data.