News for hackers. Stuff that matters.
Re:Tauri: An Electron alternative written in Rust by azangru on Friday February 19, 2021 @12:52PM (#26195763)
Will PWAs make Electron obsolete?
Re:Tauri: An Electron alternative written in Rust by qbasic_forever on Friday February 19, 2021 @01:58PM (#26196586)
Electron gives you far, far more access to native libraries and hardware than PWAs will ever dream about. People are still arguing about how to expose USB devices, bluetooth, etc. in the browser for example. With an electron app you can just npm install a few native wrapper libs and go to town. It's great for moving clunky old native GUI apps (IDEs, etc.) to a more modern cross-platform codebase.
Re:Tauri: An Electron alternative written in Rust by Solid_Applaud on Friday February 19, 2021 @12:55PM (#26195796)
Unlikely, because Electron is very useful in exposing system and hardware APIs.
Re:Tauri: An Electron alternative written in Rust by alooPotato on Friday February 19, 2021 @01:39PM (#26196353)
For most apps - wouldn't PWA's be sufficient as implemented today. Presumably, they'll expose more and more hardware APIs over time?
Re:Tauri: An Electron alternative written in Rust by qbasic_forever on Friday February 19, 2021 @01:59PM (#26196609)
Even basic things like reading and writing files from the filesystem are obnoxiously difficult in a pure browser or PWA environment. Storing state in general is full of enormous pitfalls and eccentricities, like 50mb limits for some browsers or just completely random total deletion of all app state at the browser's whim.
Re:Tauri: An Electron alternative written in Rust by alooPotato on Friday February 19, 2021 @02:09PM (#26196724)
Seems like they are making a lot of progress on that front: https://web.dev/file-system-access/
Re:Tauri: An Electron alternative written in Rust by Solid_Applaud on Friday February 19, 2021 @04:10PM (#26198062)
Fine, but these are proposals. We want something we can work with today, something that we have the power to hack on that will expose new systems we come up with to HTML/JS, and that is the niche that Electron-like systems fill really well.
Re:Tauri: An Electron alternative written in Rust by alooPotato on Friday February 19, 2021 @05:32PM (#26198900)
Supported in Chrome and Edge today.
Re:Tauri: An Electron alternative written in Rust by themihai on Friday February 19, 2021 @03:46PM (#26197850)
PWA is useless if you need to bypass CORS(i.e you can't develop a general rss reader for example). In practice PWAs are just a shortcut to a website.

  On electron you get closer to native apps in terms of network and OS access so I believe the PWA are and Electron are quite different platforms.
Re:Tauri: An Electron alternative written in Rust by yannoninator on Friday February 19, 2021 @02:10PM (#26196739)
Do PWA's support notifications?

If not, then no.

Re:Tauri: An Electron alternative written in Rust by Ashanmaril on Friday February 19, 2021 @03:26PM (#26197635)
Web notifications do exist, they're horrible though