Docsity

CS 6390: Programming Languages, Lecture notes of Programming Languages

Toggle sidebar
bg1
CS 6390: Programming Languages
Fall 2019
Instructor: Prof. Vivek Sarkar
TA: Caleb Voss
1 Overview
The foundational principles of programming languages run a broad spectrum
from formal, precise mathematical reasoning through the definition of proof
systems and academic languages, to the realization of these principles in real-
world languages and tools. This course will cover topics across this spectrum,
including:
•defining semantics of typed languages
•progress and preservation theorems
•functional languages with recursion over inductively defined data types
•formal proof systems on “pencil-and-paper” and in Coq
•the Curry-Howard correspondence
•concurrency and parallelism
•substructural types for permission and ownership
Toward the end of the semester, we will take a closer look at real-world
examples of languages and tools which make use of these concepts, such func-
tional programming in OCaml, move semantics in Rust, concurrency in Go, and
features in other mainstream languages like Java and Scala.
2 Pre-requisites
There are no formal graduate pre-requisites for this course.
Undergraduate students wishing to take this course must have taken CS
2050/2051: Intro to Discrete Mathematics for CS. Some assignments in this
course will require programming in a functional language and the use of a for-
mal proof system. Students should ideally be familiar with basic functional
programming techniques such as recursion on lists and trees, as well as be able
to articulate a proof by induction. Please contact the instructor for any ques-
tions.
1
pf3

Partial preview of the text

Download CS 6390: Programming Languages and more Lecture notes Programming Languages in PDF only on Docsity!

CS 6390: Programming Languages

Fall 2019

Instructor: Prof. Vivek Sarkar

TA: Caleb Voss

1 Overview

The foundational principles of programming languages run a broad spectrum from formal, precise mathematical reasoning through the definition of proof systems and academic languages, to the realization of these principles in real- world languages and tools. This course will cover topics across this spectrum, including:

  • defining semantics of typed languages
  • progress and preservation theorems
  • functional languages with recursion over inductively defined data types
  • formal proof systems on “pencil-and-paper” and in Coq
  • the Curry-Howard correspondence
  • concurrency and parallelism
  • substructural types for permission and ownership

Toward the end of the semester, we will take a closer look at real-world examples of languages and tools which make use of these concepts, such func- tional programming in OCaml, move semantics in Rust, concurrency in Go, and features in other mainstream languages like Java and Scala.

2 Pre-requisites

There are no formal graduate pre-requisites for this course. Undergraduate students wishing to take this course must have taken CS 2050/2051: Intro to Discrete Mathematics for CS. Some assignments in this course will require programming in a functional language and the use of a for- mal proof system. Students should ideally be familiar with basic functional programming techniques such as recursion on lists and trees, as well as be able to articulate a proof by induction. Please contact the instructor for any ques- tions.

3 Resources

There is no required textbook for this course; however, we will rely on selections from a number of reading materials freely available online:

  • Software Foundations, vols. 1–2, Benjamin Pierce et al., 2019. https://softwarefoundations.cis.upenn.edu
  • Practical Foundations for Programming Languages, Robert Harper, 2016. http://www.cs.cmu.edu/~rwh/pfpl/index.html Much of the second edition is publicly available. The first edition is avail- able online through the library.
  • Types and Programming Languages, Benjamin Pierce, 2002. https://www.cis.upenn.edu/~bcpierce/tapl/ Available online through the library.
  • Various academic papers, TBD. Course announcements will be posted on Piazza. Students are encouraged to discuss concepts and help answer one another’s questions on Piazza. Assign- ments will be released and turned in through Canvas.

4 Office Hours

5 Grading

  • Homework (20%) Periodic homework assignments will consist of written work, small programming exercises, or small proof exercises. These will be designed to deepen your understanding of topics covered in the lectures and readings.
  • Project (30%) One large project will give you the opportunity to com- bine knowledge and skills acquired throughout the semester and apply them to a problem selected by you and the instructor. This problem may involve applying or adapting an academic solution to real programs or languages, formally proving known results, demonstrating a programming language concept by formalizing it for a small language or subset of a real language, extending the definition of a language or otherwise implement- ing a concept within an existing language, etc. Expect this project to involve some combination of actual programming, formal proof writing, and a written report. Presentations will be scheduled toward the end of the semester.