55 karma · joined Feb 16, 2022 (4y ago) · 16 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
One of the ZetaOffice (and LibreOffice) hackers here - and I have to disagree.
For something like an office suite, the canvas is literally the only way to achieve the document layout fidelity that users expect. The DOM does not provide enough knobs & dials to get all of MSO (and OOo) bug-for-bug layout compatibility onto the screen (and it's not even close). Don't take my word for it, see e.g. here: https://news.ycombinator.com/item?id=42100660 (and that only deals with the text layout parts).
comment 2y ago · link · parent
comment 2y ago · link · parent
Regarding sandboxing - everything WebAssembly is heavily sandboxed already, and requires cross-origin isolation in the browser, so we can use SharedArrayBuffers.
So that's likely no worse than running LibreOffice containerized on a server.
comment 2y ago · link · parent
(but it says, between the lines, mostly stale I guess)
As an aside: one of the very first demos of LibreOffice in a browser (from the Collabora people) was using the broadway backend. But they've moved on, using their own tiled rendering server backend, plus custom, javascript gui on the client.
comment 2y ago · link · parent
For an even more obvious demo of that, c.f. the hidden gem https://zetaoffice.net/demos/simple-examples/rainbow_writer.... ;)
Current source version powering the demos is https://git.libreoffice.org/core/+/0d9eb8245e1a1345ed9526ad8... - we should make that more prominent, indeed.
comment 2y ago · link · parent
comment 2y ago · link · parent
10.
Show HN: ZetaJS – client-side LibreOffice widget and automation in the browser(github.com ↗)
5 points · by thorstenb · 2y ago · 4 comments
comment 4y ago · link · parent
Incrementally then using more of html canvas to speed things up might be next.
Most of the work is going to be having the GUI (toolbar/notebook bar, menues, sidebar, dialogs) browser-native of course.
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
* FF: set browser.cache.disk.capacity to something >300MB, then set browser.cache.disk.max_entry_size to at least 150MB
* Chrom{e|ium}: start browser from cmdline, via `chromium --disk-cache-dir=/var/tmp/foo --disk-cache-size=2147483647`
(I'd not recommend this for production setups, obvsly .. ;))