Lessons

Scheme · Expert

Scheme · Expert. Ten lessons. Open-book quizzes. Lesson 1 free.

10 lessons · The Host · Lesson 1 free

Pass all ten lessons for the certificate. Sample · Claim

  1. Classes and generic functions with GOOPS

    Lesson 1 · On the house

    Classes and generic functions with GOOPS

    Define classes with slot options, dispatch generic functions on argument classes, chain with next-method, and inspect classes at run time.

  2. Parsing, querying and writing XML with SXML

    Lesson 2

    Parsing, querying and writing XML with SXML

    Turn XML into SXML lists, select nodes with sxpath, destructure elements with sxml-match, and write escaped XML back out with sxml->xml.

  3. Multiple return values

    Lesson 3

    Multiple return values

    Return several results without consing a list: values, call-with-values, receive, let-values, define-values, and SRFI-1 procedures that return two lists.

  4. Partial application with cut, cute and combinators

    Lesson 4

    Partial application with cut, cute and combinators

    Specialise procedures with SRFI-26 cut slots, control when fixed arguments are evaluated with cute, and combine procedures with compose, const and negate.

  5. Persistent vlists, vhashes and mutable queues

    Lesson 5

    Persistent vlists, vhashes and mutable queues

    Use ice-9 vlist for persistent lists with fast indexing, vhashes for functional key lookup with shadowing, and ice-9 q for a mutable FIFO queue.

  6. Lazy infinite sequences with SRFI-41 streams

    Lesson 6

    Lazy infinite sequences with SRFI-41 streams

    Build infinite streams with define-stream and stream-cons, transform them lazily, write self-referential definitions, and rely on memoised forcing.

  7. R6RS hashtables and stable sorting

    Lesson 7

    R6RS hashtables and stable sorting

    Use the R6RS hashtable API with custom hash and equivalence, update counters in one call, and sort lists and vectors with list-sort and vector-sort!.

  8. Formatted output with ice-9 format and pretty-print

    Lesson 8

    Formatted output with ice-9 format and pretty-print

    Control width, padding, radix, decimals, plurals, list iteration and alignment with format directives, then lay out code with pretty-print.

  9. Introspecting procedures

    Lesson 9

    Introspecting procedures

    Read names, docstrings, arity and lambda lists from compiled procedures, attach procedure properties, and see why interpreted closures report less.

  10. Tree-IL and Guile's optimiser

    Lesson 10

    Tree-IL and Guile's optimiser

    Compile Scheme to Tree-IL, read it back with tree-il->scheme, run resolve-primitives and peval to watch folding and inlining, then compile to bytecode.

Sample certificate

Certificate of completion

Sign in to claim your certificate of completion.

Certificate

Finish all ten lessons, then sign in

Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.

All lessons