Dynamic Applications From the Ground Up

Don Stewart and Manuel M. T. Chakravarty

*new* In Proceedings of The 2005 ACM SIGPLAN Haskell Workshop, ACM Press, pages 27-38, 2005.

Some Lisp programs such as Emacs, but also the Linux kernel (when fully modularised) are mostly dynamic; i.e., apart from a small static core, the significant functionality is dynamically loaded. In this paper, we explore fully dynamic applications in Haskell where the static core is minimal and code is hot swappable. We demonstrate the feasibility of this architecture by two applications: Yi, an extensible editor, and Lambdabot, a plugin-based IRC robot. Benefits of the approach include hot swappable code and sophisticated application configuration and extension via embedded DSLs. We illustrate both benefits in detail at the example of a novel embedded DSL for editor interfaces.

PostScript version (12 pages)
Download the source code for Yi and Lambdabot from here.

This page is part of Manuel Chakravarty's WWW-stuff.