3 ms·
The C/C++ code add up to about 120,000 lines. Yes, it is massive and complex. Fortunately, the core engine is essentially self-contained. Almost all of the th
by pkgwilliams 9y ago
The C/C++ code add up to about 120,000 lines.
Yes, it is massive and complex.
Fortunately, the core engine is essentially self-contained. Almost all of the things that make the TeX frustrating come from the UX, or the difficulty of adding new capabilities that call for somewhat more modern C code. By compiling all of the C with a Rust wrapper, we get a single binary out in the end, plus the ability to extend the engine in ways that were just not feasible before.
Revamping the core engine code from C to Rust would be nice, because it could be cleaner and more comprehensible, but it actually doesn't buy you anything in terms of the UX.
Edit: also, I didn't realize this when I made the decision to fork XeTeX, but LuaTeX has shifted to a C implementation that is more or less detached from the original WEB code.