MeTTa-Morph
Responsible: Patrick Hammer, Peter Isaev
MeTTa-Morph is a macro-based translator from MeTTa to Chicken Scheme, achieving ~100x speedups. The generated Scheme code can be compiled to C and native machine code, loaded into the HE runtime as ordinary MeTTa functions with native-level performance.
</> Example Implementation
MeTTa to Scheme compilation
MeTTa-Morph achieves dramatic speedups by compiling MeTTa through Scheme to native machine code.
; MeTTa-Morph translates to Chicken Scheme
; Then compiles to C -> native code
(= (sum-list ()) 0)
(= (sum-list ($h . $t))
(+ $h (sum-list $t)))
!(sum-list (1 2 3 4 5)) ; => 15
; ~100x speedup via native compilation