Live data from Hacker News

LibreOffice running natively in the browser via WebAssembly

lab.allotropia.de

191–200 of 216 posts

Re: LibreOffice running natively in the browser via WebAssembly

#191

I remember when LibreOffice was called Star Office and would run like molasses on a Celeron 300A OC to 450mhz machine. The office suite would take up most of the ram and eventually crash due to system resource exhaustion. Now we can run the whole thing in a browser like it's Minesweeper. Wow.

I wonder if I can run Office 2000 on my current machine. Would require so much less RAM and CPU.

Re: LibreOffice running natively in the browser via WebAssembly

#192
post #178

Earlier quoted context omitted.

You may want to file a bug on Go - I believe goroutines should work, including swapping between them. The code is emitted in a form that allows that (switch-in-a-loop pattern). Another thing you can try is TinyGo, whch uses Asyncify (a general wasm transformation to allow blocking) for goroutines, https://twitter.com/TinyGolang/status/1461364896197578759 Doom3 uses Asyncify in some parts of the event loop, for simila…

You're right, I think I should file a bug. The Go library I need(ebiten) isn't compatible with TinyGo, I did try it for the reason you mentioned and to reduce size. > Doom3 uses Asyncify in some parts of the event loop, for similar reasons (blocking code). I'm not sure if LibreOffice does as well, but it might. Thanks! That's what I wanted to know, So it's certainly possible to write asynchronous code using C++ and R…

Yes, async code in wasm is definitely possible. See for example here:

https://web.dev/asyncify/

It does have some overhead atm, which a new spec (stack switching) will remove eventually.

Re: LibreOffice running natively in the browser via WebAssembly

#196
post #189
post #80

Earlier quoted context omitted.

You don't need a JVM to run Java code in the browser since there's a VM already. There's TeaVM which compiles Java bytecode to WASM.

It's true, but it is a Java subset - not a complete Java SE.

True, but most of the time you don't need a full Java SE stack. Android still has only a Java subset and that hasn't stopped people from writing apps for it.

Re: LibreOffice running natively in the browser via WebAssembly

#199
post #67

What the hell. This feels basically native?! I had no idea WebAssembly was this far developed. This feels like electron in reverse, and GOOD.

What's your environment? It feels like incredibly poor performance for me (Firefox on macOS)

Smooth for me in Firefox on linux too. Maybe check about:support to see if there's any graphics driver issue?

Re: LibreOffice running natively in the browser via WebAssembly

#200
post #78

Earlier quoted context omitted.

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.

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.

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?
Post reply on HN