Programming Languages - Ananya
Programming Languages - Ananya
Languages
What is “Programming”
First Generation
Machine language
Second Generation
Assembly language
Third Generation
“High-level” languages such as Pascal, C, COBOL, Fortran
Fourth Generation
Scripting languages such as SQL, Applescript, VBScript
Fifth Generation?
Natural language? Automatic code generation? Object-oriented
languages?
Four types of programming languages
Functional
Lisp, ML, Scheme
Good for evaluating expressions.
Declarative
Prolog
Good for making logical inferences.
Imperative
C, Pascal, Fortran, COBOL
Good at performing calculations, implementing algorithms.
Object-oriented
C++, Java, C#, Visual Basic
Much like imperative languages, but have support for “communication” among
objects.
History of Programming Languages
Computer Programming Languages:
The word "low" does not imply that the language is inferior to
high-level programming languages but rather refers to the
small or nonexistent amount of abstraction between the
language and machine language, because of this, low-level
languages are sometimes described as being "close to the
hardware."
name "add"
mov al, 5 ; bin=00000101b
mov bl, 10 ; hex=0ah or bin=00001010b
add bl, al ; 5 + 10 = 15 (decimal) or hex=0fh or
bin=00001111b
High-level language: