9 ms·
It's kind of interesting to see this release and previous ones mention 'performance fixes' (V8 and Blink does all the work) that it brings, yet the job postings
by rvz 7y ago
It's kind of interesting to see this release and previous ones mention 'performance fixes' (V8 and Blink does all the work) that it brings, yet the job postings for desktop software engineer requiring Electron experience also put data structure and algorithms and what I see here is a runtime that is very expensive in both space + time complexity. It makes no difference in using a different language with a faster runtime to combat this.
Imagine if I were to write a 'next-gen' CAD program or an alternative 3D modeling program in Electron. I'm not so sure if the manufacturing or the games industry would take a second look at that. But in our industry, it is seen as normal for our text editors, ide's, git clients and video editing software and our messaging clients to be expensive in memory and cpu time.
Can't we do better than this? Or do we have to accept and depend on Google to create our desktop software?
- ComodoHacker 7y agoThere are better alternatives, in almost every possible way. The problem is they aren't that popular. And you can't reuse code (and coders) with web version of your app.
- dgellow 7y agoAlternatives that are supported cross platform? That’s the only reason I would potentially consider Electron.
- davojta 7y agohttps://en.wikipedia.org/wiki/Chromium_Embedded_Framework https://en.wikipedia.org/wiki/Chromium_Embedded_Framework is support linux, windows and macos
- wongarsu 7y agoWith CEF you can write your business logic in a better language, but the UI suffers from the same problems as Electron since it's basically the same thing.
- solarkraft 7y agoAmong the easiest and best supported is Qt. I think Flutter is also going to serve that space decently well (although in a more Electron-like fashion, meaning no/barely any integration into the platform-specific UX, while Qt imitates OS widgets).
- rhabarba 7y agoLanguage-independent: - IUP (supports Windows, GTK+, and Motif) - libui (supports Windows, macOS, and GTK+) Language-dependent: - Lazarus/LCL - Common Lisp/McCLIM
- deleted 7y ago[deleted]
- wongarsu 7y agoWhat are the better alternatives? Personally I'm a fan of C# with WPF, but while C# is decently cross-platform with .net core WPF is Windows only.
- mustardo 7y agoJFX https://openjfx.io/ https://openjfx.io/ Swing https://en.wikipedia.org/wiki/Swing_(Java) https://en.wikipedia.org/wiki/Swing_(Java) QT https://www.qt.io/ https://www.qt.io/ TK https://docs.python.org/3/library/tkinter.html https://docs.python.org/3/library/tkinter.html wxWidgets https://www.wxwidgets.org/ https://www.wxwidgets.org/
- KptMarchewa 7y agoYou cannot possibly suggest that TK is a better alternative to anything.
- sramsay 7y agoGod, or Swing! Please, for the love of all that is good, do not show this list to any manager. Ever.
- mustardo 7y agoIs it really that much worse than HTML, JS, and CSS? The DOM is generally a mess and CSS isn't easy to use. Of course JFX is probably a better option now days but for a small GUI if you avoid layout managers like GridBagLayout (built to work with a WYSIWYG) and you are on the JVM seems like an easy option to me
- pjmlp 7y agoSwing is quite good. A good manager will ensure everyone has actually read Filthy Rich Clients, is aware of Swing theme component libraries and never does IO on the UI thread. And for bonus points, that the team gets hold of an Java AOT compiler to native code.
- 7y ago
- ttoinou 7y agoImagine if I were to write a 'next-gen' CAD program or an alternative 3D modeling program in Electron. I'm not so sure if the manufacturing or the games industry would take a second look at that Could be possible if electron was only used for the GUI, and the core of your app would be a C++ chromium widgets. Do it!
- dkersten 7y ago> Do it! What's the benefit over using a native GUI library?
- ktpsns 7y agoThe ease of providing a styled user interface. In the 2000s, this was something everybody wanted to archive, the term for it was "rich user interface". Already back then, embedding a HTML widget seemed an easy way to archive that.
- rhabarba 7y agoQt has been supporting CSS-like styling of your native applications for quite a while now.
- obliviousonions 7y agoIt's pretty hard and has a lot of problems. It's definitely not as easy as css and doesn't have as many options for styling. Sometimes, when you change one property, 5 other unrelated properties will change as well, and you need to manually set them. CSS is much easier to get a consistent theme for an application.
- AnIdiotOnTheNet 7y agoIronically one of the big complaints against Java was that it didn't look native. Then not looking native became a feature.
- ttoinou 7y ago
- sbergot 7y agoImagine reading the sentence: "Imagine spacex building a rocket with cheap plastic. Why us working in the disposable fork industry are still using this crap material!". And then you realize that this comment gathers a lot of support from the disposable forks engineering community. Time to deliver new features matters. Skill reusability matters. This is the economic reality that makes electron attractive to all the people that decide to use it to build software. The alternative to electron is not always a leaner different framework. It may also be not building software because you don't have the resources and skills needed.
- wheno 7y agoI think that is something that tends to be underestimated. The reason Electron is popular is because of the success rate in creating things. While projects that are trying to be better takes far longer or fails outright, making them less common. So it isn't necessarily that people are choosing so much as surviving.
- kgraves 7y agoThat might be the case economically, but this isn't the future that I or end users want, look where this has gotten modern desktop development, you now have sluggish, slow, bloated applications vying for end user's resources. e.g. An end user using Discord and Slack has to download 2 Electron applications (~500MB of disk space) and this is for a chat app, Ripcord [0] can do both with less RAM resources and disk space. > The alternative to electron is not always a leaner different framework. You can have both, there are newer frameworks popping up such as Flutter, React Native and Reason Native. [0] https://cancel.fm/ripcord/ https://cancel.fm/ripcord/
- manigandham 7y ago> "isn't the future that I or end users want" End users do want it as seen by the commercial success of Electron based products, including completely free products like VSCode even when Sublime and Visual Studio exist. Features and functionality almost always overrule performance. I'd rather wait a little longer to do something than not be able to do it at all.
- truth_seeker 7y agoIt has been already achieved by Autodesk, they moved their 30-year-old Auto CAD software to work in the browser. https://www.infoq.com/presentations/autocad-webassembly/ https://www.infoq.com/presentations/autocad-webassembly/
- kgraves 7y agoAlthough a monumental achievement from Autodesk, that is not a _desktop application_ that is a web app.
- truth_seeker 7y agoThis is a baseless distinction from User point of view. What you can do in a browser you can do in Electron App as well because Electron embeds the browser!
- kgraves 7y agoOnly if they provide an electron app, to which then yes it is a 'desktop app'. Autodesk's demo is in a web browser, good luck trying this when you're offline.
- pjmlp 7y agoAs a PWA, not Electron fat.
- davojta 7y agoactually game industry are adopting the web like desktop app (in launchers and other client parts (events, etc) using CEF for example). Web tech is highly dynamic and gives you the ability to change your product very quickly, deliver the value and it is quite cheap in comparison to c++ analogs.
- lake99 7y ago> CAD program or an alternative 3D modeling program in Electron. I'm not so sure if the manufacturing or the games industry would take a second look at that Why not? Onshape is browser based, and quite a few mechanical engineers and the 3D printer community seem to be happy with how well it works. https://www.onshape.com/ https://www.onshape.com/
- wheno 7y agoSomething like Electron isn't primarily for CAD programs or 3D modeling, it is for "information" applications. That is what many millions of dollars have gone into developing and educating people about web technologies. > Can't we do better than this? Honestly the answer is probably no. People just don't understand how much work goes into something like this. Who is going to, or even can, spend the time and money to do it?
- antisemiotic 7y agoMixed feelings about this. On one hand, I've used to work for a company that made software that processed models for 3D printing, and optimizing internal memory structures was an important part of it, as big modes routinely hogged all the memory on our own workstations. On the other hand, one of the biggest competitors outright states thet their software needs 16gb+ of RAM* I guess Electron wouldn't make much of a difference. [*] https://www.materialise.com/en/software/magics/product-information/system-requirements https://www.materialise.com/en/software/magics/product-infor...
- userbinator 7y agoBut in our industry, it is seen as normal for our text editors, ide's, git clients and video editing software and our messaging clients to be expensive in memory and cpu time. I attribute this mainly to the younger generation of developers, most of whom have never experienced computing with fewer resources, nor have any idea of the amount of resources something should take. That can partly be blamed on education and the "premature optimisation" argument that still gets thrown around as a random excuse to do something terribly inefficient.
- goodoldneon 7y agoWhen a team is short on developer time and code readability is paramount, premature optimization can be a hindrance. But like most things in life, the truth is in the middle: teams should strike a balance between competing priorities rather than throwing around the premature optimization argument.
- ramblerman 7y agoThis is such a boring argument that both enforces gatekeeping, and lacks any idealism about the future of our industry. Perhaps CPU speed/memory is not quite there yet for Electron to be viable in most projects, but nobody is taking away your ability to fiddle bits. Why does it have to be one or the other? A JS developer can get access to writing their first 'native' client. If it is too slow, perhaps she will investigate a more memory efficient way. Or perhaps its good enough for the current use case. Some paradigms will be dead ends, but experimenting with higher level languages and libraries is what moves us forward. It's equivalent to kicking and screaming in the late eighties that this 'Python' is not efficient and a waste of time.
- dgellow 7y agoI know it’s not your main point, but python wasn’t a thing until the nineties (released in 1991 if I trust Wikipedia) and would have been almost always not efficient and a waste of time and resources at that point in time given the state of hardware (also considering that python wouldn’t have been the optimized version that it is now)
- 7y ago
- asdkhadsj 7y ago> Can't we do better than this? Maybe we can, maybe we can't. Regardless, no one has done it. I'm still holding out on a ReactNative-like solution for all platforms, independent of language. Eg, some type of RPC bridge is opened between a process and a window, and it creates native widgets for each proper platform in the same way ReactNative does; except with no care for the originating language that the process is written in. Maybe one day.
- JustSomeNobody 7y ago> Can't we do better than this? Not while priorities are inverted. Right now, the priority is not on the end user so much as it is on developer productivity and iterating as fast as possible.
- lkbm 7y agoThis is an inaccurate model. As an end user, I want the developers to be super-productive and iterate quickly so they can add the features I want. The priorities of end users are what you dislike. We choose "this has the features I want" over "this is lean and snappy". There are lean and snappy text editors out there. People choose Evernote and Word, because features. There are lean and snappy audio players out there. People choose iTunes, because features. There's lean software out there, and there's bloated software our there. Right now, it's (often) the bloated software is popular. Popular software is tautologically popular because it's what the most people use.
- JustSomeNobody 7y ago> People choose iTunes, because features. This is inaccurate. They don't get to choose iTunes. Also, a lot of the more popular Electron apps are not as feature rich as some of the native apps, so I don't agree with your assessment. I think they're popular because the people who do seem to like them are loud enough to sway opinion.
- pier25 7y ago> Can't we do better than this? Or do we have to accept and depend on Google to create our desktop software? We're working on a crossplatform app that runs on macOS, Windows, Chrome OS, Android, and iOS. The UI runs on a webview provided by each platform and it's the same codebase for all 5 platforms. The native layer is as thin as possible, but there is some functionality we've had to repeat in each platform. The macOS app weights 15MB. A hello world in Electron weights over 100MB. I think we've done pretty good. The previous version used Electron for Windows and macOS, and Cordova for Android and iOS. This allowed me to do the 5 platforms on my own but introduced many problems.
- rdsubhas 7y ago> Imagine if I were to write a 'next-gen' CAD program or an alternative 3D modeling program in Electron. I'm not so sure if the manufacturing or the games industry would take a second look at that. But in our industry, it is seen as normal for our text editors, ide's, git clients and video editing software and our messaging clients to be expensive in memory and cpu time. Specialized industry software have a (moderate) liberty of picking a platform. They can say that they work only on Windows, or Mac, or a flavor of Unix if necessary, based on various market factors and major clients. They can atleast release for one major platform, and hold out for other platforms until they are really big enough. On the other hand, general purpose software (editors, messaging, etc) – they need to be everywhere. Android, iOS, Windows, Linux, Mac – at the very least. Because users already are multi-device. Even in the best case, a single user wants his/her important apps to sync between phone and laptop. Your general purpose app is dead on arrival if it does not support atleast two platforms. Comparing these two is like apples and oranges.
- GhostVII 7y agoI think the difference is CAD is already expensive in memory and CPU time, so any increase would likely be very noticeable. With IDE's and messaging clients, pretty much any computer can run even the most inefficient ones fairly well since they aren't doing anything super resource intensive, so it makes sense to prioritize feature development over efficiency improvements which wouldn't really affect the end user very much. Personally, I dislike the idea of Electron apps and the slight increase in input lag and lack of customization, so I never install them on my personal computer (I just use the website, since that is essentially all the app is anyways), but I can see that for most people it makes sense to trade off efficiency for feature development in this case.
- wsy 7y agoNobody forces you to use Visual Studio Code, vim and emacs are still around. As VSC is vastly successful, the analogy with manufacturing or gaming industry obviously does not hold: the software development 'industry' does not only take a good look at VSC, it has already accepted it as viable product. So Microsoft is right in investing into great IDE features rather than reducing VSCs resource footprint. I assume that similar arguments can be made for every popular Electron-based application.
- mnm1 7y agoAn app is better than no app at all. Your "can we do better" scenario means that most of the electron apps we currently have would not exist, especially on an os like Linux. Memory is cheap. CPU is cheap. Disk space is beyond cheap. Developer time and motivation are extremely expensive. Let's see, which one should we optimize for? Yes, for cad, 3d, and games this probably isn't the right tool. But those apps are rare. For most apps, it seems to be. Are you going to pay thousands of dollars for your text editor like people to for cad? Or even $60 for it but buy millions of licenses like videogames sell? No, you're not. You likely expect these tools to be free but insist on criticising the underlying tech. Why not fork these apps yourself and rewrite them natively? Sure is better than the developer deciding not to make the app because cross platform development is too expensive or they don't have the time to learn swift, objective c, c#, and c++ to create "proper" cross platform apps. This argument is frankly tiring and beat to death. If you don't like the apps, don't use them. No one is holding a gun to your head.
- Shorel 7y agoWe can do better than this. That's why I paid for SublimeText.
- pjmlp 7y agoSame here, Notepad++ as well.