Go, rust, zig would be my choices in that order.
> most of their time waiting for the models response and tool calling rather than running their code.
You’d think that! Yet claude-code spends a very surprising amount of CPU just doing text layout work and other mysterious things, likely due to their decision to use React to build a TUI for some reason.
Those three languages would be very difficult for creating a system with the level of extensibility that Pi has.