You can already use CUE within other programs when you need imperative, there is also the scripting layer where this is possible. There is also a plan to support a WASM runtime so you can have imperative subroutines in the scripting layer, written in any other language.