Elements of Programming Languages - Fall term 2016

The web page for last year's edition of this course is available here.

Summary

Elements of Programming Languages is an Honours course in Informatics on the foundations and practicalities of programming language design. It is normally to be taken in year 3 but as a level 10 course it can also be taken by year 4 or MSc students.

Few computer scientists will ever design a new, general-purpose language, but most will need to learn several languages over the course of a career, and many will design new domain-specific languages for restricted problem domains. Programming language design involves many subtle choices and tradeoffs among performance, convenience, and elegance. Although some of the earliest programming languages (such as FORTRAN) are still going strong, new language designs and features are still being proposed, and it seems that we are still far from fully understanding the space of possible language designs.

Elements of Programming Languages covers the essential programming structures for managing data and controlling computation, as well as abstractions that facilitate decomposing large systems into modules. The course also covers pragmatics of programming languages, including abstract syntax, interpretation and domain-specific language implementation. Elements of Programming Languages is not about learning or programming in one specific language, rather, it covers the basic elements needed to understand the next 700 programming languages, or design a new one.

Course Staff

Course Structure

There will be 20 lectures, starting Tuesday, September 20th, 2016. The lectures include the course introduction, two guest lectures, 16 lectures of examinable course content, and a course review lecture.

Lectures are 1410-1500 on Tuesday and Friday, in different locations

There is a laboratory session on Wednesday, September 28th from 1210-1400 in Forrest Hill labs 3.D01 and 3.D02, with a not-for-credit coursework exercise due one week later. This exercise does not count toward your final grade, but will be returned with formative feedback.

Tutorials are held in weeks 3-10. Participation in tutorials (including working on tutorial problems in advance) is expected and the tutorials cover examinable material that is part of the course.

There will be three coursework exercises. The first two are evaluated and returned for formative feedback. The third is worth 25% of the final grade.

Most students will take the exam in the April exam diet. Visiting undergraduate students who are here for semester 1 only will take the exam in the December diet. (There are a few UG3 courses whose exam is in December for all students this year, but EPL is not one of them.) Please see the University's exam schedule page to check on the date / time of your exam, and please discuss with the ITO or your Personal Tutor if you are uncertain which exam you should attend.

Course timetable

Week
Begins
Tue Lec
Tutorials/Lab
Fri Lec
Assignments
1 19 Sep   Intro   Lec 1    
2 26 Sep   Lec 2 Assignment 1 (Lab) available Lec 3  
3 3 Oct   Lec 4 Tut 1   Lec 5 Assignment 1 due, Assignment 2 available
4 10 Oct   Lec 6 Tut 2   Guest Lec 1
5 17 Oct   Lec 7 Tut 3   Lec 8
6 24 Oct   Lec 9 Tut 4   Lec 10 Assignment 2 due ; Assignment 3 available
7 31 Oct   Lec 11 Tut 5   Lec 12
8 7 Nov   Lec 13 Tut 6   Guest Lec 2  
9 14 Nov   Lec 14 Tut 7   Lec 15
10 21 Nov   Lec 16 Tut 8   Review Assignment 3 due
11 28 Nov No lecture No tutorial Mock exam discussion Mock exam available

Key:

Introductory/review lecture (non-examinable)      
Guest lecture (non-examinable)      
Examinable lecture      

Office hours

The course lecturer and teaching assistants are available (during Semester 1) for discussion of course material at the above hours. Meetings outside these hours are also possible by appointment.

If you are enrolled in this course, you are on the course mailing list. This list can be used for general questions. There is also a Piazza page for EPL where you may ask questions that other students or course staff can answer. Course staff will try to respond within 1 working day (this means that if you ask a question at 5:01pm on Friday, you should not be surprised if it is not answered until Tuesday morning.)

Topics

Course Text and Supplementary Material

There is no required course text. The following resources are recommended reading to supplement the course materials. Specific reading suggestions are listed along with the lectures below.

Other useful books on programming languages include:

The following are some historically-influential papers on programming languages, and may be of interest to students interested in pursuing further study of programming languages.

Scala

The programming language used for lab, tutorial and coursework exercises is Scala. Any DICE machine (i.e. any Linux machine in an Informatics computer lab) should have Scala 2.11 installed; type scala at a command prompt to start the Scala interpreter.

Scala has many features in common with functional languages (such as Haskell) and object-oriented languages (such as Java). Prior familiarity with Scala is not needed for EPL, and we will investigate many of these features as part of the course. We will not cover all of Scala's more advanced or experimental features.

We will follow a "functional-first" style of Scala programming for most of the course, while most resources on Scala are oriented towards object-oriented programmers familiar with Java, Python or Ruby. Although the lectures, tutorials and lab/assignment handouts should provide all of the information about Scala you need for this course, you might be interested the following resources which cover Scala's features in more depth or from a different perspective.

Lab

There will be a 2-hour lab session during Week 2 to ensure that students have an opportunity to learn the basics of Scala needed for later coursework exercises. Students unfamiliar with Scala (i.e., most students) are strongly encouraged to attend and complete the lab assignment. The first hour will consist of an interactive demo of basic Scala programming concepts, following a lab handout (which will also be available in advance). During the second half of the lab session, you will be free to work on the lab exercises on your own or with others, and the course lecturer and lab demonstrator will be available to answer any questions.

The lab exercises may be handed in for formative feedback. That is, they will be marked and returned with feedback, but the results do not count toward your final grade. The due date for completed lab assignments is October 7.

Tutorials

Tutorials start Week 3 (October 3-7). The tutorial group times and membership will be posted early in the semester. See tutorial groups with times and (tentative) membership. Tutorial notes and solutions will also appear here as they become available.

  1. Tutorial for week 3. (Sample solution)
  2. Tutorial for week 4. (Sample solution)
  3. Tutorial for week 5. (Sample solution)
  4. Tutorial for week 6. (Sample solution)
  5. Tutorial for week 7. (Sample solution)
  6. Tutorial for week 8. (Sample solution)
  7. Tutorial for week 9. (Sample solution)
  8. Tutorial for week 10. (Sample solution)

Guest Lectures

There is a lot of research on programming languages in the School of Informatics. EPL will feature two guest lectures covering more advanced topics that apply or extend ideas covered in the course. Further information will be posted here when the lectures are confirmed. The two guest lectures are as follows:

While these lectures don't cover examinable material, we encourage students to attend, as they provide additional context and motivation for the material covered in EPL, and may also be interesting starting points for students interested in doing a Honours project or MSc project on a topic related to EPL.

Lecture Slides

Lecture slides will be posted here as the course proceeds. The suggested readings cover related material in "Practical Foundations for Programming Languages (second edition)" (PFPL2), "Concepts in Programming Languages" (CPL), and other sources, however, we will cover some topics in a different order or differently than in these textbooks.

Here is a single PDF file with all of the lecture slides: epl-all.pdf

Assignments

There will be three coursework exercises. The first and second are worth 0% of the final grade and the third is worth 25%. Once marked, the coursework will be returned to students with feedback.

Late assignment submission and academic conduct policies

Important: Please note that, as with all Informatics courses, late submissions of coursework cannot be accepted without approval for the appropriate Year Organiser (UG3), and that this course is subject to the School's academic conduct policy regarding plagiarism and acknowledgement of sources. For full details please consult the School's policies:

Feedback

Formative feedback provides students with feedback on performance and understanding in time to assist with the assessed aspects of the course (coursework and exam).

Elements of Programming Languages offers the following formative feedback:

In addition, the summatively assessed coursework exercise will be marked, commented and made available for students to collect 2 weeks after submission.

Previous Exams

This course was introduced in 2015, so there are few previous exams. Past courses "Language Semantics and Implementation", and "Functional Programming and Specification" offered in previous years may cover similar material, but EPL is a different course and its exam will be different.

A mock exam is available here:


Home : Teaching : Courses 

Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections. Logging and Cookies
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh