Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Pretty Expressive Printer #208

Merged
merged 1 commit into from
Sep 20, 2024
Merged

A Pretty Expressive Printer #208

merged 1 commit into from
Sep 20, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This paper was randomly selected as your next reading.

A Pretty Expressive Printer

Pretty printers make tradeoffs between the expressiveness of their pretty printing language, the optimality objective that they minimize when choosing between different ways to lay out a document, and the performance of their algorithm. This paper presents a new pretty printer, e , that is strictly more expressive than all pretty printers in the literature and provably minimizes an optimality objective. Furthermore, the time complexity of e is better than many existing pretty printers. When choosing among different ways to lay out a document, e consults a usersupplied cost factory , which determines the optimality objective, giving e a unique degree of flexibility. We use the Lean theorem prover to verify the correctness validity and optimality of e , and implement e concretely as a pretty printer that we call PrettyExpressive. To evaluate our pretty printer against others, we develop a formal framework for reasoning about the expressiveness of pretty printing languages, and survey pretty printers in the literature, comparing their expressiveness, optimality, worstcase time complexity, and practical running time. Our evaluation shows that PrettyExpressive is efficient and

Porncharoenwase, Sorawee, et al. “A Pretty Expressive Printer. Proceedings of the ACM on Programming Languages, vol. 7, no. OOPSLA2, Oct. 2023, pp. 112249. Crossref, https://doi.org/10.1145/3622837.

Merge this PR to apply selection.

@github-actions github-actions bot added next-paper paper-vote next paper vote option labels Sep 18, 2024
@nkrusch nkrusch merged commit 7f5ff25 into main Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-paper paper-vote next paper vote option
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant