CS 381: Programming Language Fundamentals (Winter 2018)

Instructor: Eric Walkingshaw ()
TAs: Ghadeer Al Kubaish (alkubaig)
Qiaoran Li (liqiao)
Karl Smeltzer (smeltzek)
Lectures: MWF, 11:00–11:50am, Gilfillan Auditorium (map)
Office Hours: Mon 12:00-1:00pm – Eric, KEC 3049
Tues 3:00-4:00pm – Eric, KEC 3049
Wed 1:00-2:00pm – Karl, Johnson 121
Thur 12:00-1:00pm – Ghadeer, Johnson 121
Fri 9:50-10:50am – Qiaoran, KEC Atrium
Piazza: CS 381 on Piazza (Use of Piazza)

Course Description and Essentials

CS 381, Programming Languages Fundamentals, is a four-credit course for undergraduate students. The course introduces concepts found in a variety of programming languages and exposes students to non-imperative programming paradigms. Topics to be covered include: functional programming in Haskell, logic programming in Prolog, syntax, scoping, parameter passing, types, polymorphism, exception handling, semantics.

  • Course Syllabus – Includes the course learning objectives and much of the information contained on this web page. Note that if the schedule changes during the quarter, the web page will reflect the revised schedule but the syllabus will not be updated.

  • Grading and Homework Policy – How grades will be computed and course policy on homework, quizzes, and exams.

  • Community Statement – Every student should feel safe and welcome to contribute in this course. Please read this statement and let’s work together to make this a great environment for everyone.

  • Haskell and Prolog Resources – How to get up and running with Haskell and Prolog. Also lists several tutorials, freely available books, and other resources that you should use to supplement the content of this class.

Important Dates

There will be no class on the following day:

  • Mon, Jan 15 (Martin Luther King Day)

The following days are currently scheduled for quizzes and exams. I will announce any changes to this schedule both in-class and on Piazza.

  • Fri, Jan 26 – Quiz #1
  • Mon, Feb 5 – Midterm #1
  • Wed, Feb 21 – Quiz #2
  • Mon, Mar 5 – Midterm #2
  • Mon, Mar 19, 6:00–7:50pm – Final Exam

Slides and Code Examples

Slides and code examples from the lectures will be posted below, usually shortly before/after class. I may continue to update the slides for each stage of the course until we are done with that stage.

For the first few weeks, I’ll also assign reading from Brent Yorgey’s excellent Intro to Haskell.

Slides Reading Additional files
Jan 8 Course Introduction Ch. 1 Doctest.hs
Jan 10–Jan 24 Functional Programming Ch. 2-4 Basics.hs, Eval.txt, Types.txt
Jan 24–Jan 31 Syntax StackLang.hs
Jan 31–Feb 14 Semantics IntBool.hs, StackLang.hs, While.hs
Feb 16–21 Types IntBool.hs, Pair.hs, Imp.hs
Feb 28–Mar 2 Scope and Parameter Passing Param.hs
Mar 7–16 Logic Programming hobbits.pl, bool.pl, expr.pl, cut.pl
Mar 16 Final Exam Review

Homework Assignments

Homework assignments are submitted through TEACH. Log in and click “Submit Assignment” in the navigation bar on the right, located under “Class Tools”. You should see a list of currently open submissions.

Please note that late homework is not accepted. Be sure to submit your assignment on time!

Accommodations for Students with Disabilities

Accommodations for students with disabilities are determined and approved by Disability Access Services (DAS). If you, as a student, believe you are eligible for accommodations but have not obtained approval please contact DAS immediately at 541-737-4098 or at http://ds.oregonstate.edu. DAS notifies students and faculty members of approved academic accommodations and coordinates implementation of those accommodations. While not required, students and faculty members are encouraged to discuss details of the implementation of individual accommodations.