2 ms·
I once wrote a simple LaTeX renderer for a project, and boy was it hard. And all I had to do was support a subset of the whole thing! Even with clear biases tow
by saagarjha 7y ago
I once wrote a simple LaTeX renderer for a project, and boy was it hard. And all I had to do was support a subset of the whole thing! Even with clear biases towards left-to-right languages and just a subset of the LaTex, it was a nightmare: you'd do something, but realize that it wouldn't render correctly in a certain situation, rewrite the code to include more context or do another layout pass, and hit another issue somewhere else. It was slow work, complicated to debug, and utterly stymied many refactoring efforts. I can't even imagine how much work must go into doing this quickly and correctly for a language that's much more complex…