Homework Assignments

All homework must be submitted individually. You may discuss the problems with others, but you must turn in your own work. If you discuss the problems with someone, you must cite them (following the collaboration policy).

Homework solutions should be submitted by 11:55 p.m. on the due date. Your write-up should be submitted as a pdf or plain text file along with any code (if applicable). No other formats please. Either a typeset or a legible handwritten write-up is acceptable.

Homework Assignment 5

Due Tuesday, October 29, 2013.

Homework Assignment 4

Due Saturday, October 19, 2013.

Homework Assignment 3

Due Saturday, October 12, 2013.

Homework Assignment 2

Due Saturday, Ocober 5, 2013.

Homework Assignment 1

Due Saturday, September 21, 2013.

Homework Assignment 0

Due Saturday, September 7, 2013.

Final Projects

Project Guidelines

Students are expected to select and complete a substantial course project during the semester on a topic related to the class.

The first step is to submit a project proposal. The proposal should explain what you expect to learn from the project (i.e., why is it interesting to you?) and should include a work schedule. Make sure to budget time for writing a short project paper (~5 pages) describing the project and for preparing a short (~15-20 minutes, depends on number of projects) project presentation during the last week of classes. The project proposal should be one or two pages long. The main purpose of the proposal is for me to give you feedback on its feasibility.

The main goal of the project is to allow you to customize the content of the course to your own interests. The goal is not to force you all to produce novel results in one semester. Course projects like this often lead to collaborations that eventually yield exciting research. In the hopefully-likely event that you end up enjoying your project, come see me about taking it further (say, to publication).

Project Scale

I do not expect each project to lead to novel results, though I hope some projects will lead to publication!

Project Kinds

Projects on any subject related to the class are acceptable. The goal is to allow you to customize the project to your interests. There are three main types of projects: research projects, survey projects, and implementation projects.

In general, I recommend that you try to do a research project. They are typically a bit harder but much more rewarding than either survey or implementation projects.

Research Projects

There are many kinds of research projects, including the following:

These projects are harder because they always involve some survey work and often involve some implementation. If you want to do a research project, and you are not yet sufficiently familiar with the area of the project, you should start with a brief survey and then turn it into a research project. While research is necessarily open-ended, be sure that you have a well-defined goal for the end of the semester so that you have something to write up and present.

Survey Projects

Pick an area in which you are interested. Read at least six papers thoroughly and at least six other papers "superficially". I will help, but you should do most of the work in finding the relevant papers. Then, write a paper on what you have learned:

Keep the scope narrow enough so that you can say something interesting. Please do not pick an area that already has good survey papers available (or be sure to provide evidence to me that your survey will be different in some way).

Implementation Projects

Pick a fragment of a language or a relevant algorithm, and implement it! There is no firm limit on the amount of code.

An implementation project should feature "numbers": controlled, experimental results that help to sway your audience in favor of a point you are making. You should actually have a point: "I implemented a register allocator" is not quite good enough. You will want something more like: "Graph-coloring register allocation yields fewer spills and thus smaller and faster code than greedy register allocation. On the X benchmarks for the Y architecture, replacing a greedy register allocator in the Z compiler with a graph-coloring one resulting in a A% decrease in code size and a B% decrease in average executing time."

Your implementation must be relevant to language design or analysis. It could also be relevant to language implementation, provided that it has sufficient conceptual content and is close enough to the course. Graph-coloring register allocation wouldn't actually cut it.

The Status Update

The Status Update is a short write-up (less than one page). It should explain what you have done so far and how you plan to meet your goals in the final month of the project.

The Presentation

The presentation should be short and should describe what the problem was, what the difficulties were, and what was accomplished or learned. You will find it much easier to prepare the talk using slides (perhaps 8 to 15 slides, depending on your speed).

While preparing the talk keep in mind who your audience is. You will be presenting to colleagues who are eager to find out (1) about new exciting facets of programming languages and (2) how much fun you had. Plan to motivate the project (i.e., why is this important?) and to describe what you learned from it. Keep in mind that your colleagues have not read all the papers that you have read to do the project.

The Paper

Your write up at the end of the semester should be in the form of a short research paper. The project paper should have an abstract and an introduction describing the tackled problem, its motivation, and a very brief summary of the accomplishment. Then you should write a description of your notations (especially if they are different from what we used in class). Then you continue with the body of the material. The paper should end with a conclusion putting in perspective the accomplishment of the project and mentioning the open problems and with a bibliography of cited papers. Research and implementation papers should also have a related work section in which they compare the work with previous research results.

You should write your project paper as if you were submitting it to, for example, the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI). You might want to browse the papers from PLDI 2013 or POPL 2013. Aside from giving you a number of data points for how the paper should look graphically, reading the electronic editions might help you to find a topic. Extending previously-published work is often not a bad start.

Your project paper should be 5-10 pages, as necessary. You will turn in a PDF as well as your sources. You will want to use the LaTeX class file or Word template produced by SIGPLAN.

Peer Review. You will have the opportunity to write reviews of your peers' project papers for extra credit.

Class Participation and A Moment's Thought

It is important to attend class and read the readings.

Class participation includes in-class participation, as well as participation on the Piazza. All enrolled students are assigned to post "a moment's thought" on each lecture and reading set---at least 1 substantive comment, question, or answer. Initial comments, questions, or answers for each lecture must be posted the night before the next meeting (i.e., comments for Tuesday's meeting must be posted by Wednesday night, and comments for Thursday's meeting must be posted by the following Monday night). The goal is to identify concepts that need reviewing in the subsequent class.

You may and are encouraged to post comments or questions about the reading before the class where we will cover it. Posting early will help focus our discussion.

In place of class participation, distance students are expected to participate more heavily on the discussion forums (e.g., at least 1 extra substantive comment than required for everyone each week).

Here are some examples of good comments:

The intent of the forum post is definitely not to have you perform extra reading or web searching, but rather to take a moment to reflect upon the day's reading or class discussion.