Welcome to pickSourcecode.com Login | Register    
pickZy.com
 Home  | search  | games  | General  | C  | C++  | Java  | Php  | Networking  | Visual Basic  | VC++  | Win32  | MFC  | JavaScript  | Jobs  | JavaScript  | Post jobs
Comparing Popular Programming Languages       Share
2010-02-03 |  Thiyagarajanarun  | Viewed: 811  |    0

Comparing Programming Languages

There are several ways to compare computer Languages but for simplicity we'll compare then by Compilation Method and Abstraction Level.

Compiling to Machine Code

Some languages require programs to be transformed directly into Machine Code- the instructions that a CPU understands directly. This transformation process is called compilation. Assembly Language, C, C++ and Pascal are compiled languages.

Interpreted Languages

Other languages are either Interpreted such as Basic, Actionscript and Javascript, or a mixture of both being compiled to an intermediate language - this includes Java and C#.

An Interpreted language is processed at runtime. Every line is read, analysed, and executed. Having to reprocess a line every time in a loop is what makes interpreted languages so slow. This overhead means that interpreted code runs between 5 - 10 times slower than compiled code. The interpreted languages like Basic or JavaScript are the slowest. Their advantage is not needing to be recompiled after changes and that is handy when you're learning to program.

Because compiled programs almost always run faster than interpreted, languages such as C and C++ tend to be the most popular for writing games. Java and C# both compile to an interpreted language which is very efficient. Because the Virual Machine that interprets Java and the .NET framework that runs C# are heavily optimized, it's claimed that applications in those languages are as fast if not faster as compiled C++.

Level of Abstraction

The other way to compare languages is level of abstraction. This indicates how close a particular language is to the hardware. Machine Code is the lowest level with Assembly Language just above it. C++ is higher than C because C++ offers greater abstraction. Java and C# are higher than C++ because they compile to an intermediate language called bytecode.

How Languages Compare

  • Fast Compiled Languages

  • Assembly Language
  • C
  • C++
  • Pascal
  • C#
  • Java
  • Reasonably Fast Interpreted

  • Perl
  • PHP
  • Slow Interpreted

  • JavaScript
  • ActionScript
  • Basic


Latest topics
The Preprocessor  Viewed: 247
Input/Output Library  Viewed: 248
Type Casting  Viewed: 249
What is Multiple Inheritance?  Viewed: 250
Objects  Viewed: 254
Constructors n deconstructors!  Viewed: 254
What is conversion constructor?  Viewed: 256
Definition of OOP:  Viewed: 258
What are C++ storage classes?  Viewed: 261
What is conversion operator?  Viewed: 276

Comments:





Submit comment's

Type:

User Comment's:

Submitted By:
Prof: Software
Tech: C ,Cpp
Send Mail: jmcdoss_05



Related topics
What is Encapsulation?
What is Data Abstraction?
What is Inheritance?
What is Polymorphism?
What is Message passing
What is Extensibility?
What is Persistence?
What is Delegation and Genericity?
What is Multiple Inheritance?
what is memory leak?how to avoid that?
What are all the implicit member functions of the class?
What is conversion constructor?
What is conversion operator?
What are C++ storage classes?
What are storage qualifiers in C++ ?

Related References
cpp - 5) list and iterator
cpp - 6) list and vector example.2
cpp - 7) example"fill, copy, list" statement
cpp - 8) list and set
cpp - glib simple glist program
cpp linked list
cpp linked list , node
cpp list sample program
cpp list sample program 2
cpp template , complete list tutorials
typedef list::iterator intlistitor; cpp sample
cpp iterator sample, istream_iterator
cpp window , list, for_each, functional tutorials
nonmutating cpp #pragma warning (disable : 4786) ,vector example
cpp list to be sorted in ascending order using quick sort

Web site contents © Copyright 2007, All rights reserved.
Help | Terms and Conditions | Privacy Policy | About Us