codegen the math library. that felt gross