



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




We have 10 weeks to learn the fundamental concepts of programming languages
With hard work, patience, and an open mind, this course makes you a much better programmer
Today’s class:
Fall 2017 CSE341: Programming Languages 2
In the next 24-48 hours:
Fall 2017 CSE341: Programming Languages 3
Fall 2017 CSE341: Programming Languages 4
Dan Grossman: Faculty, 341 my favorite course / area of expertise
Five (!!) great TAs
Get to know us!
Material often also covered in reading notes / videos
Fall 2017 CSE341: Programming Languages 7
Fall 2017 CSE341: Programming Languages 8
Fall 2017 CSE341: Programming Languages 9
Fall 2017 CSE341: Programming Languages 10
Fall 2017 CSE341: Programming Languages 19
This is the “normal” place for course motivation
But in my experience, we don’t have enough shared vocabulary
Fall 2017 CSE341: Programming Languages 20
Learning to think about software in this “PL” way will make you a better programmer even if/when you go back to old ways
It will also give you the mental tools and experience you need for a lifetime of confidently picking up new languages and ideas
[Somewhat in the style of The Karate Kid movies (1984, 2010)]
Fall 2017 CSE341: Programming Languages 21
Fall 2017 CSE341: Programming Languages 22
[The same program we just wrote in Emacs; here for convenience if reviewing the slides] ( My first ML program )
val x = 34;
val y = 17;
val z = (x + y) + (y + 2);
val q = z + 1;
val abs_of_z = if z < 0 then 0 – z else z;
val abs_of_z_simpler = abs z
Fall 2017 CSE341: Programming Languages 25
val z = (x + y) + (y + 2); ( comment )
More generally:
val x = e ;
So what is the precise syntax, type-checking rules, and evaluation rules for various expressions? Good question!
Fall 2017 CSE341: Programming Languages 26
Fall 2017 CSE341: Programming Languages 27