agda2scheme icon indicating copy to clipboard operation
agda2scheme copied to clipboard

Compile nat-like and int-like types to integers

Open jespercockx opened this issue 3 years ago • 0 comments

It would be cool if we could detect automatically types that are sufficiently like natural numbers or integers, and represent them using actual integers in the compiled code. As a stretch goal, we could even try to detect that certain functions are just addition/subtraction/... and compile them to more efficient versions as well.

jespercockx avatar May 12 '22 07:05 jespercockx