* [[!wikipedia Haskell Curry]] + * [[!wikipedia Moses SchÃ¶nfinkel]] +* [[!wikipedia Haskell Curry]] * [[!wikipedia Alonzo Church]]
+* [[!wikipedia Church encoding]] + * [[!wikipedia Combinatory logic]] * [Combinatory logic](http://plato.stanford.edu/entries/logiccombinatory/) at the Stanford Encyclopedia of Philosophy * [[!wikipedia SKI combinatory calculus]]
+* [[!wikipedia SKI combinatory calculus]] * [[!wikipedia B,C,K,W system]] * [[!wikipedia ChurchRosser theorem]] * [[!wikipedia Normalization property]] * [[!wikipedia Turing completeness]]
* [Scooping the Loop Snooper](http://www.cl.cam.ac.uk/teaching/0910/CompTheory/scooping.pdf), a proof of the undecidability of the halting problem in the style of Dr Seuss by Geoffrey K. Pullum
* [[!wikipedia Church encoding]]

## Learning Scheme ##

* [[!wikipedia Scheme (programming language) desc="Wikipedia overview of Scheme"]]

* If you are new to programming or if you have the patience to work through a textbook, you should work through a textbook. Some good choices are The Little Schemer book(s) we recommended for the seminar; and also:

 + [How to Design Programs](http://www.htdp.org/20030926/), by Matthias Felleisen, et al., which the Racket groups recommends. Whenever the book says "Scheme," you can read it as "Racket."

 Another warmlyrecommended introduction available online is [Teach Yourself Scheme in Fixnum Days](http://www.ccs.neu.edu/home/dorai/tyscheme/tyscheme.html) This is a short introductory text that introduces common Scheme techniques.

* If you're already a programmer and you're in more of a hurry, you could instead look at the [Quick Introduction to Racket](http://docs.racketlang.org/quick/index.html). This tutorial provides a brief introduction to the Racket programming language by using DrRacket and one of Racket's picturedrawing libraries.
+* Jeroen Fokker, "The Systematic Construction of a Onecombinator Basis for LambdaTerms" Formal Aspects of Computing 4 (1992), pp. 776780.
+
* [An Introduction to Lambda Calculus and Scheme](http://www.jetcafe.org/~jim/lambda.html) is also aimed at programmers. +* [To Dissect a Mockingbird](http://dkeenan.com/Lambda/index.htm) +* [Combinator Birds](http://www.angelfire.com/tx4/cus/combinator/birds.html) +* [Les deux combinateurs et la totalite](http://www.paulbraffort.net/j_et_i/j_et_i.html) by Paul Braffort. * After any of the preceding, you could move on to [Racket Guide](http://docs.racketlang.org/guide/index.html). This starts with a tutorial on Racket basics; then it describes the rest of the Racket language. This guide is intended for programmers who are new to Racket or new to some part of Racket. It assumes programming experience, so if you are new to programming, you should instead start with one of the textbooks listed above. This Guide describes parts of the Racket language which go beyond the learningoriented fragments of How to Design Programs.  * The [Complete Racket Reference Manual](http://docs.racketlang.org/reference/index.html) defines the core Racket language and describes its most prominent libraries. The Racket Guide is friendlier; though less precise and less complete.  * The Scheme language is standardized; the various implementations of the language usually adhere to what's published in the current standard and add on different handy extensions. The first standard was published in 1975. A revision was published in 1978 called "The revised report on Scheme, a dialect of Lisp." Thereafter, revisions of the standard were titled "The Revised Revised Report..." and so on, or "The Revised^n Report..." for short, for increasing n. The most widely implemented standard is [The Revised^5 Report on Scheme](http://docs.racketlang.org/r5rs/index.html), or R5RS, published in 1998. \[ [Alt link](http://www.schemers.org/Documents/Standards/R5RS/HTML/) \] A new standard [R6RS](http://docs.racketlang.org/r6rs/index.html) was ratified in 2007, but this has many detractors and has not been fully accepted in the community. \[ [Alt link](http://www.r6rs.org/final/html/r6rs/r6rs.html); [Libraries](http://www.r6rs.org/final/html/r6rslib/r6rslib.html) \] +## Evaluation Order ## * [Scheme FAQ](http://community.schemewiki.org/?schemefaq) +* [[!wikipedia Evaluation strategy]] +* [[!wikipedia Eager evaluation]] +* [[!wikipedia Lazy evaluation]] +* [[!wikipedia Strict programming language]] * [Scheme Requests for Implementation](http://srfi.schemers.org/) (SRFI) +## Confluence, Normalization, Undecidability ## * The [Schematics Scheme Cookbook](http://schemecookbook.org/) is a collaborative effort to produce documentation and recipes for using Scheme for common tasks. +* [[!wikipedia ChurchRosser theorem]] +* [[!wikipedia Normalization property]] +* [[!wikipedia Turing completeness]]
+* [Scooping the Loop Snooper](http://www.cl.cam.ac.uk/teaching/0910/CompTheory/scooping.pdf), a proof of the undecidability of the halting problem in the style of Dr Seuss by Geoffrey K. Pullum ## Recursion and the Y Combinator ## @@ 110,19 +88,14 @@ community. * [Y Combinator for Dysfunctional NonSchemers](http://rayfd.wordpress.com/2007/05/06/ycombinatorfordysfunctionalnonschemers/) * [The Y Combinator](http://www.ece.uc.edu/~franco/C511/html/Scheme/ycomb.html) * [The Y Combinator](http://dangermouse.brynmawr.edu/cs245/ycomb_jim.html) derives the applicativeorder Ycombinator from scratch, in Scheme. This derivation is similar in flavor to the derivation found in The Little Schemer, but uses a slightly different starting approach...  ## Evaluation Order ##  * [[!wikipedia Evaluation strategy]] * [[!wikipedia Eager evaluation]] * [[!wikipedia Lazy evaluation]] * [[!wikipedia Strict programming language]] +* [The church of the least fixed point, by Sans Pareil](http://www.springerlink.com/content/n4t2v573m58g2755/) ## Types ## * [[!wikipedia Tagged union]] * [[!wikipedia Algebraic data type]] +* [[!wikipedia Recursive data type]] * [[!wikipedia Pattern matching]] * [[!wikipedia Unit type]] * [[!wikipedia Bottom type]] @@ 130,22 +103,11 @@ community. * [[!wikipedia Simply typed lambda calculus]] * [Type Theory](http://plato.stanford.edu/entries/typetheory/) at the Stanford Encyclopedia of Philosophy * [Church's Type Theory](http://plato.stanford.edu/entries/typetheorychurch/) at the Stanford Encyclopedia of Philosophy * The [[!wikipedia CurryHoward isomorphism]] * [The CurryHoward correspondence in Haskell](http://www.thenewsh.com/~newsham/formal/curryhoward/)
* [[!wikipedia Type polymorphism]] * [[!wikipedia System F]] ## Learning OCaml ##  * [[!wikipedia Objective Caml desc="Wikipedia overview of OCaml"]]  * [A Concise Introduction to Objective Caml](http://www.csc.villanova.edu/~dmatusze/resources/ocaml/ocaml.html) * Here are [two](http://www.cs.jhu.edu/~scott/pl/lectures/camlintro.html) [other](http://pauillac.inria.fr/caml/FAQ/stephan.html) bried overviews of OCaml, aimed at readers who already have some programming experience.  * Here's a [more detailed tutorial](http://www.ocamltutorial.org/) for OCaml.  * Jason Hickey has posted a [draft of a nice book introducing OCaml](http://www.cs.caltech.edu/courses/cs134/cs134b/book.pdf). +##[[Learning OCaml]]## ## Sideeffects / mutation ## @@ 153,76 +115,40 @@ community. * [[!wikipedia Side effect (computer science) desc="Side effects"]] * [[!wikipedia Reference (computer science) desc="References"]] * [[!wikipedia Pointer (computing) desc="Pointers"]] +* [Pointers in OCaml](http://caml.inria.fr/resources/doc/guides/pointers.html) ## Monads ## * [[!wikipedia Monad (functional programming) desc="Monads in Functional Programming"]]  * [A Gentle Intro to Haskell: About Monads](http://www.haskell.org/tutorial/monads.html)  * [Understanding Haskell Monads](http://ertes.de/articles/monads.html)  * [The State Monad: a tutorial for the confused?](http://coder.bsimmons.name/blog/2009/10/thestatemonadatutorialfortheconfused/)  * [Beyond Monads](http://blog.sigfpe.com/2009/02/beyondmonads.html)  * [Simple Explanation of a Monad](http://math.stackexchange.com/questions/405/simpleexplanationofamonad)  * [What is a Monad?](http://stackoverflow.com/questions/44965/whatisamonad)  * [Can Anyone Explain Monads?](http://stackoverflow.com/questions/2366/cananyoneexplainmonads)  * [Monad in Plain English...](http://stackoverflow.com/questions/2704652/monadinplainenglishfortheoopprogrammerwithnofpbackground)  * [Monad in nonprogramming terms](http://stackoverflow.com/questions/3261729/monadinnonprogrammingterms)  * [Real World Haskell: chapter on Monads](http://book.realworldhaskell.org/read/monads.html)  * [Learn You a Haskell for Great Good: chapter on Functors, Applicative Functors and Monoids](http://www.learnyouahaskell.com/functorsapplicativefunctorsandmonoids)  * Monads are Elephants: [Part 1](http://jamesiry.blogspot.com/2007/09/monadsareelephantspart1.html) [Part 2](http://jamesiry.blogspot.com/2007/10/monadsareelephantspart2.html) [Part 3](http://jamesiry.blogspot.com/2007/10/monadsareelephantspart3.html) [Part 4](http://jamesiry.blogspot.com/2007/11/monadsareelephantspart4.html)  * [Brian Beckman: Don't fear the Monad (67 minute video)](http://channel9.msdn.com/shows/Going+Deep/BrianBeckmanDontfeartheMonads/)  * [A monad nontutorial...or why you shouldn't ask what a monad is](http://strongtyped.blogspot.com/2010/01/monadnontutorial.html)  * [The Mother of all Monads](http://blog.sigfpe.com/2008/12/motherofallmonads.html)  * [You Could Have Invented Monads! (And Maybe You Already Have.)](http://blog.sigfpe.com/2006/08/youcouldhaveinventedmonadsand.html)  * [Monads! (and Why Monad Tutorials Are All Awful)](http://ahamsandwich.wordpress.com/2007/07/26/monadsandwhymonadtutorialsareallawful/)  * [Of monads and spacesuits (archived)](http://www.iterasi.net/openviewer.aspx?sqrlitid=ixx7fcluvek_9lfolsxr_g)  * [Haskell wikibook: Understanding monads](http://en.wikibooks.org/wiki/Haskell/Understanding_monads)  * Haskell state monads: [part 1](http://mvanier.livejournal.com/1765.html) [part 2](http://mvanier.livejournal.com/1901.html)  * [How not to explain Haskell monads](http://mvanier.livejournal.com/1205.html)  * Yet Another Monad Tutorial: [part 1](http://mvanier.livejournal.com/3917.html) [part 2](http://mvanier.livejournal.com/4305.html) [part 3](http://mvanier.livejournal.com/4586.html) [part 4](http://mvanier.livejournal.com/4647.html)  * [Research Papers/Monads and Arrows](http://www.haskell.org/haskellwiki/Research_papers/Monads_and_arrows) * [Philip Wadler. Monads for Functional Programming](http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf): in M. Broy, editor, *Marktoberdorf Summer School on Program Design Calculi*, Springer Verlag, NATO ASI Series F: Computer and systems sciences, Volume 118, August 1992. Also in J. Jeuring and E. Meijer, editors, *Advanced Functional Programming*, Springer Verlag, LNCS 925, 1995. Some errata fixed August 2001.   The use of monads to structure functional programs is described. Monads provide a convenient framework for simulating effects found in other languages, such as global state, exception handling, output, or nondeterminism. Three case studies are looked at in detail: how monads ease the modification of a simple evaluator; how monads act as the basis of a datatype of arrays subject to inplace update; and how monads can be used to build parsers.  * [Philip Wadler. The essence of functional programming](http://homepages.inf.ed.ac.uk/wadler/papers/essence/essence.ps): invited talk, *19'th Symposium on Principles of Programming Languages*, ACM Press, Albuquerque, January 1992.   This paper explores the use monads to structure functional programs. No prior knowledge of monads or category theory is required.   Monads increase the ease with which programs may be modified. They can mimic the effect of impure features such as exceptions, state, and continuations; and also provide effects not easily achieved with such features. The types of a program reflect which effects occur.   The first section is an extended example of the use of monads. A simple interpreter is modified to support various extra features: error messages, state, output, and nondeterministic choice. The second section describes the relation between monads and continuationpassing style. The third section sketches how monads are used in a compiler for Haskell that is written in Haskell.  ## Monads in Category Theory ## * [Category Theory at SEP](http://plato.stanford.edu/entries/categorytheory/) @@ 239,55 +165,40 @@ invited talk, *19'th Symposium on Principles of Programming Languages*, ACM Pres * [A Partial Ordering of some Category Theory applied to Haskell](http://blog.sigfpe.com/2010/03/partialorderingofsomecategory.html) +## The CurryHoward Correspondence ## +* The [[!wikipedia CurryHoward isomorphism]] +* [The CurryHoward correspondence in Haskell](http://www.thenewsh.com/~newsham/formal/curryhoward/) +* [The CurryHoward Isomorphism](http://en.wikibooks.org/wiki/Haskell/The_CurryHoward_isomorphism) at Haskell wiki
+ + ## Continuations ## * [[!wikipedia Continuation]] * [[!wikipedia Continuationpassing style]] * [[!wikipedia Callwithcurrentcontinuation]] * [Intro to call/cc](http://community.schemewiki.org/?callwithcurrentcontinuation) at SchemeWiki * [[!wikipedia Delimited continuation]] * [Delimited/composable continuations tutorial](composablecontinuationstutorial) at SchemeWiki  * [Call With Current Continuation](http://www.c2.com/cgi/wiki?CallWithCurrentContinuation)  * [Continuations Made Simple and Illustrated](http://www.ps.unisaarland.de/~duchier/python/continuations.html)  * [Continuation kata](http://programmingmusings.org/2006/02/12/continuationkata/)  * [Understanding continuations](http://keithdevens.com/weblog/archive/2004/Jul/11/continuations) [Commentary](http://lambdatheultimate.org/node/86)  * http://en.wikipedia.org/wiki/Continuation  * http://www.haskell.org/haskellwiki/Continuation  * [Continuations In Scheme](http://tech.phillipwright.com/2010/05/23/continuationsinscheme/)  * [Understanding Scheme Continuations](http://sanjaypande.blogspot.com/2004/06/understandingschemecontinuations.html). This is tagged "Part I" but I think there's no further parts.  * [Continuations for Curmudgeons](http://www.intertwingly.net/blog/2005/04/13/ContinuationsforCurmudgeons) [Commentary](http://lambdatheultimate.org/node/643)  * [composablecontinuationstutorial](http://community.schemewiki.org/?composablecontinuationstutorial)  * [Post by Ken on Lambda the Ultimate explaining difference btw undelimited and delimited continuations](http://lambdatheultimate.org/node/1197#comment12927)  +* [Haskell wiki on Continuations](http://www.haskell.org/haskellwiki/Continuation)
+* [[!wikipedia Delimited continuation]] +* [Composable Continuations Tutorial](http://community.schemewiki.org/?composablecontinuationstutorial) at SchemeWiki +* [Post by Ken](http://lambdatheultimate.org/node/1197#comment12927) on Lambda the Ultimate explaining difference between undelimited and delimited continuations * [shift, reset and streams](http://chneukirchen.org/blog/archive/2005/04/shiftresetandstreams.html)  * [guile and delimited continuations](http://www.wingolog.org/archives/2010/02/26/guileanddelimitedcontinuations)  * [Delimited continuations in Scala](http://blog.richdougherty.com/2009/02/delimitedcontinuationsinscala_24.html)  * [Delimited Continuations Explained (in Scala)](http://dcsobral.blogspot.com/2009/07/delimitedcontinuationsexplainedin.html)  * [Partial Continuations](http://www.bluishcoder.co.nz/articles/scheme/partialcontinuations.html)  * [Online Bibliography of Scheme Research: Continuations and Continuation Passing Style](http://library.readscheme.org/page6.html)  * Delimited Continuations in MzScheme: [Part 1](http://schemekeys.blogspot.com/2006/11/promptstheirinteractionwithdynamic.html) [Part 2](http://schemekeys.blogspot.com/2006/12/delimitedcontinuationsinmzscheme.html) [Part 3](http://schemekeys.blogspot.com/2007/01/goingfurtherwithprimitives.html) [Part 4](http://schemekeys.blogspot.com/2007/01/oddandends.html)  +[Part 4](http://schemekeys.blogspot.com/2007/01/oddandends.html)
+* [Online Bibliography of Scheme Research: Continuations and Continuation Passing Style](http://library.readscheme.org/page6.html) * [Delimited continuations in natural language semantics](http://okmij.org/ftp/gengo/)