Jaro Reinders
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Research Interests
Jaro Reinders has a total of 3 co-authors. Here are the top co-authors by number of shared publications:
- Casper Bach Poulsen
University of Southern Denmark
2 shared publications - Benedikt Ahrens
Delft University of Technology, Delft, Netherlands
1 shared publication - Nicolas Wu
Imperial College London, London, United Kingdom
1 shared publication
Latest Publications
- Open Access
- 26 August 2026
- Published by Association for Computing Machinery (ACM)
- p. 1-9
Effects with Variable Binding
- 26 August 2026
- Published by Association for Computing Machinery (ACM)
- p. 1-9
Open AccessEffects with Variable Binding
- 1 October 2025
- Published by Springer Nature
- p. 283-301
A Type Theoretic Treatment of Context-Free Languages Without Mutual Recursion
- 1 October 2025
- Published by Springer Nature
- p. 283-301
A Type Theoretic Treatment of Context-Free Languages Without Mutual Recursion
- Open Access
- 28 August 2024
- Published by Association for Computing Machinery (ACM)
- p. 14-26
Higher Order Patterns for Rewrite Rules
GHC’s rewrite rules enable programmers to write local program transformation rules for their own functions. The most notable use case are fusion optimizations, which merge multiple traversals of a data structure into one and avoids allocation of intermediate structures. However, GHC’s rewrite rules were too limited to express a rewrite rule that is necessary for proper fusion of the concatMap function in a variant of fusion called stream fusion. We introduce higher order patterns as a simple extension of GHC’s rewrite rules. Higher order patterns substantially broaden the expressiveness of rewrite rules that involve local variables. In particular, they enable the rewriting of concatMap such that it can be properly optimized. We implement a stream fusion framework to replace the existing fusion framework in GHC and evaluate it on GHC’s benchmark suite. Our stream fusion framework with higher order patterns shows an average speedup of 7% compared to our stream fusion framework without it. However, our stream fusion framework is not yet able to match the performance of GHC’s existing fusion framework. Additionally, we show that our higher order patterns can be used to simplify GHC’s existing mechanism for rolling back failed attempts at fusion and, at the same time, solve a problem that prevented proper optimization in one example program. However, evaluating it on GHC’s benchmark suite shows a small regression in performance overall.
- 28 August 2024
- Published by Association for Computing Machinery (ACM)
- p. 14-26
Open AccessHigher Order Patterns for Rewrite Rules
GHC’s rewrite rules enable programmers to write local program transformation rules for their own functions. The most notable use case are fusion optimizations, which merge multiple traversals of a data structure into one and avoids allocation of intermediate structures. However, GHC’s rewrite rules were too limited to express a rewrite rule that is necessary for proper fusion of the concatMap function in a variant of fusion called stream fusion. We introduce higher order patterns as a simple extension of GHC’s rewrite rules. Higher order patterns substantially broaden the expressiveness of rewrite rules that involve local variables. In particular, they enable the rewriting of concatMap such that it can be properly optimized. We implement a stream fusion framework to replace the existing fusion framework in GHC and evaluate it on GHC’s benchmark suite. Our stream fusion framework with higher order patterns shows an average speedup of 7% compared to our stream fusion framework without it. However, our stream fusion framework is not yet able to match the performance of GHC’s existing fusion framework. Additionally, we show that our higher order patterns can be used to simplify GHC’s existing mechanism for rolling back failed attempts at fusion and, at the same time, solve a problem that prevented proper optimization in one example program. However, evaluating it on GHC’s benchmark suite shows a small regression in performance overall.