The use of pure functional languages for interactive applications, especially mobile applications and games, is still rare. Reasons for the infrequent use of pure functional programming in this area include the lack of libraries and frameworks that implement nec- essary features, the lack of support and integration with existing toolchains, and generally the lack of examples of large, non-trivial applications that demonstrate how to best structure interactive programs in a way that is easily scalable in terms of performance and modularity.
In this paper we identify three specific challenges that limit the application of functional programming specifically to mobile apps and games: purity, compositionality, and abstraction. We discuss so- lutions to these problems, and propose a framework for mobile app programming that completely separates logic from IO, resulting in an application architecture that is highly modular, referentially transparent, naturally scalable, backend agnostic and trivial to test. We implement this proposal in SAGE (Simple Application and Game Engine), a collection of libraries that provide higher-level notions needed in commercial applications, like resource management, wid- gets, storing user preferences, audio playing, image rendering, and composable applications, among others. We have verified the suit- ability of this approach by using it to build, in Haskell, six mobile games for iOS and Android.
Fri 23 AugDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
13:30 - 15:00 | |||
13:30 30mTalk | Fun with Interfaces (SVG Interfaces for Musical Expression) FARM Benedict R. Gaster University of the West of England, Nathan Renney University of West of England, Carinna Parraman University of West of England | ||
14:00 30mTalk | Mobile Game Programming in Haskell FARM | ||
14:30 30mTalk | Demo: Kaleidogen FARM Joachim Breitner DFINITY Foundation |