Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NOTE: This page is for an old offering of the course. To find the latest course offering, please visit https://comp311.rice.edu/.

COMP 311: Functional Programming (Fall 20152016)

Instructor

Dr. Eric Allen

Dr. Corky Cartwright

Graduate TAs
  • Arghya "Ronnie" ChatterjeeYue Wang
  • Lechen Yu
Co-Instructor

Dr. Sağnak Taşırlar

Undergraduate TAs
  • Chris Brown
  • Cannon Lewis
  • Jake Nyquist

Lectures

GRB W212DCH 1075

Lecture Times

28:30PM 00AM - 39:45PM 15AM TR

Course Emailcomp311@ricecomp311_staff@rice.eduOnline DiscussionPiazza -- Rice Comp 311

 

Description

This class provides an introduction to concepts, principles, and approaches of functional programming. Functional programming is a style of programming in which the key means of computation is the application of functions to arguments (which themselves can be functions). This style of programming has a long history in computer science, beginning with the formulation of the Lambda Calculus as a foundation for mathematics. It has become increasingly popular in recent years because it offers important advantages in designing, maintaining, and reasoning about programs in modern contexts such as web services, multicore programming, and distributed computing. Course work consists of a series of programming assignments in the Scala programming language and various extensions.

Grading, Honor Code Policy, Processes, and Procedures
 

Grading will be based on your performance on weekly programming assignments. All work in this class is expected to be your own, and you are expected not to post your solutions or share your work with other students, even after you have taken the course. Please read the Comp 311 Honor Code Policy for more details on how you are expected to work on your assignments.

All students will be held to the standards of the Rice Honor Code, a code that you pledged to honor when you matriculated at this institution. If you are unfamiliar with the details of this code and how it is administered, you should consult the Honor System Handbook. This handbook outlines the University's expectations for the integrity of your academic work, the procedures for resolving alleged violations of those expectations, and the rights and responsibilities of students and faculty members throughout the process.

 
Accommodations for Students with Special Needs
 

Students with disabilities are encouraged to contact me during the first two weeks of class regarding special needs. Students with disabilities should also contact Disabled Student Services in the  Ley Student Center  and the  Rice Disability Support Services .


General Information

 

Course Syllabus 
Homework Submission Guide
Office Hours
EricBy Appointment--
Corky

Wednesday

Tuesday

4PM - 5PMDH 2062
RonnieFriday 1:30PM - 2:30PMDH 3002

, Thursday

2pm-4pm

9:15am-10:30am

DCH 3110

DCH 3104

SagnakThursday9:15am - 11:15amDCH 2062
LechenWednesday1pm - 2pmDCH 2069
ChrisTuesday1pm - 3pmDuncan Commons
CannonMonday3pm - 5pmJones Commons
JakeWednesday1:55pm - 3:55pmWill Rice CommonsYueThursday4PM - 5PMDH 3113
Textbooks
Online Videos
Development Environment

 

Lecture Schedule (Subject to Change Without Notice)

Conditional Functions on Ranges, Point Values, and Compound Datatypes

Semantics of Type Checking, Binary Methods, Abstract Datatypes

For Expressions, Monads, The Environment Model of Reduction

Call-by-Name, Environment Model of Type Checking, Generative RecursionHomework Evaluation, DrScala, Tests, Objects, Binary Methods, Operators

Week

Day

Date

Topic

Work AssignedWork Due

1

Tues

Aug 2523

Overview, Motivation, Core Scala

  
 ThurAug 27The Nature of Doubles, The Design Recipe25What are Types, Core ScalaHwk 0  

2

Tues

Sep 01

Aug 30

Doubles, Programming with Intention, The Design RecipeType Checking, Conditional Functions, Compound Datatypes

  
 ThursSep 0301Grading, DrScala, Tests, Binary Methods, OperatorsHwk 1Functions on Ranges, Point Values, Compound Datatypes 

3

Tues

Sep 0806

Methods, Grading, DrScalaAbstract Datatypes, Exceptions

  
 ThurSep 1008Abstract DatatypesExceptions, OverloadingHwk 2Hwk 1

4

Tues

Sep 1513

Subtyping of Arrow Types, ExceptionsPattern Matching, The Expression Problem

  

 

Thur

Sep 1715

Options, Lists, The Natural Numbers

Hwk 3

Abstract Datatypes 2, Recursively Defined Types

  Hwk 2

5

Tues

Sep 22Binary Search Trees20

Recursively Defined Types 2, Functions as Values

  

 

Thurs

Sep 2422

Higher-Order FunctionsComplexity Analysis

Hwk 42Hwk 31

6

Tues

Sep 2927

Functions as Values, Polymorphic Functions, Call-by-NameParametric Types

  

 

Thur

Oct 01

Referential Transparency, Exceptions and Continuations

Hwk 5

Sep 29

Currying, Fold, Flatmap, and For Expressions

  Hwk 4

7

Tues

Oct 06Generative Recursion 104

For Expressions, Monads, The Environment Model 

 

 

Thurs

Oct 08

Generative Recursion 2

 

06

"Growing a Language," Guy L. Steele, Jr.

Hwk 3Hwk 2Hwk 5

8

Tues

Oct 1311

MIDTERM RECESS

  

 

Thur

Oct 15Guest Lecture (TBA)13

Scala Collections Classes, Traits

  

9

Tues

Oct 20Tail Recursion and Accumulators18

Call-by-Name, Type Environments, Generative Recursion 

 

 

Thur

Oct 2220

Strategies for Generative Recursion Comprehensions and flatMap

Hwk 64 Hwk 3

10

Tues

Oct 2725

Accumulators Map, Reduce, Higher Order Functions

  

 

Thur

Oct 2927

Functional Leftist Heaps and Binomial Heaps

Hwk 7

Data Structures

  Hwk 6

11

Tues

Nov 03Functional Red-Black Trees01

Streams, State, Mutation 

  

 

Thur

Nov 05

Programs as Proofs

Hwk 8

03

Mechanical Proof Checkin, The Curry-Howard Isomorphism

Hwk 5Hwk 4Hwk 7

12

Tues

Nov 1008

The State MonadVariable Assignment and the Environment Model

  

 

Thur

Nov 12

Mutable Objects, Equality

Hwk 9

10

Additional Scala Features, Extractors, Parser Combinators

  Hwk 8

13

Tues

Nov 17Distributed Computing with Apache Spark15

More Parser Combinators, Actors and Concurrency

  

 

Thur

Nov 1917

Tactical Theorem Proving Distributed Machine Learning

Hwk 106Hwk 95
14TuesNov 2422Project FortressGuest Lecture (TBA)  

 

Thur

Nov 2624

THANKSGIVING

  

15

Tues

Dec 01

Nov 28

Functional Distributed ComputingPipelines and SparkML

  
 ThurDec 0301Course Wrap Up Hwk 106