MeTTa-Morph is a macro-based translator from MeTTa to (Chicken) Scheme, designed to significantly accelerate execution of a practical subset of the MeTTa language. Rather than supporting full language coverage, it focuses on compiling a performant core of MeTTa constructs into an efficient Scheme library, achieving speedups on the order of 100x.

MeTTa-Morph transforms MeTTa code into Scheme using macros corresponding to core MeTTa constructs, including function definitions, variable binding, query execution, pattern matching, type-related constructs, and space operations such as collapse and superposition. The generated Scheme code can be compiled to C and ultimately to native machine code.

Continue Reading