Unpublished lecture notes in a secret place. All those moments will be lost in time, like tears in rain. Enjoy!

https://www.cs.cmu.edu/~rwh/courses/atpl/pdfs/
👀4🔥21👌1
Scalable Pattern Matching in Computation Graphs

Luca Mondada
Pablo Andrés-Martínez

Graph rewriting is a popular tool for the optimisation and modification of graph expressions in domains such as compilers, machine learning and quantum computing. The underlying data structures are often port graphs—graphs with labels at edge endpoints. A pre-requisite for graph rewriting is the ability to find graph patterns. We propose a new solution to pattern matching in port graphs. Its novelty lies in the use of a pre-computed data structure that makes the pattern matching runtime complexity independent of the number of patterns. This offers a significant advantage over existing solutions for use cases with large sets of small patterns.

Our approach is particularly well-suited for quantum superoptimisation. We provide an implementation and benchmarks showing that our algorithm offers a 20x speedup over current implementations on a dataset of 10000 real world patterns describing quantum circuits.

https://arxiv.org/abs/2402.13065
👍4
Forwarded from Alex Gryzlov
👍2👏1
Compiling Untyped Lambda Calculus to Lower-Level Code by Game Semantics and Partial Evaluation

Daniil Berezun
Neil D. Jones

Any expression M in ULC (the untyped λ-calculus) can be compiled into a rather low-level language we call LLL, whose programs contain none of the traditional implementation devices for functional languages: environments, thunks, closures, etc. A compiled program is first-order functional and has a fixed set of working variables, whose number is independent of M. The generated LLL code in effect traverses the subexpressions of M.

We apply the techniques of game semantics to the untyped λcalculus, but take a more operational viewpoint that uses less mathematical machinery than traditional presentations of game semantics. Further, the untyped lambda calculus ULC is compiled into LLL by partially evaluating a traversal algorithm for ULC.

https://dl.acm.org/doi/10.1145/3018882.3020004
Learn you Galois Fields for Great Good

https://xorvoid.com/galois_fields_for_great_good_00.html
🔥5
Functional abstract interpretation

Sebastian Graf

In this thesis, I present two results of my work to improve GHC: the first is a static analysis for pattern-match coverage checking that is both more efficient and more precise than the state of the art; the second is a design pattern for deriving static higher-order analyses and dynamic semantics alike from a generic denotational interpreter, in order to share intuition and correctness proofs. This design pattern generalises Cousot’s seminal work on trace-based abstract interpretation to higher-order analyses such as GHC’s Demand Analysis.

https://simon.peytonjones.org/abs-den/
🔥2💩1
A new thing from the database guys from Technical University of Munich. For reference: Thomas Neumann is probably the greatest DB researcher alive. Their Umbra DB is currently top-1 at ClickBench, and its commercial counterpart, CedarDB, takes the 2nd place.

AnyBlox: A Framework for Self-Decoding Datasets
M. Gienieczko, M. Kuschewski, T. Neumann, V. Leis, J. Giceva

https://gienieczko.com/anyblox-paper
Forwarded from Alexander Kuklev
@fizruk31337, @clayrat, возможно я добил вопрос симплициальных типов и направленных алгебраических теорий: https://akuklev.github.io/reedy.pdf

Наконец-то десять лет работы сложились в целостную картину.
🔥6
On the Theoretical Limitations of Embedding-Based Retrieval
O. Weller, M. Boratko, I. Naim, J. Lee

https://arxiv.org/abs/2508.21038
2025/09/15 08:10:18
Back to Top
HTML Embed Code: