implementing runtime data structures via llvm cffi