News for hackers. Stuff that matters.
Re:LibreOffice running natively in the browser via WebAssembly by syrusakbary on Tuesday February 15, 2022 @10:27PM (#30356032)
Note that it will download around ~300Mb of data directly to your browser, so it might take a bit to load from slow connections.

Here's the related video from FOSDEM: https://fosdem.org/2022/schedule/event/lotech_lowa/

Re:LibreOffice running natively in the browser via WebAssembly by deathanatos on Wednesday February 16, 2022 @02:10AM (#30357155)
300 MiB. & … "a bit" — it takes nearly 20 seconds on "Gigabit" fiber. (312 MiB in 19.22s, or 136 Mbps.)

Runs shockingly smoothly once it starts, though.

Re:LibreOffice running natively in the browser via WebAssembly by comboy on Wednesday February 16, 2022 @04:26AM (#30357913)
Progress bar would be nice, without these comments I would have no idea whether to wait or not thinking that maybe it got stuck in a loop downloading the same thing over and over again or something.
Re:LibreOffice running natively in the browser via WebAssembly by a9h74j on Wednesday February 16, 2022 @02:02PM (#30364190)
Haven't explored higher-up pages. Eventually, would be nice if there were a way to download everything to one directory and run offline. Is this only a demo for now?
Re:LibreOffice running natively in the browser via WebAssembly by cyanydeez on Wednesday February 16, 2022 @08:37AM (#30359730)
when i built my webapp with tons of packages, i tried to figure out if we could hook into the browser, but theres really no way that i found, my solutioj was to just make webpack split the bundles into chunks then have them announce themselves and a loading screen would tally
Re:LibreOffice running natively in the browser via WebAssembly by sgjohnson on Wednesday February 16, 2022 @05:13AM (#30358194)
> Runs shockingly smoothly once it starts, though.

On what hardware? I've got a 2019 MacBook Pro with i9 and 32 GB of RAM, and there's a noticable delay (I'd guess 200~400-ish miliseconds) when clicking any elements with Firefox or Chrome.

Re:LibreOffice running natively in the browser via WebAssembly by y4mi on Wednesday February 16, 2022 @07:39AM (#30359256)
Works fine on my current work windows laptop, 16gb ram with some budget low electricity use processor.

Probably just apple not supporting anything web related as usual.

Re:LibreOffice running natively in the browser via WebAssembly by latexr on Wednesday February 16, 2022 @08:28AM (#30359657)
> Probably just apple not supporting anything web related as usual.

The comment you’re replying to specifically mentioned Firefox and Chrome, no mention of Safari.

Re:LibreOffice running natively in the browser via WebAssembly by kroltan on Wednesday February 16, 2022 @09:08AM (#30360103)
Same on a very beefy desktop Windows system.
Re:LibreOffice running natively in the browser via WebAssembly by mynameismon on Wednesday February 16, 2022 @04:01AM (#30357757)
Funny, it took me approximately triple the time on a 60 Mbps connection. Makes me wonder if its throttled from source due to a network overload.
Re:LibreOffice running natively in the browser via WebAssembly by LeanderK on Wednesday February 16, 2022 @05:08AM (#30358161)
yeah, 300mb is not nothing but also not that much. Using full speed it shouldn't take that long.
Re:LibreOffice running natively in the browser via WebAssembly by IceHegel on Wednesday February 16, 2022 @11:58AM (#30362420)
Running on an M1 Max and getting 5-10 fps. Not what i'd call smooth.
Re:LibreOffice running natively in the browser via WebAssembly by jabiko on Wednesday February 16, 2022 @06:09AM (#30358552)
It runs smoothly for me when zoomed out but when you zoom in on a page it starts to lag. Nevertheless its quite amazing to see LibreOffice running in the browser.
Re:LibreOffice running natively in the browser via WebAssembly by pmoriarty on Wednesday February 16, 2022 @10:48AM (#30361505)
"its quite amazing to see LibreOffice running in the browser"

You should see jslinux:

https://bellard.org/jslinux/

Re:LibreOffice running natively in the browser via WebAssembly by RReverser on Thursday February 17, 2022 @05:26PM (#30379530)
The sad part is, it could be cut very easily cut down to ~60MB with basic optimization & compression (heck, even gzip/brotli compression alone would go a long way): https://twitter.com/RReverser/status/1494435774003093515

Impressive feat, but I'm worried this small detail ruins the first impression for way too many.

Re:LibreOffice running natively in the browser via WebAssembly by syrusakbary on Thursday February 17, 2022 @10:29PM (#30381831)
Damn, you are 100% on point. I assumed it already had the optimizations applied and it was big just because of the nature of the app.

Once they get their server bill perhaps they will reconsider optimizing it!

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.
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.

https://github.com/webtorrent/webtorrent

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/

Re:LibreOffice running natively in the browser via WebAssembly by vanviegen on Wednesday February 16, 2022 @06:24AM (#30358654)
It took about 20s for me, with the fans spinning up around halfway through. Once loaded it feels fairly usable, considering...
Re:LibreOffice running natively in the browser via WebAssembly by ceasesurthinko on Tuesday February 15, 2022 @11:49PM (#30356480)
And it's throttled too, took me ~8 min on a 400mbps connection to download those 300mb of data.

And it doesn't cache the download either, so refreshing the page forces you to download the entire thing again.

Re:LibreOffice running natively in the browser via WebAssembly by jack_pp on Tuesday February 15, 2022 @11:58PM (#30356518)
took me < 35s on a 300mbps connection from europe.
Re:LibreOffice running natively in the browser via WebAssembly by kingcharles on Tuesday February 15, 2022 @10:46PM (#30356135)
Appreciate the warning for those of us on non-wired connections!
Re:LibreOffice running natively in the browser via WebAssembly by rtpg on Tuesday February 15, 2022 @11:47PM (#30356465)
Might be worth changing the link from the direct link to this video, given that 300 megs question.
Re:LibreOffice running natively in the browser via WebAssembly by lanyusea on Wednesday February 16, 2022 @03:10AM (#30357474)
took me 2 hours to load... LOL