Depending on your language of choice, it might be worth looking at seeing if it compiles into web assembly.
If it does, and if the binary sizes aren't too large (both can be a problem for some languages) then you might be able to create your frontend using wasm, using your preferred backend language.