Directing JavaScript with Arrows (Functional Pearl)

dc.contributor.authorKhoo, Yit Phang
dc.contributor.authorHicks, Michael
dc.contributor.authorFoster, Jeffrey S.
dc.contributor.authorSazawal, Vibha
dc.date.accessioned2008-08-29T18:26:34Z
dc.date.available2008-08-29T18:26:34Z
dc.date.issued2008-08-02
dc.description.abstractJavaScript, 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.extent293193 bytes
dc.format.mimetypeapplication/pdf
dc.identifier.urihttp://hdl.handle.net/1903/8400
dc.language.isoen_USen
dc.relation.ispartofseriesUM Computer Science Departmenten
dc.relation.ispartofseriesCS-TR-4923en
dc.titleDirecting JavaScript with Arrows (Functional Pearl)en
dc.typeTechnical Reporten

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
tr.pdf
Size:
286.32 KB
Format:
Adobe Portable Document Format
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.81 KB
Format:
Item-specific license agreed upon to submission
Description: