WORK IN PROGRESS: THIS PAGE IS TO BE COMPLETED, YET
While the reference language of the course will be OCaml, we will use code excerpts of Haskell, Scala, Perl 6, C#, Java, Erlang, Pascal, Python, Basic, CDuce, Xslt, ... . The idea is that we want to focus more on programming concepts rather than on programming in a particular language.
Module systems - 1. Introduction to modularity. - 2. ML simple modules. -
3. Functors. - 4. Advanced example.
Program transformations
- 14. The fuss about purity
- 15. A Refresher Course on Operational Semantics
- 16. Closure conversion
- 17. Defunctionalization
- 18. Exception passing style
- 19. State passing style
- 20. Continuations, generators, and coroutines
- 21. Continuation passing style
Monadic Programming
- 22. Invent your first monad
- 23. More examples of monads
- 24. Monads and their laws
- 25. Program transformations and monads
- 26. Monads as a general programming technique
- 27. Monads and ML Functors
Philip Wadler
Monads for fuctional Programming
In Advanced Functional Programming,
Proceedings of the Baastad Spring School, May 1995, Springer Verlag Lecture Notes
in Computer Science 925.
Maurice Herlihy, Nir Shavit.
The Art of Multiprocessor Programming. Morgan-Kaufmann Elsevier.
Vladimir Gapeyev, Michael Y. Levin, Benjamin C. Pierce. Recursive Subtyping Revealed.
Journal of Functional Programming, 12:511-548, 2002.
G. Castagna and A. Frisch. A Gentle introduction to Semantic Subtyping. Proceedings of PPDP '05, the 7th ACM SIGPLAN International Symposium on Principles and Practice of Declarative Programming, pages 198-208, ACM Press (full version) and ICALP '05, 32nd International Colloquium on Automata, Languages and Programming, Lecture Notes in Computer Science n. 3580, pages 30-34, Springer (summary), July, 2005. Joint ICALP-PPDP keynote talk.
Advanced bibliography
P. Sestoft and H Hansen. C# Precisely.
A nice book on C#
Bryan O'Sullivan, Don Stewart, and John Goerzen
Real World Haskell. Online book for advanced programming in Haskell
Dean Wampler, Alex Payne.
Programming Scala. O'Reilly.
Online book on Scala
V. Benzaken, G. Castagna, and A. Frisch.
CDuce: an XML-Centric General-Purpose Language.
In ICFP '03, 8th ACM International Conference on Functional Programming,
pag. 51―63, ACM Press, 2003.
Reference paper about CDuce
P.-L. Curien, G. Ghelli. Coherence of subsumption, minimum typing and type-checking in Fsub.
Mathematical Structures in Computer Science, 2(1):55-91, 1992.
Subtyping systems and algorithms for explicit polymorphic functions.
T. Griffin. A Formulæ-as-Types Notion of Control. POPL 1990. It explains the logical role of callcc and CPS.
Andrzej Filinski. Representing Monads. In Proceedings of the 21st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages,
It nicely explains the relation between Monads and CPS
K. Fraser and T. Harris. Concurrent programming without locks.
ACM Transactions on Computer Systems (TOCS), 25(2):146-196, May 2007
Lock-free programming