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/
https://www.cs.cmu.edu/~rwh/courses/atpl/pdfs/
👀4🔥2❤1👌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
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
arXiv.org
Scalable Pattern Matching in Computation Graphs
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...
👍4
PONV Daily
https://fixupx.com/PLDI/status/1937100088960246054
1. Destabilizing Iris (https://doi.org/10.1145/3729284)
2. Tree Borrows (https://doi.org/10.1145/3735592)
3. Principal Type Inference under a Prefix: A Fresh Look at Static Overloading (https://doi.org/10.1145/3729308)
4. Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic (https://doi.org/10.1145/3729246)
5. Practical Type Inference with Levels (https://doi.org/10.1145/3729338)
6. AWDIT: An Optimal Weak Database Isolation Tester (https://doi.org/10.1145/3742465)
2. Tree Borrows (https://doi.org/10.1145/3735592)
3. Principal Type Inference under a Prefix: A Fresh Look at Static Overloading (https://doi.org/10.1145/3729308)
4. Verifying General-Purpose RCU for Reclamation in Relaxed Memory Separation Logic (https://doi.org/10.1145/3729246)
5. Practical Type Inference with Levels (https://doi.org/10.1145/3729338)
6. AWDIT: An Optimal Weak Database Isolation Tester (https://doi.org/10.1145/3742465)
Proceedings of the ACM on Programming Languages
Destabilizing Iris | Proceedings of the ACM on Programming Languages
The separation logic framework Iris has been built on the premise that all assertions
are stable, meaning they unconditionally enjoy the famous frame rule. This gives Iris—and the numerous program logics that build on it—very modular reasoning
...
are stable, meaning they unconditionally enjoy the famous frame rule. This gives Iris—and the numerous program logics that build on it—very modular reasoning
...
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
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
ACM Conferences
Compiling untyped lambda calculus to lower-level code by game semantics and partial evaluation (invited paper) | Proceedings of…
🔥5
Fail Faster: Staging and Fast Randomness for High-Performance PBT
property-based testing - ✅
staging - ✅
https://arxiv.org/abs/2503.19797
video: https://www.youtube.com/watch?v=ux49IvxKQR8
property-based testing - ✅
staging - ✅
https://arxiv.org/abs/2503.19797
video: https://www.youtube.com/watch?v=ux49IvxKQR8
arXiv.org
Fail Faster: Staging and Fast Randomness for High-Performance PBT
Property-based testing (PBT) relies on generators for random test cases, often constructed using embedded domain specific languages, which provide expressive combinators for building and composing...
👍2
🔥1
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/
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/
Simon Peyton Jones
Functional abstract interpretation
Sebastian Graf PhD thesis, Karlsruhe University, Dec 2024. View PDF
🔥2💩1
Dual-Numbers Reverse AD for Functional Array Languages
T. Smelding, M. Konarski, S. PJ, A. Fitzgibbon
https://arxiv.org/abs/2507.12640
T. Smelding, M. Konarski, S. PJ, A. Fitzgibbon
https://arxiv.org/abs/2507.12640
arXiv.org
Dual-Numbers Reverse AD for Functional Array Languages
The standard dual-numbers construction works well for forward-mode automatic differentiation (AD) and is attractive due to its simplicity; recently, it also has been adapted to reverse-mode AD,...
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
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
O. Weller, M. Boratko, I. Naim, J. Lee
https://arxiv.org/abs/2508.21038