Live data from Hacker News

Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

tug.org

1–10 of 24 posts

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#2
> Benchmarks show that per-paragraph recompilation achieves O(1) latency, constant regardless of document size, whereas Typst’s [3] incremental compilation scales linearly (O(n)).

> The tradeoff is temporary inconsistency: pages the user is not viewing may lag until a background compile converges, [...]

There doesn't seem to be any reason functionality like this couldn't also be added to Typst though. In general the authors of this paper seem dismissive of typst, but Typst also fixes so many other things about LaTeX, like the awful syntax. Not sure why they act like that.

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#3
the purpose (from the paper):

> texlode, the browser-based book editor built on this architecture, is scheduled for public release in October 2026. It provides collaborative editing via conflict-free replicated data types (CRDTs), manu- script import from Word, proceedings management, cover design tools, and print-ready PDF output iden- tical to standard LuaLATEX. The accompanying con- ference talk demonstrates the editor in action. For details: texlode.com.

and also:

> (section) 6 Comparison to Typst

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#4

> Benchmarks show that per-paragraph recompilation achieves O(1) latency, constant regardless of document size, whereas Typst’s [3] incremental compilation scales linearly (O(n)). > The tradeoff is temporary inconsistency: pages the user is not viewing may lag until a background compile converges, [...] There doesn't seem to be any reason functionality like this couldn't also be added to Typst though. In general the…

> Not sure why they act like that.

They seem to launch paid competitor.

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#8
Typst taking 300ms to do 300 pages cannot be seen as 4FPS - you don't treat the sum of 300 pages as single frame, LOL. And laying out a single paragraph is not 1ms for a whole document either. The paper is otherwise pretty good, but these rhetorics are probably not necessary, IMO.

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#9

Typst taking 300ms to do 300 pages cannot be seen as 4FPS - you don't treat the sum of 300 pages as single frame, LOL. And laying out a single paragraph is not 1ms for a whole document either. The paper is otherwise pretty good, but these rhetorics are probably not necessary, IMO.

It is no rhetoric. It is the time spent when working interactively on a thesis project with one software vs the other.

Re: Real-Time LuaTeX: Recompiling Large Documents in 1ms [pdf]

#10
This is great but I feel like the potential is underused.

I know its a lot of work but I think we all could desperately use an interactive LaTeX notebook instead of limiting it to only the PDF backend and this work helps a lot with achieving that endeavour. Though it'll be limited to LuaTeX, it'll still be quite something.

Post reply on HN