What language is used to write the batteries
C/C++, in large part
These days it's a whole lot of Rust.
These days it’s still a whole lot of Fortran, with some Rust sprinkled on top. (:
Which since Fortran 2003, or even Fortran 95, has gotten rather nice to use.
And below that, FORTRAN :)