PL: Resources


Class Notes

These are the class notes files. In some places they are in pretty raw form, intended mainly for reference, code examples etc. They are not a substitute for taking notes in class, and they certainly cannot compensate for not coming in. Also, they are not guaranteed to cover all of the material that was presented in class.

• Lecture #1
  Wednesday, January 11th
Introduction to Programming Languages (CS4400/CS5400)
Introduction to Racket
• Lecture #2
  Friday, January 13th
Quick Introduction to Racket
Lists & Recursion
Some Style
• Lecture #3
  Wednesday, January 18th
Names are Important
Note on Types
BNF, Grammars, the Simple AE Language
Simple Parsing
The ‘match’ Form
• Lecture #4
  Friday, January 20th
Semantics (= Evaluation)
Implementing an Evaluator
Implementing The AE Language
Introduction to Typed Racket
Bindings & Substitution
Adding Bindings to AE: The WAE Language
• Lecture #5
  Wednesday, January 25th
Implementing ‘with’ Evaluation
Formal Specs
Lazy vs Eager Evaluation
de Bruijn Indexes
Functions & First Class Function Values
• Lecture #6
  Friday, January 27th
Implementing First Class Function Values
The FLANG Language
Introducing Racket’s ‘lambda’
Using Functions as Objects
Currying
• Lecture #7
  Wednesday, February 1st
Using Higher-Order & Anonymous Functions: "Point-Free"/Combinators
Substitution Caches
Initial Implementation of Cache Functionality
Formal Rules for Cached Substitutions
Evaluating with Substitution Caches
Dynamic and Lexical Scopes


Handouts


Interpreters


Software

We will use the Racket environment extensively. DrRacket, the major component of Racket, will be used to develop code, debug, and submit homeworks. CCS computers have an updated version installed (available on both Unix and Windows). To use it on your own machine, get it from the Racket website. Binary installers exist for all major operating systems, and the course work will be platform independent.

Racket has a system for distributing software bundles that will be used to get a course-specific plugin. This packages both specific functionality for each homework, and an integrated tool for homework submissions. Once you have Racket installed, download the plugin package, and use the “Setup PLT” application to install it. You can also use “Install .plt File” in the File menu, and enter the URL for the plugin.

Note: The handin server uses a dedicated port for communication. You need to work from a network that does not restrict this port — for example, if you use Northeastern’s ‘NUwave-guest’ network, then you will not be able to connect to the server. ‘NUwave’ (which requires you to authenticate through myNEU) does not have this restriction.

To set-up your account:

Additional software may be used later in the course.


Piazza Group

There is a piazza group for this course at Piazza.com. The piazza group is the main medium for discussions, questions, announcements etc. You should use it if you have any questions, so others can benefit from the discussion as well. If you want to ask a question that involves showing your solution code, make sure that you choose the “private” option. Do not to post any homework code on the piazza group without using the “private” option. Direct emails to the course staff should be your last resort. Consult the Email and Piazza Group Policies handout for further details about piazza group posts and emails.

Note that you do not need to request to be subscribed to the mailing list — you will get added after you register with the submission server.


IRC

IRC, or “Internet Relay Chat” is a text-based chat protocol where people can join channels on IRC servers and communicate. IRC is sometimes refered to as “interactive notepad”. The major benefit of using IRC is real-time conversations with fellow class members as well as course staff.

If you have a CCIS account, you are almost ready to start using IRC. The following will describe a basic configuration, as described by jmendel (aka John Mendelewski). Feel free to set up your client as you wish.

Read up on these commands before you start experimenting. Google is your friend.

Finally, IRC is a valuable resource: don’t abuse it! Specifically, you should not post any source code, and you should try to read homework texts thoroughly before you ask questions. This applies for both channels.


On-line books and other materials

Many Scheme books etc are available on-line, a few good ones are:

In addition, there are lots of good Scheme-related references at Schemers.org.