COOKIES: By using this website you agree that we can place Google Analytics Cookies on your device for performance monitoring. |
University of Cambridge > Talks.cam > Computer Laboratory Programming Research Group Seminar > Reflection without Remorse: Revealing a hidden sequence to speed up monadic reflection
Reflection without Remorse: Revealing a hidden sequence to speed up monadic reflectionAdd to your list(s) Download to your calendar using vCal
If you have a question about this talk, please contact Raphael Proust. A series of list appends or monadic binds for many monads performs algorithmically worse when left-associated. Continuation-passing style (CPS) is well-known to cure this severe dependence of performance on the association pattern. The advantage of CPS dwindles or disappears if we have to examine or modify the intermediate result of that series of appends or binds, before continuing the series. Such examination is frequently needed, for example, to control search in non-determinism monads. We present an alternative approach that is just as general as CPS but more robust: it makes series of binds and other such operations efficient regardless of the association pattern—and also provides efficient access to intermediate results. The key is to represent such a conceptual sequence as an efficient sequence data structure. Efficient sequence data structures from the literature are homogeneous and cannot be applied as they are in a type-safe way to series of monadic binds. We generalize them to type aligned sequences and show how to construct their (assuredly order-preserving) implementations. We demonstrate that our solution solves previously undocumented, severe performance problems in iteratees, LogicT transformers, free monads and extensible effects. This talk is part of the Computer Laboratory Programming Research Group Seminar series. This talk is included in these lists:
Note that ex-directory lists are not shown. |
Other listsBTRU Seminar Series Fitzwilliam College Foundation Lectures The obesity epidemic: Discussing the global health crisis Rethinking Life Lees Knowles Lectures : Total War : The Soviet Union and the Eastern Front in a Comparative Framework Cancer ResearchOther talksDevelop a tool for inferring symptoms from prescriptions histories for cancer patients TODAY Adrian Seminar: "Starting new actions and learning from it" A domain-decomposition-based model reduction method for convection-diffusion equations with random coefficients Immigration policy-making beyond 'Western liberal democracies' Uncertainty Quantification of geochemical and mechanical compaction in layered sedimentary basins Part Ib Group Project Presentations |