3 ms·
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?
by yjftsjthsd-h 5y ago
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?
- tempay 5y agoI think you're confusing it with OpenOffice. IIRC LibreOffice is mostly C/C++.
- grandinj 5y agoLibreOffice 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.
- dtech 5y agoLibreOffice is a fork of OpenOffice, which has been dead for nearly a decade. I doubt they rewrote all of the core functionality.
- _ea1k 5y agoOpenOffice wasn't written in Java either. They did have a few small Java components (for example, HSQL) but it it was predominantly C++.
- wahern 5y agoIt'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 https://wiki.qt.io/Qt_for_WebAssembly
- thorstenb 5y agoQt 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 native browser gui.
- jcelerier 5y agoSide note: is there a way to get that Qt version of libreoffice somewhere on the desktop ? It's one of the only non-Qt apps I sometimes use :)
- llornkcor 5y ago> 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 https://doc.qt.io/qt-6/qfiledialog.html#getOpenFileContent
- llornkcor 5y agoAnswered my own question by reading the README.wasm.md "We're using Qt 5.15.2 with Emscripten 2.0.31. "
- bzzzt 5y agoYou 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.