Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by taeric on Monday April 30, 2018 @11:52PM
(#16964472)
I've always been bemused by the major focus that we need a brand new implementation of the algorithms so that they can take advantage of modern computers. Ignoring just how bloody well it already takes advantage of faster processing power.
(I get that there are some good arguments for a more developer friendly extension language.)
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by stev0lution on Tuesday May 01, 2018 @08:22AM
(#16966393)
I think Latexbase does something like this (they claim it works offline too, using service workers). They claim to be using Emscripten/LLVM but it doesn't seem like they use wasm yet (probably because they didn't consider it a viable option back in 2016 https://latexbase.com/p/b0a174a5-09b3-4598-9686-3a73be2dc8e5). And while it's not open source I still think it's a really cool proof of concept..
I wonder how hard it would be to just compile TeX to WebASM or something.... TeX is _ridiculously_ fast on a modern PC, hundreds of pages per second. All the libraries/macros might be problem, but I bet you could prepare a useful-but-minimal set that would fit in a MB or two gzipped.