Language evolution Flashcards
What is machine code?
Binary code that corresponds to the machine basic instruction set
What is assembly language?
One-to-one mapping of human readable mnemonics to the machine instructions.(1940-1953)
What does Fortran stand for?
FORmula TRANslation
What were the 2 benefits of fortran?
1.Highly optimizing compilers :types and storage of all variables are fixed before run time
2.Permanently changed the way computers are used
What is LISP?
LISt Processing language(1958)
Recursively process data in lists, rather than arrays
Symbolic computation, rather than numeric
It only has 2 data types : atoms and lists
Functional style
- DEFUN: define new function
- COND: function taking set of test-then-do pairs
- ATOM is a single element
- CAR: head of list, CDR: the rest of list
- Uses recursion for looping
- (T NIL) : return NIL (or false) if no matches found
What are the 2 benefits of LISP?
No need for variables or assignment statements
Control via recursion and conditional expressions