Automated Code Optimization with E-Graphs

Alessandro Cheli
12/26/2021
3 citations
cs.PLcs.SC

Official code: JuliaSymbolics/Metatheory.jl (409 stars, Julia, MIT, last commit 2026-03-09).

Abstract

This thesis proposes an advanced, generic and high-level code rewriting and analysis system in the Julia programming language, providing applied equality saturation in the presence of multiple dispatch and metaprogramming. We show how our system can practically solve some challenging problems: Can programmers implement their own high-level compiler optimizations for their domain-specific scientific programs, without the requirement of them being compiler experts at all?

Show full abstract

Can these optimizers be implemented by users in the same language and inside the same programs they want to optimize, solving the two-language problem? Can these compiler optimizers be written in a high-level fashion, as equations, without the need to worry about the rewriting ordering? Thus, can symbolic mathematics do high-level compiler optimizations or vice-versa?

View on arXivView PDF

Code Implementations(1)

MIT

Makes Julia reason with equations. General purpose metaprogramming, symbolic computation and algebraic equational reasoning library for the Julia programming language: E-Graphs & equality saturation, term rewriting and more.

40952Julia, TeXJan 12, 20218 months agoMIT
compiler-constructioncompiler-optimizationegraphsequality-saturationjulia+6 more

Similar Papers

Cite this paper

@article{cheli2021automated,
  title  = {Automated Code Optimization with E-Graphs},
  author = {Alessandro Cheli},
  year   = {2021},
  eprint = {2112.14714},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.14714}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.14714.svg)](https://codeofpaper.com/paper/2112.14714)

Discussion