Docsity

Programming Languages: Design and Implementation - CS 4610 Syllabus, Lecture notes of Programming Languages

Partial preview of the text

Download Programming Languages: Design and Implementation - CS 4610 Syllabus and more Lecture notes Programming Languages in PDF only on Docsity!

Programming Language Programming Language

Design and Implementation Design and Implementation

Wes Weimer MW 2:00 – 3: Thornton E-

Cunning Plan

  • Who Are We?
    • Wes, Kevin Leach, undergrad TAs
  • Administrivia
  • What Is This Class About?
  • Brief History Lesson
  • Understanding a Program in Stages

Course Options

  • Three options are available:
    • Take only CS 4610 (Programming Languages) for 3 credits
    • Take CS 4610 (Progamming Languages) for 3 credits and also take CS 4501 (Compilers Practium) for 2 credits
    • Take neither (this is actually the best choice)
  • CS 4501 Compilers Practicum
    • Must attend CS 4610 PL lectures
    • Has additional lectures, homeworks, tests

Should I Take This Course?

  • Beg for more mid-assignment checkpoints. Also, beg that the optional two-credit class only be opened just before the withdrawal deadline so you don't have to decide early on before you understand what you've decided to do to yourself. Finally, beg for mercy. :)
  • Professor Weimer is very engaging in his lectures, which kept me awake and interested even through the most boring or difficult sections of the class. And some of the class material WAS boring. And it was most DEFINITELY difficult. While the assignments were VERY time-consuming and difficult (sometimes ridiculously so), I felt great accomplishment after completing them, and I feel that I may have learned more from this class than any I have ever taken before.

Should I Take This Course?

  • (^) This course was the hardest course I have taken thus far, but Professor Weimer made it very enjoyable. The amount of work at times was a little overwhelming, but I definitely learned a lot from it. Weimer was one of the best lecturers I have had in the Engineering school and he truly wanted the students to understand the material.
  • (^) This was a great course. A ridiculous amount of work but that was known information from the first day of the course. The instructor was enthusiastic and taught very well.
  • I don't know what you should do, but this class had ruined my life. I have spent more time on this class than the rest of my classes combined this semester. However, knowing what I know now I would take this class again!

Should I Take This Course?

  • (^) Best professor ever, period! Be aware that by taking this class, your other classes should be: Music, Language, PE, etc... any classes that don't require your brain!!!!!!! Because this should be a [] 300000 credit class! I never* go to Office Hours because I thought I was smart. But for Weimer's class don't miss his office hours!!!!!
  • (^) This course involved far too much work for it to be a worthwhile course. While the professor warns the class of the amount of work he assigns, I do not think that it is right, and it is probably downright deceptive, to allot 3 credits to this course. However, the professor does know how to teach.

Compilers Practicum Sections

  • There will be one sixty-minute Compilers Section each week (about 10 sections) - Hosted by Kevin Leach
  • When do those meet?
    • The current explicit time is actually a scheduling typo.
    • We may be able to vote for times that everyone in Compilers can make
    • If you cannot make the Section, you must drop Compilers. Sorry.
    • Notes posted on web.

Course Structure

  • Course has theoretical and practical aspects
    • Best of both worlds!
  • Need both in programming languages!
  • Reading = both
    • Many external and optional readings
  • Written assignments = theory
    • Class hand-in, right before lecture, 0-5 points
  • Programming assignments = practice
    • Electronic hand-in
  • Strict deadlines
    • Ask me why ...

Resources

  • Textbook
    • Programming Language Pragmatics
    • Michael L. Scott, third edition
  • Free Online Materials
    • Udacity CS 262 (same instuctor)
  • Optional Readings

Academic Honesty

  • Don’t use work from uncited sources
    • Including old code
  • We often use plagiarism detection software

PL Course Project

  • A big project: an Interpreter!
  • … in four easy parts
  • Start early!

Compilers Project & Course Goals

  • The final project for the Compilers Practicum is a working optimizing compiler (code generator) that produces either bytecode or x86- assembly.
  • At the end of this course, you will be acquainted with the fundamental concepts in code generation and optimization. In particular, you will understand the theory and practice of code generation , stack layouts , calling conventions , dynamic dispatch , control flow graphs , and dataflow analyses.

“Killing Unicorns”

  • Visual Studio, JVM, Exceptions, Memory, Debugging, Linking, Shared Libraries, ...