Since CUE is written in Go, you can output a .so that is then used like your C based desire, if I understand you correctly