News for hackers. Stuff that matters.
Re:Electron 7.0 by choeger on Thursday October 24, 2019 @01:54PM (#21347250)
Hey, another electron thread. Wait a second, did someone already mention how horrible Javascript is? The memory consumption? The minimal integration into the OS/desktop (think accessibility)? Hmm ok, I need something new...

Here it comes: chrome is inherently instable. The Google developers give a shit about their dependency management and have trillions of open source projects just literally copied into their trunk. They also don't provide any API to speak of, chromium as a library does not exist, and don't get me started about the arcane build process of chrome.

Re:Electron 7.0 by marshallofsound on Thursday October 24, 2019 @02:05PM (#21347355)
Disclaimer: Electron dev

So few quick things, the projects that are copied are done so to guarantee deterministic builds in an isolated build environment (no dependencies on third party systems).

The API you say they don't provide is literally the API that Electron uses. --> https://chromium.googlesource.com/chromium/src/+/HEAD/conten...

And as for the build process, eh, it's kinda slow but it's hardly arcane. On linux you can run like 4 commands and it'll build Chromeium.

Re:Electron 7.0 by choeger on Thursday October 24, 2019 @02:09PM (#21347390)
Yeah. Four commands. The first one downloads binaries from the internet. If I was inclined to do so, I would not need to build in the first place ;).

Give it a try with the current HEAD of their home-grown and undocumented build tool and see how far you get.

And regarding the deterministic builds: I call bullshit. They just don't want to follow the different packaging guidelines from the different operating systems, so they repackage everything. Now I have to trust them to keep all these dependencies up-to-date and I have to accept the unecessary bloat? No way.

Re:Electron 7.0 by snek on Thursday October 24, 2019 @04:12PM (#21348688)
> [build process]

I agree, the chromium build tooling is unfriendly af.

> I call bullshit

Lot of works goes into deterministic builds, have fun going down this rabbit hole: https://bugs.chromium.org/p/chromium/issues/detail?id=314403

> Now I have to trust them to keep all these dependencies up-to-date

Looks like it rolls on average every 10-20 minutes: https://chromium.googlesource.com/chromium/src/+log/HEAD/DEP...

> and I have to accept the unecessary bloat?

Ah yes, because all operating systems ship with a pristine installation of the latest pdfium.

Re:Electron 7.0 by choeger on Thursday October 24, 2019 @04:43PM (#21348951)
> Lot of works goes into deterministic builds

That has nothing to do with their dependency management. In fact, if you link against system libraries, it should be simpler to get deterministic builds, as you have to build less.

Re:Electron 7.0 by brianzelip on Thursday October 24, 2019 @03:05PM (#21348056)
Hey thanks for you and your team's hard work. I absolutely love the empowerment that electron provides.
Re:Electron 7.0 by The_rationalist on Thursday October 24, 2019 @02:28PM (#21347630)
Many of your critics are fallible but I will not spend time arguing, sadly. Yet,what do you think of TypeScript? It's a state of the art language feature wise (for it's rich type system)
Re:Electron 7.0 by choeger on Friday October 25, 2019 @12:52AM (#21352005)
Typescript goes in the right direction, but the last time I checked, its type system was mediocre at best.
Re:Electron 7.0 by equasar on Friday October 25, 2019 @01:14AM (#21352107)
> mediocre at best.

care to elaborate?