Re:1password is considering a self-hosted option to store va...
by soziawa on Sunday August 08, 2021 @07:02AM
(#28105836)
What does Electron in name only mean? Either electron is included or it isn't. Whether you are using Rust through native bindings or through WebAssembly does not really matter does it?
[ Parent
| on HN ]
Re:1password is considering a self-hosted option to store va...
by dijit on Sunday August 08, 2021 @07:58AM
(#28106081)
90% of the functionality is written in rust components and the UI is a very slim wrapper around those APIs; it seems.
And even then it looks like the JS is WASM compiled from rust.
It’s not implemented in JavaScript/typescript is what I mean. As such it seems to be lean on my system.
Re:1password is considering a self-hosted option to store va...
by mpalmer on Sunday August 08, 2021 @09:37AM
(#28106591)
If it is Electron, I don't think you can credibly call an entire Chromium instance a "very slim wrapper".
Re:1password is considering a self-hosted option to store va...
by selfup on Sunday August 08, 2021 @09:49AM
(#28106674)
There's a chance it's using Tauri (rust) https://tauri.studio/en/ if it's truly not using Electron but a similar concept. However WASM builds in Electron would make more sense if they use the term Electron.
Re:1password is considering a self-hosted option to store va...
by danieldk on Sunday August 08, 2021 @02:21PM
(#28108826)
No, it's definitely regular Electron:
% tar ztf 1password-latest.tar.gz | grep "chrome"
1password-8.1.1.x64/chrome-sandbox
1password-8.1.1.x64/chrome_100_percent.pak
1password-8.1.1.x64/chrome_200_percent.pak
Re:1password is considering a self-hosted option to store va...
by dijit on Sunday August 08, 2021 @04:28PM
(#28109815)
yeah I'm aware it contains chrome, I mentioned that much of the functionality has been moved out and is actually implemented in rust, this is verifiable simply by running `1password --log trace`
EDIT: 168MiB resident memory on my system (just checked).
Though it malloc'd (but never used) 32G, that's worrying.
Re:1password is considering a self-hosted option to store va...
by aniforprez on Sunday August 08, 2021 @10:00AM
(#28106752)
Link below to the behind-the-scenes article. I have no experience using the Linux app so I'm not sure of the performance but a lot of the core seems to be written in Rust compiled to WASM which is the way it's now being done for their browser extension. Personally everyone keeps cribbing about electron but I hope 1Password has found a way to make good on performance
https://dteare.medium.com/behind-the-scenes-of-1password-for...