libclosure is a C library for creating new functions at runtime, using GNU Lightning.