by goodmachine · 6y ago · 0 comments
Good enough for me.
However, I understand that said apps may have not existed without Electron at all.
And especially, for jitsi, I think it makes perfect sense. If you are going to create an app that does video, audio and web rtc, it would be silly not to use a battle tested browser engine that does all this already.
Besides, having contemplated the state of UI in a world were you have a bazillions of combination of hardware type + screen format + OS kernel + OS version, I have to say Electron doesn't have much competition.
What are you going to do? QT? Phone support is abysmal and it's a pain to package. Kivy? Super slow, almost no widgets. Flutter ? Uses a niche language with a very small ecosystem and an unknown life expectancy.
I probably would go with the later, but I can't blame people for taking the easy road.
I think you mean "create an app that does video, audio USING web rtc".
Plenty of native desktop/mobile apps do video/audio/text without embedding a browser.
Yes and it's a pain to do: format is limited, packaging is hard, ability to manipulate/embed the video is annoying. In fact, most apps doing that ship ffmpeg and/or vlc and call it a day. The browser gives so you much for free.
including arguably the most attacked and compromised software surface in history.
Electron apps have the slowest interfaces on anything I've seen, lots of times each click of a button or menu has lag on a very solid computer. Who wants to have a program doing video embedded in a painfully slow interface?
I though it was too much, and downgraded for a small, cheaper and more portable machine.
Today, I think 32 would be just right.
2 years, lol.
I would imagine such a monstrostiy would be so slow with even 32gb that we would have to pay for extra cloud-based services to do menial tasks like edit documents.
God help us all.
I don't think that's it.
Electron make it easy, if you know front end dev, to do an app. It's easy to package as well.
I don't know if you tried to design a beautiful QT app, but it's hard. A beautiful QT app with medias capabilities ? Extra hard. Packaging that? A royal pain.
> Now, dynalist, stremio, discord, signal, pulsesms and vscode are added to the mix.
So your workflow has changed. You added additional tools to it. These tools have always been electron. You don’t have to use them. There are alternatives.
The people behind these tools have decided that they target an audience you don’t belong to. You are of course free to ask them to change the audience, but you are not entitled to that
But you would be very annoyed if when you upgrade, you'd notice the car actually eats more gas.
That's not what happens though. Modern cars are more ergonomics, and eat less gas.
It's not being entitled. It's just noting the drawbacks of some technological choices.
There must be a benefit for developers for them to chose electron. And that benefit for developers will have an effect for the users in either more features, quicker rollout or more supported platforms.
Now the virtual box memory limit is set at 3 GB and she has no complaints. Obviously this is not for power users but it helps a lot when there is a severe shortage in memory
- my base ram consumption is 2Gb, so it would make 5gb with the VM, giving me 3gb for: firefox, and IDE, thunderbird, telegram, stremio, libreoffice, nautilus, veracrypt, liferea, gnome calendar, keypass, dev tools such as linter/dev servers/formatters, tilix, veracrypt, youtube-dl, jupyter, other VM I use for work... Even if I don't use them all at the same time, that's not a lot real estate. It used to be enough. When I used sublime instead of vscode, didn't have 4 communications apps and so on. You gotta hand it to the electron community: their software do bring good features.
- The ergonomics would be terrible for certain softwares. For chat, it would be alright (no notification is ok with me), but for stuff like dynalist, I need to be productive
- It's slow to use. You can feel the reaction time with every action. Android is slow in itself, but in an emulator, you want chain too many actions
Does it use a new instance for every app, or it loads the engine once and reuses some of it for every instance? ie. can Electron be made to work like a system shared library, similar to GTK/Qt ?
So maybe we CAN make electron lighter.
I know it's not always possible, but the web now offers a lot of powerful API's.
- can't (realistically) use an alternative runtime. You are stuck with the JS ecosystem.
- can't start when the OS starts
- can't integrate with the UI (task bar, explorer menu, etc)
- can't run a server in the background for native perfs (like most electron apps actually do)
- can't open a server or a communication bus to allow apps cooperation, or playing well with the OS
- can't access the file system in any meaningful way to provide any kind of scanning ability
- can't store data reliably, or in any reasonable quantity
- can't call other local apps, run commands, etc
- can't access local libraries: so you do the crypto, hashing, dataprocessing in pure js
- can't access any non standard peripherics
- can't use the network, forget about avahi/bonjour, broacasting, capturing packets or doing CORS
Unfortunately, yes.
Maybe it would make sense that we just focus on optimizing Electron for this case. That might take a bit of effort, but that effort might be worth it.
I use it to manage things to do, listing, etc., but I would not use it for taking notes, IMO. The format doesn't look great for it.
Anyway, the free plan is good enough to try it on, and the customer support excellent.
I hope it will never be bought by some giant.
I've tried Evernote, Boostnote, Simplenotes, Notion, even a bunch of markdown files inside a Github repo and so far nothing was 100% perfect for me. :)
Imagine what these massive companies could do if they made their own native clients.
Doesn't Telegram use Qt?
I'll edit
As much as we all have strong opinions about Electron, surely someone who is able to make a solidly built "DOM+CSS+JS+Optional extras" version of Electron would be make _bank_ overnight by servicing and consulting for it? I know lots of companies would love a build of Electron with a smaller attack-surface, for example.
- the network code
- the video and audio playing code
- the video and audio capture code
- the crypto code
Making that generic is a huge task nobody will every do. So since you embed them, why no elso embed the UI code ? I mean, at this point...
https://github.com/electron/electron/issues/673
I suppose one issue is that you have to either be very good with backwards compatibility or at least support having a single instance of multiple different versions of the runtime installed side-by-side (e.g. similar to .NET Core).
There is also this.. 'Exploring lighter alternatives to Electron for hosting a Blazor desktop app' [1], which builds upon 'webview' [2].
[1] https://blog.stevensanderson.com/2019/11/01/exploring-lighte...
This is one of those comments that has the same effect as its opposite (in this case, changing the subject).