TeX is written in WEB, a "literate programming" language designed by Knuth, which a pre-processor turns into Pascal. There should be nothing inherently slow about Pascal. In practice, it's compiled using "web2c" which does generate C code.
No comments yet.