Thursday 24 December 2015

Programming Language Types

Does Programming Language can be categorize ??


 Sound's Interesting ??


Different languages have different purposes,agree ?  So It makes sense to talk about different types of languages.

We can divide into 8 types 
  • Machine languages : interpreted directly in hardware
  • Assembly languages : thin wrappers over a corresponding machine language
  • High-level languages : anything machine-independent
  • System languages : designed for writing low-level tasks, like memory and process management
  • Scripting languages : generally extremely high-level and powerful
  • Domain-specific languages : used in highly special-purpose areas only
  • Visual languages : non-text based
  • Esoteric languages : not really intended to be used

Perl is both high-level and scripting . C is considered both high-level and system. 


High-level languages :

A high-level language gets away from all the constraints of a particular machine. HLLs have features such as:
  1. Names for almost everything: variables, types, subroutines, constants, modules.
  2. Complex expressions  (eg. 2*(12/1) * sqrt(2.6))
  3. Control structures (conditionals, switches, loops)
  4. Composite types (arrays, structs)
  5. Type declarations
  6. Type checking
  7. Easy ways to manage global, local and heap storage
  8. Subroutines with their own private scope
  9. Abstract data types, modules, packages, classes
  10. Exceptions