News for hackers. Stuff that matters.
Re:Flow browser passes the Acid tests by newsbinator on Saturday June 13, 2020 @09:39AM (#23509272)
> "extremely low memory consumption"

Might be nice as an Electron replacement

Re:Flow browser passes the Acid tests by cududa on Saturday June 13, 2020 @11:18AM (#23510022)
Microsoft is working on this with their cross-OS Chromium based Edge - so far on Mac I see about a 60% reduction in RAM footprint using Edge. I believe the end goal is a single managed chromium runtime so each electron app wouldn’t need their own full Chromium instance.
Re:Flow browser passes the Acid tests by frank2 on Saturday June 13, 2020 @01:36PM (#23511099)
>I believe the end goal is a single managed chromium runtime so each electron app wouldn’t need their own full Chromium instance.

I have spent hours searching the web for any clues as to Microsoft's intentions here. I would be grateful for any words on how you came to believe this.

Re:Flow browser passes the Acid tests by cududa on Sunday June 14, 2020 @02:46PM (#23520160)
Use to work in Windows and just from off the hand conversations with former colleagues.
Re:Flow browser passes the Acid tests by frank2 on Monday June 15, 2020 @11:07AM (#23528060)
Thanks for the reply.
Re:Flow browser passes the Acid tests by whereistimbo on Saturday June 13, 2020 @08:19PM (#23514020)
He said "I believe", it's not an official statement from Microsoft, it's just his own opinion.
Re:Flow browser passes the Acid tests by whereistimbo on Saturday June 20, 2020 @04:46AM (#23582682)
a7c32be153f91327db8a62932af28cac4dcfc7612a446c5021b9045a2af269b8
Re:Flow browser passes the Acid tests by frosted-flakes on Saturday June 13, 2020 @11:40AM (#23510198)
How will they manage different version requirements?
Re:Flow browser passes the Acid tests by tmpz22 on Saturday June 13, 2020 @01:09PM (#23510892)
Isn’t that pushed into the app developers to maintain compatibility in other ecosystems?
Re:Flow browser passes the Acid tests by elviejo on Saturday June 13, 2020 @10:16AM (#23509491)
My thoughts exactly... Now I have too many electron apps... So anything that helps to diminish my RAM consumption is welcome.
Re:Flow browser passes the Acid tests by vbezhenar on Saturday June 13, 2020 @10:30AM (#23509602)
Good electron replacement should re-use your installed browser engine. That would reduce RAM consumption dramatically, while providing better security (because browsers usually update faster than individual apps).
Re:Flow browser passes the Acid tests by flatiron on Saturday June 13, 2020 @10:44AM (#23509730)
You just created a “website”
Re:Flow browser passes the Acid tests by nine_k on Sunday June 14, 2020 @01:45AM (#23515410)
There are a number of problems with locally-run websites.

One is that TLS is married to DNS, and no third-party CA would issue a certificate for localhost. TlS with self-signed certs generated on the spot becomes easy to forge.

Another is that no web browser suppoorts Unix domain sockets or a Windows equivalent as a an access protocol. You are stuck with IP-based access, wee above.

Third is that access to the OS is limited or forbidden inside the browser, for a good reason. Want to run a locally installed compiler from within your web IDE? Tough luck.

Electron solves all of these problems. It doesn't do it in the best way imaginable, but in some cases just a web site cannot be a replacement.

Re:Flow browser passes the Acid tests by rattray on Saturday June 13, 2020 @11:27AM (#23510093)
You mean, "website with native API's and (optionally) custom native chrome".

Developers don't use electron because it'll get its own browser engine instance.

Re:Flow browser passes the Acid tests by pythux on Saturday June 13, 2020 @11:36AM (#23510159)
Depends, there is a bunch of Electron apps that work just fine as websites (e.g. Slack, Spotify, Microsoft Teams, etc. As far as I know). I personally prefer running those in a browser tab to both save resources and benefit from privacy enhancing tools like content blockers, etc. I would be curious to know how many of the Electron apps actually need these extra native APIs.
Re:Flow browser passes the Acid tests by flatiron on Saturday June 13, 2020 @12:08PM (#23510413)
Some of those you listed have extra features with electron. I was just being sarcastic with my remark. Like I don’t believe you can screen share with slack via a browser for example.
Re:Flow browser passes the Acid tests by wolrah on Saturday June 13, 2020 @12:53PM (#23510755)
> Like I don’t believe you can screen share with slack via a browser for example.

If you can't, it's not the browser's fault. I can definitely screen share in Jitsi from the browser, so there's no technical reason Slack shouldn't be able to do the same thing.

Re:Flow browser passes the Acid tests by omegabravo on Saturday June 13, 2020 @01:45PM (#23511162)
Re:Flow browser passes the Acid tests by kube-system on Saturday June 13, 2020 @01:45PM (#23511168)
You can show your screen but you cannot pass control.
Re:Flow browser passes the Acid tests by neurostimulant on Saturday June 13, 2020 @05:09PM (#23512756)
Well, There is Apache Cordova. Cordova uses built-in webview. It also support windows and mac, but it's not as popular as electron because its api is not as rich as electron.
Re:Flow browser passes the Acid tests by yoz-y on Saturday June 13, 2020 @05:48PM (#23513068)
Electron supports native V8 extensions that are really fast. Cordova (at the time I tried it) only supported message passing which is very slow. Sufficient for many applications but for some it won't cut it.
Re:Flow browser passes the Acid tests by exclipy on Saturday June 13, 2020 @12:41PM (#23510677)
Google had a project called Carlo to do this: https://github.com/GoogleChromeLabs/carlo But it's been discontinued now that the devs left the company.

I also see this project but you have to write Go to talk to the OS, not Node: https://github.com/zserge/lorca

Re:Flow browser passes the Acid tests by wongarsu on Saturday June 13, 2020 @11:39AM (#23510176)
Windows has had that feature since at least IE5. The main drawback was that "installed browser engine" might in practice mean "whatever ancient IE version this user who disabled windows update is using". Of course that is now mostly solved, and e.g. iOS offers the same feature.

But if you want broad cross-platform support "just get the locally installed browser engine" suddenly becomes a hard problem, unless this becomes a popular OS feature.

Re:Flow browser passes the Acid tests by Yoric on Saturday June 13, 2020 @12:25PM (#23510545)
I think that the memory savings would be very limited, unfortunately.
Re:Flow browser passes the Acid tests by mrmanner on Saturday June 13, 2020 @11:06AM (#23509918)
This! A browser mode that removes all the browser UI but still uses the same engine would make web apps more practical as desktop replacements.
Re:Flow browser passes the Acid tests by red_admiral on Saturday June 13, 2020 @11:59AM (#23510337)
Back in the Win98 days, I think a .hta (html application) was meant to be that - like .html but opens as an "application". Never really took off though, I presume due to lack of APIs at the time.
Re:Flow browser passes the Acid tests by tmzt on Sunday June 14, 2020 @10:37AM (#23517942)
It had access to the full VBScript or JScript runtime and WScript host. This means you could do OLE Automation, filesystem access, network access, registry access, and I believe invoke processes.

At the same time, companies were locking down WScript due to scripting viruses and HTAs that were impersonating other applications with their configrable icons.

Re:Flow browser passes the Acid tests by baxrob on Saturday June 13, 2020 @11:23AM (#23510064)
This is, or was, sortof that: https://github.com/webview/webview/issues/305
Re:Flow browser passes the Acid tests by mjhagen on Saturday June 13, 2020 @10:47AM (#23509756)
Like Java?
Re:Flow browser passes the Acid tests by kizer on Sunday June 14, 2020 @07:49AM (#23516991)
There’s the “webview” project on github which does this.
Re:Flow browser passes the Acid tests by ori_b on Saturday June 13, 2020 @11:48AM (#23510252)
Removing the electron apps works well. Usually they have a browser version, and that's still dogshit slow, but at least it shares more resources and has better sandboxing.