5 ms·
The first person to port LaTeX to WASM will be hailed as the messiah.
by _pmf_ 10y ago
The first person to port LaTeX to WASM will be hailed as the messiah.
- Freak_NL 10y agoIncluding the complete set of packages provided by texlive-full of course. :)
- noir_lord 10y ago"A Script on this page is causing it to run slow". Check network inspector tab texlive-full.js - 2.4Gb.
- JetSpiegel 10y agoStill less than some SPA.
- jsrjenkins 10y agoThe actually TeX binary is actually quite small - it is little more than a macro processor. The other packages could actually be loaded on demand and kept in a local cache.
- sevensor 10y agoBeyond a basic set of packages, this is what MikTex does, and why I prefer it to TexLive on Windows.
- WrtCdEvrydy 10y agoIs it a sign of dumb or a sign of genius not to know what WASM is?
- nerdponx 10y agoIt took me a minute, but probably Webassembly
- ygra 10y agoWebAssembly. The spiritual successor to asm.js for representing an easier compile target to browsers from C/C++. In any case, the sheer size of LaTeX will make such an endeavour probably not very useful (Download 1 GiB to render a document? Probably not.)
- WrtCdEvrydy 10y agoOh yeah, I've heard of Web assembly, just not the acronym.
- leephillips 10y agoAlmost all the mass in a TeX installation is in the fonts and documentation. If you just need a TeX engine (lualatex) and use system fonts, it's just a MB or two.
- dmlittle 10y agoIn asm.js (excluding fonts and documentation) it's about 3 MB https://github.com/manuels/texlive.js/blob/master/pdftex-worker.js https://github.com/manuels/texlive.js/blob/master/pdftex-wor...
- zeveb 10y ago> Download 1 GiB to render a document? Probably not. Any day now we'll be downloading 1 GB in order to read an article, so just give it time …
- jlebrech 10y agothey you can create a WASMey
- jsrjenkins 10y agoIt wouldn't take much to bring this to WASM: http://manuels.github.io/texlive.js/ http://manuels.github.io/texlive.js/ See previous story: https://news.ycombinator.com/item?id=5083361 https://news.ycombinator.com/item?id=5083361
- WrtCdEvrydy 10y agoRemember this only generates the LaTeX source. Overleaf does the heavy lifting for rendering.
- jimhefferon 10y agoWhat could you mean by that? texlive compiles.
- WrtCdEvrydy 10y agoThe original project only generates LaTeX, it doesn't compile or output.
- fudged71 10y agoHow does Overleaf compare to Sharelatex?
- WrtCdEvrydy 10y agoFrom what I've seen Sharelatex limits collaborators where as Overleaf limits the file size.
- marcosdumay 10y agoIsn't there a WASM backend to LLVM already? But, do you want to render a resulting .pdf? If it's going into a canvas, I can see it taking some serious work. (I think I did never write something as hard to parse for lay-people for explaining so simple an idea. There's something very wrong with the above comment.)
- detaro 10y agoJavascript-based PDF renderers exist already - Firefox uses one by default. https://github.com/mozilla/pdf.js/ https://github.com/mozilla/pdf.js/