i find LLMs generally play better with compiled languages actually, they do great with rust. you can think of it almost as analogous to a harness.
The more structure the better. Provides strong guardrails.
I’ve had great experience with Elixir and the new compiler combined with Ash.
They play better with statically typed languages, not compiled ones in particular. Rust's typing is stricter than Typescript though so that probably helps.