Live data from Hacker News

LibreOffice running natively in the browser via WebAssembly

lab.allotropia.de

41–50 of 216 posts

Re: LibreOffice running natively in the browser via WebAssembly

#41

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/

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

#43

I started experimenting with Go-WASM recently and learnt that writing non-blocking code is very crucial, Timer even inside a Goroutine blocks & crashes WASM. Leading me to use unreliable JS timers(albeit mitigating it with a worker) and performing only non-blocking compute on WASM. Is this just a consequence of using Go for WASM(i.e. lack of WASM threads), What are people who built LibreOffice in WASM or Doom3 using?…

No post body was provided.

Re: LibreOffice running natively in the browser via WebAssembly

#47

Wait... Isn't LO a Java application? Have we created a new way to shove Java into a browser, but this time with the JVM itself inside the browser ?

It's mostly written in C++, and the bulk of the effort which made this possible should probably be credited to Qt: https://wiki.qt.io/Qt_for_WebAssembly

Re: LibreOffice running natively in the browser via WebAssembly

#48
post #46

Wait... Isn't LO a Java application? Have we created a new way to shove Java into a browser, but this time with the JVM itself inside the browser ?

I think you're confusing it with OpenOffice. IIRC LibreOffice is mostly C/C++.

LibreOffice is almost entirely C++, except that there are some extensions written in Java (and some written in python)

I say almost, because we still have some QA code used for unit tests that is Java.

Re: LibreOffice running natively in the browser via WebAssembly

#49
post #38

In Safari on iPadOS and MacOS, after a minute or two of downloading, I got the following message: Application exit (TypeError: Cannot convert "undefined" to int) The page did finish loading and compiling in Chrome on my Mac. Menus, text input, etc. seemed to work but were sluggish, just as the standalone LibreOffice was for me on my ten-year-old MacBook Pro. (It works fine on my M1 Mac mini.)

Same here. Safari, Intel Mac Pro, Monterey 12.2 .
Post reply on HN