Consider the following
def sum(x):
res = 0
for i in range(x+1):
res = res + i
return res
int sum(int x){
int res = 0;
for (int i = 1; i <= x; i ++){
res += i;
}
return res;
}
let rec sum x =
if x = 0 then 0
else x + (sum (x-1))
(define (sum x)
(if (= x 0) 0
(+ x (sum (- x 1)))))
What is a language?
Why is language important?
How do we design a language?
How do we implement a language?
Is [->+<] a sentence?
010X Time: 12:30pm - 1:45pm
020X Time: 2:00pm - 3:15pm
Notes will be released along with slides
Common things people miss on syllabus
Programming languages are like spoken languages
Why do so many languages exist?
End Goal
Ask Questions
Make Friends
Start Projects Early
Sit on it
Feel Emotions
Expect to get things wrong