RU beehive logo promo banner for Computing & Info Sciences
CS 380
2024fall
ibarland

schedule

These lecture notes are provided as a reference (my own personal lecture-prep). They are not intended as a substitute for attending class.

datetopicreading
week 1
Aug.27 languages steer programmer choices §§1.0–1.3 (pp.5–16); §§11.0–11.2 (pp.535–538) (skim)
Aug.29 racket-intro.html;The Design Recipe: unit-tests (pizza-area) §11.3.0 (pp. 539–542)
week 2
Sep.03 Another ex. of design recipe; refactoring (monogram) [code: before, after]
Sep.05
week 3
Sep.10 Union types [code: before, after]; use helpers for unions-of-unions
Sep.12
week 4
Sep.17 struct-intro.html [code: before, after]
Sep.19 video: union of structs (book-or-dvd) [code: before, after];
video: struct of structs (collectors editions) [code: before, after]
week 5
Sep.24 language-vocab-and-concepts/ §1.6.1, and skim the rest of Chpt.1 (§1.4–1.7). Do look at how Figures 1.21 (GCD program in C) and 1.22 (its tokenized version) have counterparts in Fig. 1.25 (its parse tree -- a big diagram, but don't be intimidated).
Sep.26 list: a datatype-definition; [code: before, after] §6.6, and §10.1–10.3.1. Suggested/optional: all of §6 and §10.3. Challenge/option: §10.5.
week 6
Oct.01 using let to avoid repeated-computation [code: before, after]; scope let, let*
Oct.03 another union-of-struct recipe example:
Ancestor Trees [code: before, after]
week 7
Oct.08 video: defining trees in Java (14m41s) (composite pattern),
[code: before, after]
Oct.10 data-def'n for natnums [code: before, after] (a more theoretical take);
a nonsense example;;
AncTree.java: video: writing size, and template (17m12s);
video: writing changeName (14m22s)
[code: before, after]
week 8
Oct.15 Language families
video (32m23s), and reflect on immutable-data-trade-offs.html; lists.html solution; language-vocab-and-concepts/
Oct.17 exam01
week 9
Oct.22 passing functions as arguments: [code: before, after] and lambda-examples.rkt 11.6 (first page)
Oct.24 tail recursion [code: before, after]
(a practice problem: tail-recursion-sum-2^i.html)
video (24m15s)recording
week10
Oct.29 grammars-intro.html; practice: grammar for field-declarations §2.1: Grammars
Oct.🎃 finish grammars, and parse trees
week11
Nov.05 Decide on our language's OG0 syntax and internal representation of Exprs/parse-trees;
Nov.07 Look at OG0.rkt: data-def'n for an expression, examples of the data, and tests+code for eval, expr->string, and recursive-descent parse!ing.
week12
Nov.12 OG0 test harness, both in racket video (14m14s)and (slightly more involved and less flexible) in Java video (8m08s)
Note: These test-harness videos are from a different semester's language, so the exact examples will be different from &L0;, but otherwise it's identical.
§3.3, but you can skim §§3.3.4-3.3.5.
Nov.14
week13
Nov.19 Review OG2-soln;
Prolog intro: run file heroes.pl [code: before, after] at swish.swi-prolog.org/
Scott Chpt.11, but skip §11.2.6
Nov.21 prolog-recursion.html; prolog-lists.html §3.6 (“the binding of referencing environments”)
thanksgiving cornucopia br
eak
week14
Dec.03 sorting in prolog [code: before, after]; why-prolog.txt
We won't discuss issues with prolog-numbers.
Dec.05 objects-with-let-over-lambda.rkt (pretty much).
finals week
Dec.10 (Tue) 12:30final exam[0,∞) :-)
Opening notes in .rkt files: Many of the lecture-notes links are .rkt files, not html. You should (a) download the file (say, via right-click or save-as; on Windows you might need to re-name the suffix to .rkt manually), (b) start DrRacket, and then (c) choose File » Open… them. Do not copy-paste into an empty DrRacket window — the language-preference won't be set correctly, and the initial lines may be goofed up. One possible result is the error message read-syntax: `#lang` not enabled.

Helpful Links


logo for creative commons by-attribution license
This page licensed CC-BY 4.0 Ian Barland
Page last generated
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Rendered by Racket.