Flapjax: A Programming Language for Ajax Applications

Leo Meyerovich, Arjun Guha, Jacob Baskin, Gregory Cooper, Michael Greenberg, Aleks Bromfield, and Shriram Krishnamurthi
ACM SIGPLAN Conference on Object Oriented Programming, Systems, Languages and Applications (OOPSLA), 2009
Best Student Paper Award

This paper presents Flapjax, a language designed for contemporary Web applications. These applications communicate with servers and have rich, interactive interfaces. Flapjax provides two key features that simplify writing these applications. First, it provides event streams, a uniform abstraction for communication within a program as well as with external Web services. Second, the language itself is reactive: it automatically tracks data dependencies and propagates updates along those dataflows. This allows developers to write reactive interfaces in a declarative and compositional style.

Flapjax is built on top of JavaScript. It runs on unmodified browsers and readily interoperates with existing JavaScript code. It is usable as either a programming language (that is compiled to JavaScript) or as a JavaScript library, and is designed for both uses. This paper presents the language, its design decisions, and illustrative examples drawn from several working Flapjax applications.

Try Flapjax Online

PDF

  @inproceedings{meyerovich:flapjax,
    author = "Leo~A. Meyerovich and Arjun Guha and Jacob Baskin and
              Gregory~H. Cooper and Michael Greenberg and Aleks Bromfield
              and Shriram Krishnamurthi",
    title = "Flapjax: A Programming Language for {Ajax} Applications",
    year = 2009,
    booktitle = "Object Oriented Programming, Systems, Languages and
                 Applications (OOPSLA)"
  }