Directing JavaScript with Arrows (Functional Pearl)
dc.contributor.author | Khoo, Yit Phang | |
dc.contributor.author | Hicks, Michael | |
dc.contributor.author | Foster, Jeffrey S. | |
dc.contributor.author | Sazawal, Vibha | |
dc.date.accessioned | 2008-08-29T18:26:34Z | |
dc.date.available | 2008-08-29T18:26:34Z | |
dc.date.issued | 2008-08-02 | |
dc.description.abstract | JavaScript, being a single-threaded language, makes extensive use of event-driven programming to enable responsive web applications. However, standard approaches to sequencing events are messy, and often lead to code that is difficult to understand and maintain. We have found that arrows, a generalization of monads, are an elegant solution to this problem. Arrows allow us to easily write asynchronous programs in small, modular units of code, and flexibly compose them in many different ways, while nicely abstracting the details of asynchronous program composition. In particular, we show how to use arrows to construct a variety of state machines, such as autoscrollers and drag-and-drop handlers. | en |
dc.format.extent | 293193 bytes | |
dc.format.mimetype | application/pdf | |
dc.identifier.uri | http://hdl.handle.net/1903/8400 | |
dc.language.iso | en_US | en |
dc.relation.ispartofseries | UM Computer Science Department | en |
dc.relation.ispartofseries | CS-TR-4923 | en |
dc.title | Directing JavaScript with Arrows (Functional Pearl) | en |
dc.type | Technical Report | en |