Early Programming and Intro to Compiling Flashcards
What is the benefit of having multiple cores in a computer?
It allows you to do multiple calculations in parallel
At the most fundamental level, what do computers use to do calculations?
Binary: Computers work on electronic switches or series of electrical pulses.
Two states: ON is ‘1’ and OFF is ‘0’
What was computer programming like before the 1950s?
The programmer had to set ‘ON’ or ‘OFF’ manually (Punch cards, ENIAC vacuum tubes)
What technology was developed during the 1950s that made it so that programmers no longer had to work in binary?
Assembly Language
What is machine language?
Binary
What is assembly language?
Early programming language where common binary sequences were replaced with commands
What are High-Level languages?
Modern programming languages that aim to be human readable (ex. Java or C#)
What was the first programming language?
FORTRAN (1957)
What happens when you press play in a processing program?
The processing compiler turns it into a ‘real’ Java program. Then, the Java compiler translates it into Java Byte Code, which is then run by the Java Virtual Machine on the computer
What does a compiler do?
Takes a programming language and translates it into machine language
Why was the Java Virtual Machine invented?
Different computers speak different machine languages, we compile a program to run on some imaginary virtual machine. All existing Java programs can be run on any machine that has had a JVM made for it without having to be recompiled