Proceedings of the 13th ACM SIGPLAN International Symposium on Haskell 2020
DOI: 10.1145/3406088.3409021
|View full text |Cite
|
Sign up to set email alerts
|

Staged sums of products

Abstract: Generic programming libraries have historically traded efficiency in return for convenience, and the generics-sop library is no exception. It offers a simple, uniform, representation of all datatypes precisely as a sum of products, making it easy to write generic functions. We show how to finally make generics-sop fast through the use of staging with Typed Template Haskell. CCS Concepts: • Software and its engineering → Functional languages.

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
0
0

Year Published

2022
2022
2024
2024

Publication Types

Select...
3
2

Relationship

1
4

Authors

Journals

citations
Cited by 5 publications
(1 citation statement)
references
References 27 publications
0
0
0
Order By: Relevance
“…Whereas in TH you can manipulate arbitrary parts of the syntax tree, add top-level splices of data types, definitions and functions, in TTH the programmer can only splice expressions but the AST fragments representing the expressions are well-typed by construction instead of untyped. Pickering et al (2020) implemented staged compilation for the generics-sop (de Vries and Löh, 2014) generics library to improve the efficiency of the code using TTH. Willis et al (2020) used TTH to remove the overhead of parsing combinators.…”
Section: Typed Template Haskellmentioning
confidence: 99%
“…Whereas in TH you can manipulate arbitrary parts of the syntax tree, add top-level splices of data types, definitions and functions, in TTH the programmer can only splice expressions but the AST fragments representing the expressions are well-typed by construction instead of untyped. Pickering et al (2020) implemented staged compilation for the generics-sop (de Vries and Löh, 2014) generics library to improve the efficiency of the code using TTH. Willis et al (2020) used TTH to remove the overhead of parsing combinators.…”
Section: Typed Template Haskellmentioning
confidence: 99%