Live data from Hacker News

The price of a messy codebase: No LaTeX on the iPad

vallettaventures.tumblr.com

61–70 of 247 posts

Re: The price of a messy codebase: No LaTeX on the iPad

#61

I thought Latex was dead? It's a system I see no one ever use. With right, as it's as horrible as a doc system can get.

Can anyone explain the downvotes? Thanks.

Go and find some download stats for some LaTeX distributions. LaTeX is still used in academia everyday, and I conject that it is used to generate docs in business too.

LaTeX is about as far from dead as the desktop computer.

Re: The price of a messy codebase: No LaTeX on the iPad

#62
post #49

In this paper[1], they say that much of the latex running time is eaten up in the startup and shutdown of the program and the actual typesetting time is in the microseconds. A long-running process (daemon) is therefore a much more efficient way to run (La)TeX. [1] www.tug.org/TUGboat/tb27-0/fine.pdf """ On my current 800 MHz PC, the command $ tex story \\end takes about 0.137 seconds, while $ tex \\end takes 0.133 se…

It strikes me that TeX ought to take a page from Lisp interpreters and dump core after loading all the standard configuration files, so that future runs won't need to waste so much time on initialization.

It does, that's how LaTeX starts up and why you have to run it as latex instead of tex. Ditto texinfo, and probably ConTeXt. For a variety of reasons the TeX engine still has to reload a lot of stuff because it might possibly have changed, which is a suboptimal situation; but there is a concept of a "dump" state that has most of the kernel initialized. I suspect people don't care enough to work around it, and the people most likely to do the work (TeX kernel hackers) are also the people who are most likely to be inconvenienced by it not noticing the tweaking they're doing.

Which is not to say it's not a good idea here.

Re: The price of a messy codebase: No LaTeX on the iPad

#63

Earlier quoted context omitted.

Yes I noticed that in the comments before I posted which is why I was careful to specifically say "The executable described here is 4GB" so as to refer to whatever it is he was trying to work with. I suppose whether all of the 4GB is needed for what he wanted, whether it could easily be taken apart, or could now be remade in a much smaller package, are all valid questions.

4G is a bit over the top. My install (TeXLive 2010 on OpenBSD) is ~2G, and that includes gobs of rarely-used packages and documentation. Really, borrowing MikTeX's install-on-first-use for packages and making documentation optional should result in a much more reasonable size. If you want to get fancy, teach LaTeX how to decompress packages on demand.

Here comes the problem: Apple requires it to be a single binary, distributed once. You can't install packages the LaTeX ways should you want to, so you have to bundle most (if not all) packages into the single binary.

Re: The price of a messy codebase: No LaTeX on the iPad

#64
post #53

I'd rather go with a rewrite that also redesigns the typesetting language. It feels like C++ of typesetting to me, although of course maybe I'm just not familiar enough with the language to see its key concepts clearly. Maybe the Lout system will pick enough traction one day.

It's a quirky mess, but none of the others, to my knowledge (and I've used most of them, which certainly includes Lout) do nearly as good a job typesetting. Lout does a bunch of things subtly wrong that I can't remember right now but that are very visually distinct, and troff is so far down that road I can recognize troff typeset documents at six feet from a glance.

Lout's equation formatting is especially primitive as I recall, and that is a huge amount of work to get TeX-like quality for. I am unaware of any system that typesets mathematics as nicely as TeX does.

Re: The price of a messy codebase: No LaTeX on the iPad

#67

The price of a LaTeX rewrite would be even higher: incompatibility. If one tries to rewrite TeX, the problem gets much much worse, since TeX is, for all intents and purposes, bug-free. A new implementation will certainly not be. Joel Spolsky said it very well http://www.joelonsoftware.com/articles/fog0000000069.html I disagree that the current situation is LaTeX developers' fault. TeX and LaTeX are complex pieces of…

>This requires full access to the OS utilities, and naturally LaTeX environment does that. If anything, this is Apple's fault.

I'm interested to see how this could be justified, instead of "hit'n'run" style.

Noting here that other than the source problems, performance was a considerable issue.

Re: The price of a messy codebase: No LaTeX on the iPad

#69

I think the salient question here is why would you want to work with LaTeX on a tablet?

Um, for about any other reason that you would want to use document editing software on a tablet? For instance, I use LibreOffice and its ilk only for the most throwaway documents (and open others' files). Having an iPad means I don't need to lug my laptop around to work on my thesis (I run Emacs on a VPS via SSH to do it, and while personally I don't particularly care about the aesthetics, I'd say the use case is certainly there).

Re: The price of a messy codebase: No LaTeX on the iPad

#70

"iPad is the most beautiful platform out there" Sorry, but I fail to understand, why any serious TeX-Head would say that. The platform is crippled and your problem shows it. You are ranting in the wrong direction. -jsl

I don't see any reason why LaTeX should be shelling out to bash. And having a mish-mash of loads of different languages creates unmaintainable bloatware.
Post reply on HN