58 ms·
The November 2020 M1 machines are nearly getting to daily usability in Linux. Support for screen brightness adjustment, the webcam, speakers and mic are the r
by londons_explore 4y ago
The November 2020 M1 machines are nearly getting to daily usability in Linux. Support for screen brightness adjustment, the webcam, speakers and mic are the remaining things for day to day use for me. All look like they should be working in 6 months-1 year.
It's a bit of a shame that the RAM is so limited on all those platforms - I can't imagine it being enough to load many electron apps in a few years time.
- infocollector 4y agoI am waiting to try this on the 16GB RAM M1. M2's have 24G or more available. I think this will be my goto machine for Linux.
- that_guy_iain 4y ago> I can't imagine it being enough to load many electron apps in a few years time. I honestly hopoe Electron has to improve it's performance or companies start moving off of it. It's honestly a bit of a joke at this point.
- chrisweekly 4y agoDesktop PWA is becoming a pretty reasonable alternative.
- cguess 4y agoI don't want to run a web browser to run a desktop app. I don't care how useful it is to run JS and HTML from a dev standpoint it's an absolutely absurdity that my desktop app has a CORS vulnerability.
- moonchrome 4y agoThen you probably won't get Linux desktop support at all. Linux camp should be cheering electron.
- that_guy_iain 4y agoHonestly, if the other OSes had decent native apps for some of these things I would probably switch. There is just something wrong with Spotify using 1gb when it was just opened and never used.
- kelnos 4y agoAh yes, let's just take those table scraps and be thankful for them...
- Melatonic 4y agoI could be wrong but I feel like literally running some kind of little mini virtualized instance and just running a desktop app meant for OSX or Windows could end up being more efficient than running a whole browser.....
- _piif 4y agoOr running a more optimized app meant for Windows using WINE.
- BackBlast 4y agoNot necessarily. If you're running the browser anyway, and the app is a PWA and can share that same instance. The "browser" overhead is not really there. A native app, lets say that wants to play video and is using a cross platform GUI. You've got to load and run that code, and have all the relevant code in the native app's address space. That would be a bunch of code that needs to load over the PWA which is leveraging something you have loaded in RAM anyway. In this case the native is actually worse than the PWA for resource utilization. Launch CPU cycles can be similar, running a huge swath of GUI code for the native app vs a pre-loaded browser which only needs to run the JS and render the page. Having your app's runtime already loaded on the system is a huge advantage. Electron does not benefit from these advantages though. These are PWA exclusive advantages.
- pseudosavant 4y ago> my desktop app has a CORS vulnerability. Yes, because CORS, a way that HTTP requests are restricted, doesn’t even exist in native. Of course a native app can reach out to any URL it wants. That is the default, and also how CORS functions when disabled or bypassed.
- BackBlast 4y agoSomehow a security feature in browsers called CORS, that isn't present at all in native apps, is both a vulnerability and a downside? I don't understand this line of thinking.
- unicornhose 4y agoPWAs _can_ get better and more platform-friendly though. It's two bad choices right now.
- enlyth 4y agoAre you all using some rare electron apps that are unknown to me because I keep hearing this meme repeated but when I look at my RAM usage[0], it never corroborates this. I just don't see how 220MB for Discord is unreasonable in any way, when Firefox with 8 tabs takes 1.2GB. Telegram written in Qt meanwhile takes 200MB, literally no difference to Discord, an electron app. [0] https://i.imgur.com/cfCRWDS.jpg https://i.imgur.com/cfCRWDS.jpg
- xxpor 4y agoBecause weechat uses <18 megs?
- enlyth 4y agoDoes weechat support rich embedded media like images and videos, can you live stream games to your friends on it, talk with people, have profile avatars, use emotes, build bots that stream music to you? Even something completely simple such as snip a portion of your screen and paste it in the chatbox so others can see it immediately, without having to mess around with dodgy image upload sites. This is basic functionality for 2022. It's like comparing notepad.exe to Microsoft Word
- xxpor 4y agoI've sent plenty of pictures over DCC in my day. OBS lets me stream whatever to wherever at unlimited quality without paying. The point is most of what Discord provides is low value for the resources it demands.
- e63f67dd-065b 4y agoEDIT: ignore me, I thought this was about WeChat, the Chinese messaging app, not weechat, the IRC client :( > rich embedded media like images and videos Yes > live stream games to your friends on it no (there's WeChat livestream (idk what it's called in English), but it's not discord style stream-your-desktop) > talk with people yes > have profile avatars yes > use emotes yes > build bots that stream music to you yes > Even something completely simple such as snip a portion of your screen and paste it in the chatbox so others can see it immediately, without having to mess around with dodgy image upload sites yes? you can paste stuff into wechat just fine. Think WhatsApp, not IRC Idk where GP came up with 18MB tho, it's eating up 100 on my laptop right now.
- brundolf 4y agoA chrome process normally takes up about 100-200MB RAM. Are you running 8GB/200MB=40+ different electron apps at once?
- alluro2 4y agoI assume you mean when nothing is loaded in it, or it's showing a plain HTML page. 1GB+ is completely common for a lot of Electron apps in real use. If you run a dev environment and are using 2-3 Electron apps, 16GB will be a struggle. Currently sitting at 29GB (on M1 Pro), just for regular web dev environment on MacOS.
- brundolf 4y ago> I assume you mean when nothing is loaded in it Yes, but that's normally what people mean when they talk in broad strokes about "electron apps". Anything beyond that is application data, which is going to be roughly the same regardless of stack, and in nontrivial apps quickly comes to dominate. > Currently sitting at 29GB (on M1 Pro), just for regular web dev environment on MacOS I mean, I assume you're using more than just some regular electron apps. macOS itself is currently using 8GB of RAM on my machine, my docker VM is using 4GB (down from a default of 8GB), etc. And that doesn't include my IDE and its code-scanning and type-checking background processes.
- seabrookmx 4y agoDoes that include docker (a VM?) Does that include file system cache? Having a system with lots of RAM, the OS does it's best to use it. Just because you see 29GB used doesn't mean you'd see a noticeable performance dip on a 16GB machine. You might, but it really depends what that RAM is being used for.
- kitsunesoba 4y agoIt's technically Chromium Embedded Framework instead of Electron, but last time I used the Spotify desktop client it was possible to push its RAM usage past 512MB up to the 1GB mark just by clicking through albums and artists. For something extremely functional like a VS Code, which is a mini-IDE of sorts, that might be excusable but it's beyond silly for a streaming music player.
- Shorel 4y agoIt's enough memory for most applications that are not Electron. Not to say that it should not have more, far from it. But the Electron framework is so wasteful, compared with basically all the alternatives. I wish the framework developed for Sublime Text were not secret.
- dilap 4y agoYeah it's funny that every cross-platform UI kit seems to suck, but both Unity and Sublime have in-house custom things that are good. Que pedo, wey.
- smoldesu 4y ago> It's a bit of a shame that the RAM is so limited on all those platforms As long as you didn't get one of the single-channel SSD models, it would make plenty of sense to give yourself a 16 gig swapfile (or something of the sort).
- jlokier 4y agoMacOS creates swapfiles automatically as needed (in /var/vm). It will allocate a lot more space to swap than the size of RAM, if it determines that's useful. It's actually a problem, if you're low on SSD space the filesystem can fill up with swapfiles while the system is still reasonably functional because the SSDs are fast enough. Then because of an APFS design fault, sometimes it isn't possible to delete any files to free up space. It says "out of disk space" when you try to delete a file.
- ask_b123 4y agoYes; I have to restart my computer whenever that happens.
- lalaithion 4y agoI use one as a daily driver and run Chrome, Slack, Spotify, and VSCode simultaneously and it’s been fine.