Live data from Hacker News

LibreOffice running natively in the browser via WebAssembly

lab.allotropia.de

201–210 of 216 posts

Re: LibreOffice running natively in the browser via WebAssembly

#201

Earlier quoted context omitted.

Is Electron the baseline to compare to these days, instead of an actual native app?

I meant Electron brought webapps to the Desktop. Now Web Assembly seems to bring native apps to the browser.

Next step is bring native apps to the desktop. Then we'll be cookin'

Re: LibreOffice running natively in the browser via WebAssembly

#202
post #47

Earlier quoted context omitted.

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

Qt clearly deserves the credit for having a WASM runtime that gets us a working GUI toolkit. But this was still a gigaton of work to pull off inside LibreOffice (starting many years ago, actually natively using Qt as one of the GUI toolkits in the code, over to porting the build system, how the mainloop runs etc etc). Also note that using Qt here is mostly a shortcut to get a demo out, longer-term we'd want to use na…

> Qt clearly deserves the credit for having a WASM runtime that gets us a working GUI toolkit.

You're welcome. :) What version of Qt did you use for this demo? Also, for local system file access dialog on Qt wasm, you can use https://doc.qt.io/qt-6/qfiledialog.html#getOpenFileContent

Re: LibreOffice running natively in the browser via WebAssembly

#203

Earlier quoted context omitted.

Qt clearly deserves the credit for having a WASM runtime that gets us a working GUI toolkit. But this was still a gigaton of work to pull off inside LibreOffice (starting many years ago, actually natively using Qt as one of the GUI toolkits in the code, over to porting the build system, how the mainloop runs etc etc). Also note that using Qt here is mostly a shortcut to get a demo out, longer-term we'd want to use na…

> Qt clearly deserves the credit for having a WASM runtime that gets us a working GUI toolkit. You're welcome. :) What version of Qt did you use for this demo? Also, for local system file access dialog on Qt wasm, you can use https://doc.qt.io/qt-6/qfiledialog.html#getOpenFileContent

Answered my own question by reading the README.wasm.md "We're using Qt 5.15.2 with Emscripten 2.0.31. "

Re: LibreOffice running natively in the browser via WebAssembly

#205
post #28

Earlier quoted context omitted.

No. I wouldn't want to inflict that upon anyone. I'm more bummed that I let the domains expire, especially the short one which was o-w.com.

> I'm more bummed that I let the domains expire, especially the short one which was o-w.com. It's ironic that you could've made more money than you would have gotten from VCs with that domain name. You probably didn't know that back then.

Ha, no. 3 letter dotcoms were still worthless in 1998, I don't think they were quite all used up. Especially ones with a hyphen in them. Going back to 1994 I owned a whole bunch of domains that later got sold for 7 digits. All dotcoms were free in 1994. It was later they started charging for them, so I let them all expire.

I'd have been a millionaire many times over if I could have read the future. All those Bitcoins I mined in early 2010 and lost all the keys/wallet.

Re: LibreOffice running natively in the browser via WebAssembly

#206
post #75

Earlier quoted context omitted.

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.

Webtorrent already exists, and does not require wasm. https://github.com/webtorrent/webtorrent

Could WebRTC be used directly here?

Re: LibreOffice running natively in the browser via WebAssembly

#207

Now make firefox run inside my edge browser using wasm

You joke but imagine every website bundling its preferred browser. Web developers can just bundle Chrome 123 with their website in lieu of testing in other browsers. Every website will be a 50 MB download. Poly fill on steroids.

Re: LibreOffice running natively in the browser via WebAssembly

#208
post #28

Earlier quoted context omitted.

> I'm more bummed that I let the domains expire, especially the short one which was o-w.com. It's ironic that you could've made more money than you would have gotten from VCs with that domain name. You probably didn't know that back then.

Ha, no. 3 letter dotcoms were still worthless in 1998, I don't think they were quite all used up. Especially ones with a hyphen in them. Going back to 1994 I owned a whole bunch of domains that later got sold for 7 digits. All dotcoms were free in 1994. It was later they started charging for them, so I let them all expire. I'd have been a millionaire many times over if I could have read the future. All those Bitcoins…

Sure thing. I meant you could have sold it later, in the 2000s. I remember finding many 3-letter .com domains in 1996/97 but didn't want to shell out ~$100/year or whatever netsol was asking for those days.

Re: LibreOffice running natively in the browser via WebAssembly

#209
post #66
post #35

Earlier quoted context omitted.

Indeed, people have got used to running their stuff on other people's machines.

TBH, "In a browser" (like here) is pretty different from "on the Internet" (like google docs). Except that if someone was to make slight changes to the hosted application, it could leak everything.

In other words, a distinction without a difference.

Re: LibreOffice running natively in the browser via WebAssembly

#210

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.

... and it's as slow as on the Celeron! I guess it doesn't crash my entire machine, but that's an implementation detail which we'll surely workaround next.

Yeah, just because hardware got incredibly fast doesn't mean slow software is fast now, it just expands tothr available circumstances again
Post reply on HN