|
|
|
|
|
by edko
2068 days ago
|
|
It depends on the application. I did a couple of projects with Rust's web-view crate (which uses native Safari on MacOS, and native Edge on Windows). This gave me access to the full JS and the full Rust ecosystem. I think the possibilities were richer than if I had used Electron alone. For example, I was able to use the Tantivy crate, for very fast and powerful full-text search. All of this with a fraction of the executable size. |
|
Webview2 on Windows is also going through a weird period where you can't rely on it "just working" without the end user installing a runtime.
There is a thread, long ago here on HN, where the developer who made the Slack transition from native webviews per platform (which it was, originally, and everyone conveniently forgets) to Electron. He notes it was specifically because cross-platform issues become a pain in the ass to deal with, and Electron avoids that.
There's a disconnect between the average HN commentator who builds a UI in HTML/CSS/JS, and the types of frontends that larger applications build in those languages. Cross platform stuff shows up, and it's not a great use of time when there's one runtime sitting there that does everything and looks the same everywhere.