TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Electron 2.0.0 beta

259 pointsby l2dyabout 7 years ago

26 comments

thihtabout 7 years ago
As much as HN hates Electron, it&#x27;s probably one of the best things to happen on desktop, especially on linux desktop ironically.<p>It works, it&#x27;s beautiful, it&#x27;s easy to use, and unlike many people here, I believe the HTML&#x2F;CSS&#x2F;TypeScript&#x2F;React is rock solid and the closest thing to THE solution to the UI problem.
评论 #16436343 未加载
评论 #16436659 未加载
评论 #16437033 未加载
评论 #16437047 未加载
评论 #16436340 未加载
评论 #16437321 未加载
评论 #16436566 未加载
评论 #16439544 未加载
评论 #16436316 未加载
评论 #16437647 未加载
评论 #16436945 未加载
评论 #16437425 未加载
评论 #16436464 未加载
评论 #16437286 未加载
评论 #16442355 未加载
评论 #16437671 未加载
评论 #16439643 未加载
评论 #16439447 未加载
评论 #16437262 未加载
评论 #16438848 未加载
anticnstrctvabout 7 years ago
Does anyone else feel that there&#x27;s a huge hole in the UI world?<p>I like the electron&#x2F;react&#x2F;react native ecosystem - I really do, and this is coming from someone who dislikes javascript a priori. But is HTML&#x2F;CSS&#x2F;JS really the best we can do for desktop and mobile applications? I know responsive-cross platform saves money for a lot of startups and orgs, and I&#x27;m not saying the web stack doesn&#x27;t have it&#x27;s place.<p>I frequently imagine something that takes the best ideas from react&#x2F;redux and from other ui and layout frameworks and lets you build something that has consistent, cross platform (desktop and mobile, maybe even web with some kind of compilation pathway to js or webasm), responsive ui, without the huge web stack. Maybe Python? It&#x27;s got lots of competent developers in the market to support it. Maybe Rust or Go, if something lower-level was desired. Or language-agnostic, though sticking with one might be valuable.
评论 #16435871 未加载
评论 #16436618 未加载
评论 #16435886 未加载
评论 #16435928 未加载
评论 #16435848 未加载
评论 #16435887 未加载
评论 #16436264 未加载
评论 #16435930 未加载
评论 #16435888 未加载
评论 #16435838 未加载
评论 #16435882 未加载
评论 #16435840 未加载
评论 #16435927 未加载
评论 #16437305 未加载
评论 #16435858 未加载
评论 #16435995 未加载
评论 #16437648 未加载
评论 #16435860 未加载
评论 #16435963 未加载
评论 #16436001 未加载
评论 #16435954 未加载
评论 #16439572 未加载
评论 #16436762 未加载
评论 #16436003 未加载
评论 #16454640 未加载
评论 #16441979 未加载
评论 #16435925 未加载
pier25about 7 years ago
Sadly the biggest problems with Electron are not yet solved:<p>1) There is no way to separate the Electron engine from your app, so you have to bundle Chrome and Node with each app.<p>2) Electron has an autoUpdater API, but since Electron doesn&#x27;t solve the installation&#x2F;updates problem e2e (packager + installer + updates server) it&#x27;s really a half baked solution. This is specially bad in Windows since Squirrel for Windows is in my experience a disaster.<p>I have a number of Electron apps in production, internally and for our customers, and for our next desktop project we won&#x27;t be using Electron.<p>The idea of using web technologies for the UI is still very valid IMO, but considering the 2 previous problems it&#x27;s way less of a headache to just make our own native wrapper in C# and Swift (sorry Linux) and finally distribute the app via the official stores. At least for our use case.
评论 #16438565 未加载
评论 #16437759 未加载
评论 #16437996 未加载
评论 #16438179 未加载
评论 #16437656 未加载
Aeliusabout 7 years ago
I agree with all the complaints about electron performance, but the thing that really gets me is how horribly developers fail at responsive design, with a toolset that is probably the most suited for responsive design since terminals.<p>How the hell do slack, discord, and gitter STILL not collapse their sidebars when you resize the containing window to be tall and narrow? It makes them unusable in a tiling WM, and it&#x27;s generally disrespectful of screen real estate in any WM.<p>This is the price of easily accessible development. We&#x27;re doomed to relive past mistakes in UI, as new developers are blissfully unaware of lessons learned by existing frameworks.<p>Many people here are saying electron is popular because of a lack of sane, consistent toolkits across each OS. There&#x27;s also security to think of too. Electron is likely very insecure relative to native software, but the responsibility is purely on the electron devs: freeing the app developer of that burdon. Electron rose in an environment with no competition in that regard. But now, Windows has UWP, and Mac has their own app platform. I sincerely hope we see these more universally leveraged, such that developers will stop abusing the web for app development.<p>And I guess Linux will just have to make a WINE for UWP, I can&#x27;t imagine the Linux community coming together to create something like that for themselves.
评论 #16437190 未加载
dvfjsdhgfvabout 7 years ago
It&#x27;s really sad that in spite of the main glaring problem of Electron apps they didn&#x27;t as much as even mention any work done on performance optimization in 2.0.0. The changes mentioned are just make up when compared to the real problem.
评论 #16435956 未加载
评论 #16436670 未加载
评论 #16435931 未加载
评论 #16435896 未加载
评论 #16436031 未加载
评论 #16435903 未加载
vbstevenabout 7 years ago
I wonder if it would be possible to change the electron build process so it builds 2 outputs: 1 &quot;big&quot; package with full Chrome inside and 1 &quot;light&quot; package that just contains the application code.<p>The light package could then be offered as an alternative download on the website to run on a specific &quot;electron-runner&quot; that can run multiple electron apps side by side.<p>I know that I just described a regular browser with tabs or windows but hey, Electron is what we have right now and it is not going away soon. This might be a solution for people running multiple Electron apps side by side.
评论 #16436527 未加载
评论 #16436014 未加载
评论 #16436035 未加载
FreezerburnVabout 7 years ago
Since it’s something I’ve been paying attention to for a while: this (beta, sure, but soon to be full. Probably would work fine for doing some dev work) release of Electron finally bundles the version of Chrome that implemented SharedArrayBuffer support. This means that developers can now spawn web workers (real parallelism) and communicate with them much faster than previously with message passing. So there could be some big wins for things like developing games in Electron since you’ll be able to do some big number crunching off the UI “thread” and hand the results back to the UI with little performance penalty. (Especially if there are a lot of results, such as a theoretical fully-updated scene graph worth of matrices in an array) Hooray for less jank on the renderer!
评论 #16437226 未加载
评论 #16437384 未加载
mherrmannabout 7 years ago
People not satisfied with Electron&#x27;s performance might be interested in fbs [1]. It makes it very easy to create desktop apps with Python and Qt. It was in the #1 spot here two weeks ago [2]. (I&#x27;m the author.)<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;mherrmann&#x2F;fbs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mherrmann&#x2F;fbs</a><p>[2]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16318677" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16318677</a>
greenhouse_gasabout 7 years ago
What would be interacting is an electron like environment with a pared down JS&#x2F;CSS engine which only let &quot;modern JS&#x2F;CSS&quot; (maybe something like Servo). It can be optimized for that, and you don&#x27;t really have to render electron apps from the 90s anyways.<p>Another idea is that when wasm will be able to interface with DOM, you&#x27;d be able to write GUI code in any language which compiles to wasm. So you won&#x27;t _need_ Rust (or Go, or Haskell, or D, or your up and coming toy language) bindings for win32, Qt, GTK, etc. Just waste a few hundred megs (only partially &#x2F;s) and you&#x27;ve got a full ui.
评论 #16436405 未加载
refulgentisabout 7 years ago
What happened here?<p>&quot;macOS Changed a macOS thing. #123<p>Windows Changed a Windows thing. #123&quot;
评论 #16435852 未加载
评论 #16435865 未加载
评论 #16436007 未加载
评论 #16435869 未加载
评论 #16435822 未加载
tradedashabout 7 years ago
We have been using Electron for <a href="https:&#x2F;&#x2F;tradedash.io" rel="nofollow">https:&#x2F;&#x2F;tradedash.io</a> (our crypto currency trading platform) for some time now. There are some minor issues with the platform itself but there are a lot of good things too.<p>The JS ecosystem as a whole needs to improve but as far as Electron goes, I must say that I am pleasantly surprised with how well it has been doing even though we are handling data from multiple exchanges at a rate that is not so trivial.
评论 #16436941 未加载
eklavyaabout 7 years ago
You can use React and js to build native desktop apps without electron today. Use <a href="https:&#x2F;&#x2F;proton-native.js.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;proton-native.js.org&#x2F;</a> (based on libui).
评论 #16437889 未加载
0XAFFEabout 7 years ago
I wonder why there is no runtime package for all your electron applications, so you only have to install the runtime once and every app can depend on this runtime. This would greatly reduce download sizes of individual applications.
评论 #16435924 未加载
评论 #16436195 未加载
评论 #16435962 未加载
评论 #16436026 未加载
wodenokotoabout 7 years ago
What is the stack behind RStudio? It isn&#x27;t electron, but it is an HTML app, run by a browser (safari on my macbook pro, wonder if it is IE on windows)<p>It doesn&#x27;t feel as heavy as electron apps.
billfruitabout 7 years ago
I have only a very cursory look at Electron, but I find two things problematic: Lack of support for legacy systems, and the complicated build process of apps built with Electron, most can&#x27;t successfully build unless you download a ton of stuff from npm. The kind of place where I am with many many older machines, never connected to the internet, Electron hardly makes any sense.
ericfrederichabout 7 years ago
Never really heard of Electron before I tried using KeyBase on Windows. It seems electron is the reason that it doesn&#x27;t work on my machine.<p>Ran into this last night. <a href="https:&#x2F;&#x2F;github.com&#x2F;keybase&#x2F;keybase-issues&#x2F;issues&#x2F;2813" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;keybase&#x2F;keybase-issues&#x2F;issues&#x2F;2813</a>
samwillisabout 7 years ago
Does anyone know if there has been any work on bringing the work from “headless chrome” to electron?<p>It would be awesome to be able to use the full node.js environment with a headless browser natively.(headless chrome with puppeteer is good but electron would be better)
dcgudemanabout 7 years ago
Why not upgrade to the most recent version of chromium? (64 instead of 61)
评论 #16436120 未加载
paxysabout 7 years ago
Nothing in this seems worthy of a major version bump to be honest.
评论 #16435998 未加载
评论 #16435977 未加载
评论 #16436013 未加载
ohthehugemanateabout 7 years ago
Can anyone explain for me: WHY is electron such a resource hog? Is it just because chrome is a resource hog? Could it be trivially re-engineered to wrap quantum instead?
darklajidabout 7 years ago
Waiting eagerly for VS Code to upgrade. As far as I understand, this fixes the &quot;precision touchpad&quot; bug on Windows..
ed_blackburnabout 7 years ago
How long before the Electron APIs are aped by OS extensions and managed more effectively than Blink?
twtwabout 7 years ago
Is Electron still single threaded like Node?
_o_about 7 years ago
With all the GUI crap going on in software development, I am starting to miss MFC and BCG libraries, I know it is not feasable for most developers to code in c++ but at that time the GUI, even if run over RDP, was fast, responsive, now I having a feeling like 386 was faster than todays i7+. And to cirmuvent obvious incapability of RAD to provide decent user expirience, they are changing our UI percepction from trendy perspective, leveling everything to flat and extremly simple, like ncurses on graphical desktop. =&#x2F;
swileyabout 7 years ago
Just a reminder to everyone who says there&#x27;s no way to write cross platform apps:<p>TCL&#x2F;TK is still a thing and MacOSX still ships with wish, it even runs on android. The one platform you can&#x27;t use it for is the iPhone.
评论 #16438387 未加载
nkkollawabout 7 years ago
One thing I don&#x27;t understand about Electron is, why not share a single Chrome process (or if anything one per Chrome version if needed)