I understand the SECD is expensive (in terms of heap usage) for currying, and the ZINC is supposed to solve this problem.
Is there a minimal/toy ZINC VM for a toy language somewhere? I’m looking for something that is just the VM part (no lexer, parser, type checker, codegen), and perferably < 1k LOC to read.
If you are comfortable with C, you can also take a look at the original Caml Light implementation (which should be rather close to what is described in the ZINC paper). The interpreter is < 1k LOC.