Skip to content

jasonhemann/tfp-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TFP 2023 Paper Directory

Contains both re-implementations of some logical and extra-logical operators for a microKanren, as well as experimental results bench-marking those variations on some small programs.

Implementation

We structure the re-implementations through several files.

File & Purpose
Underlying implementation + disj/conj re-implementations
Minimal correctness tests for re-implementations
Interface macros, to facilitate comparisons w/miniKanren programs
Demonstrate potential cost of null? checks in base case

These files are tested against Racket 8.7.

Paper

Purpose
tex source
bib source
Makefile

In order to build the paper, you should have pygments, xelatex, biber installed and available on path. You should then be able to type make, as the default target is the paper.

Examples

The examples sub-directory describes some of the work testing examples suggested to see a big performance wrt left associating conjuction. This was a more complicated story than had seemed at first, where rather than uniformly reordering association, instead the improvement was from locally adjusting that search strategy by use of higher-order goals.

With the logo example, we also saw very little improvement from uniformly re-associating conjunctions.

With the quines example, we did see some reasonable improvements over the baseline. However this was using Nada Amin's unification-only quines interpreter, which means deBruijn indices for variables. So this too has some confounding factors. Outstanding work: completely integrate disequality constraints into the microKanren versions, so that at least we do not need deBruijn indices, and then truly isolate the performance impact on quines.

These tests in their current state are:

File & Purpose
Incipient program for quines interp w/o disequality
Incipient program for disequality based quines interp
Incipient program to reify a constraint store
useful to ensure correct output