Re:LibreOffice running natively in the browser via WebAssembly
by lokedhs on Tuesday February 15, 2022 @11:15PM
(#30356284)
Even with a fast connection, it takes a very long time. I'm guessing the site is overloaded as the peak was a few tens of Mb/s, and generally much slower.
[ Parent
| on HN ]
Re:LibreOffice running natively in the browser via WebAssembly
by Epa095 on Wednesday February 16, 2022 @04:12AM
(#30357831)
Makes me wonder if it is possible/usefull to make the download a two step process, first download a small wasm bittorrent client, then use it to download (and share) the 300mb file.
Re:LibreOffice running natively in the browser via WebAssembly
by hobo_mark on Wednesday February 16, 2022 @05:20AM
(#30358249)
Webtorrent already exists, and does not require wasm.
Re:LibreOffice running natively in the browser via WebAssembly
by LtdJorge on Wednesday February 16, 2022 @04:27PM
(#30365937)
Could WebRTC be used directly here?
Re:LibreOffice running natively in the browser via WebAssembly
by RReverser on Thursday February 17, 2022 @05:29PM
(#30379559)
Or it could apply gzip/brotli + optionally wasm-opt and cut the size ~5-6x: https://twitter.com/RReverser/status/1494435774003093515
Re:LibreOffice running natively in the browser via WebAssembly
by mofosyne on Wednesday February 16, 2022 @06:47AM
(#30358812)
Does make you wonder what other optimization can be done. Maybe the whole thing doesn't have to be loaded in immediately.
Re:LibreOffice running natively in the browser via WebAssembly
by dspillett on Wednesday February 16, 2022 @07:22AM
(#30359107)
Such lazy loading might be difficult to retrofit into an application designed for an environment where it can load a lot from disk to RAM quickly and has never (IME) been well design in terms of such resource use.
Some lazy loading could probably be done relatively easily where OO does on-demand load libraries, but that would significantly resource apparent in-use performance if truly done live so you'd want to background load the optional parts once the immediately needed ones are done.
I'm guessing that this is a straight compile to WASM with the minimal changes needed to things that would otherwise break completely in the different environment.
Re:LibreOffice running natively in the browser via WebAssembly
by GeorgeHahn on Wednesday February 16, 2022 @09:12AM
(#30360159)
Autodesk has shared some information about how they solved this when building AutoCAD Web, which is a wasm app derived from their desktop codebase.
Video: https://www.infoq.com/presentations/autocad-webassembly/