Hacker News new | ask | show | jobs
by yannis 462 days ago
>in LaTeX I could only accomplish after several days by cargo-culting indecipherable gibberish from years-old forum posts To learn basic use of LaTeX, takes an afternoon. To understand the language fully takes "effortful learning" like any other programming language.
1 comments

I believe the difference is that Typst is effectively a scripting language, not much different than many popular ones like Javascript and Python. If you already known the basics of some programming languages this allows you transfer them very easily and start writing your own scripts very quickly. You also don't need to fully understand the language to do this, the basics will mostly be enough.

In comparison Latex has a very particular way of doing computations that you will have to learn from scratch, and even then it won't be as easy or intuitive. The fact that Latex relies so much on packages for many things also means that you will have to learn their details and intricacies when trying to do interoperate with them, which makes this even more complex.

I'm ignorant of Typst. But you're missing an important problem with Latex. Packages are really fragile. The most important property of a programming language is compositionality, and Latex has so little of that that I'm generally afraid of picking up packages because I've wasted so many hours trying to get them to play nice.

I still use Latex because of the output quality and the sunk cost..but we can clearly do better