Lua is rather tiny. JavaScript and the executor for C/C++ (as the compiler compiles to WASM) are mostly Apple frameworks (JavaScript Core). Now Python and Clang are fairly big, but not usually 650mb big, I’d say 200mb is more likely. Now if TeX was included, totally agree, but as sibling comment indicated, it’s not.
> clang/clang++ compiles your C/C++ files to webAssembly with wasi included. Executee the resulting files using 'wasm command'. You can also compile to webAssembly elsewhere and bring the files to your iPad.
I'm actually surprised it's only about 650 MB. TeX (Live) alone is huge.