Generic programming

Website:website containing additional information
Course code:INFOGP
Credits:7.5 ECTS (=5.25 old credit points)
Period:periode 4 (week 17 t/m 27, dwz 24-4-2006 t/m 7-7-2006; herkansing week 35)
Timeslot:D
Participants:up till now 18 subscriptions
Schedule:Dit is een oud rooster!
formgrouptimeweekroomteacher
college   wo 15-1718-20, 22-26 BBL-508 Johan Jeuring
 
vr 09-1117,19-20,22-26 BBL-508
Contents:Software usually works with structured information; think of Web-browsers and HTML-documents. This structure can be represented by a data type or a DTD (Document Type Definition). If such a type changes, all programs that work on that type have to be changed too, although often the central problem does not change.

In the course on generic programming we will discuss methods with which problems can be formulated and solved for arbitrary data types or DTDs. The result is a generic program. An example of a generic program is a program for pattern matching: finding occurrences of a patterns in a given value. This problem is well known in the domain of strings, but it is equally important for trees or matrices. By specialising to a given type we get a normal, type-specific program. Many design patterns are also instances of generic programs.

In the course we will discuss generic programming by means of a number of example problems. You will also see some basic lambda calculus, which can be used to type-check and specialize generic programs. We will use the programming language Generic Haskell, an extension of Haskell that supports generic programming, in particular on XML related problems.

Literature:The literature consists of Andres Löh's PhD thesis, and a number of articles that will be distributed during the course.
Course form:In the first part of the course you will learn how to write generic programs in Generic Haskell. Besides 4 lectures, you will develop a couple of generic programs in small groups, working closely together with the teacher. We will try to use these programs in papers for the Workshop on Generic Programming in Portland (US) in September. Possible topics: generic edit distance/diff, generic XML compression, generic data migration tool, etc. In the second half of the course we will discuss the background of generic programming in a couple of lectures.
Exam form:A student will be graded by means of the practical that will have to be handed in, and an exam at the end of the course.
Minimum effort to qualify for 2nd chance exam:To qualify for 2nd chance exam you have to both hand in the practicals and the first exam.
Description:We will discuss the following topics. Minor changes might be made before the course starts.
  • A polymorphic lambda calculus
  • Type-indexed functions
  • Kind-indexed types
  • Dependencies between type-indexed functions
  • XML,DTD,Schema
  • HaXml, XML-Haskell data bindings
  • Generic programming for XML tools
  • Specialization
wijzigen?