Navigate to list of lectures -- Keyboard shortcut: 'u'  Previous lecture -- Keyboard shortcut: 'p'  Next lecture -- Keyboard shortcut: 'n'  Course home        Alphabetic index  Exit possible frame set        First slide  First annotated slide  Lecture notes - all slides and notes together      PDF print page        Help page about these notes
Lecture 3

LECTURE 3:
Simulation of other Paradigms and Continuations

Kurt NÝrmark
Department of Computer Science, Aalborg University, Denmark

Title page            Abstract            References from this lecture            Exercises in this lecture            Source programs in this lecture            

Page 1Object-oriented ProgrammingPage 23The catch and throw idea
Page 2Functions and closures revisitedPage 24A catch and throw example
Page 3Classes and objectsPage 25The intuition behind continuations
Page 4A general pattern of classesPage 26Being more precise
Page 5Example of the general class patternPage 27The capturing of continuations
Page 6A general pattern of classes with inheritancePage 28Capturing, storing, and applying continuations
Page 7An example of classes with inheritancePage 29Use of continuations for escaping purposes
Page 8The interpretation of selfPage 30Practical example: Length of an improper list
Page 9A general pattern of a class hierarchy with virtual methodsPage 31Practical example: Searching a binary tree
Page 10An example of virtual methodsPage 32Continuation Passing Style
Page 11Summing up: Simulation of OOP in SchemePage 33Continuation Passing Style
Page 12Imperative ProgrammingPage 34Observations about continuation passing style
Page 13Imperative Programming in a Functional LanguagePage 35Coroutines
Page 14Sequential ControlPage 36Coroutines
Page 15Jumps in Functional ProgramsPage 37Simulating Coroutines in Scheme
Page 16Selection ControlPage 38A simpel producer and consumer
Page 17Iterative ControlPage 39Simultaneous traversal of two binary trees (1)
Page 18Assignments in Functional ProgramsPage 40Simultaneous traversal of two binary trees (2)
Page 19State in Functional ProgramsPage 41Trampolining
Page 20Object MutationPage 42Trampolining
Page 21ContinuationsPage 43More exercises
Page 22Introduction and motivation

LENO - LEcture NOtes with LAML technologyGenerated: Tuesday October 3, 2017, 15:47:28
Program Oriented Web Engineering - using LAML