4 ms·
Why is it necessary for TeX to keep all the libraries in source form on disk? Why not use compression, or package some pre-compiled form of the library code, o
by radarsat1 15y ago
Why is it necessary for TeX to keep all the libraries in source form on disk? Why not use compression, or package some pre-compiled form of the library code, or both?
- Avshalom 15y agoFrom what I understand everything above TeX is one giant text manipulation macro, which means it all has to be available to the programs in text form, you could compress it but that would me decompressing hundreds (thousands?) of files every time you compile.
- radarsat1 15y agoI understand, but I'm not convinced that the macros couldn't be somehow compiled down to some more compressed binary representation. Regardless, I still think keeping them on disk in a tarball or something would be more economical. Decompression can be quite fast if the right compressor is used.
- JadeNB 15y ago> I understand, but I'm not convinced that the macros couldn't be somehow compiled down to some more compressed binary representation. My understanding is that this is what .fmt files are for. I'm not sure where the line is drawn between what goes in a .fmt file and what is packaged as ordinary TeX code; I imagine that, like much else about TeX (which I love), it reflects the machine constraints with which Knuth was faced while writing it (in the late '70's and early '80's).