Damian Heaton is a user on niu.moe. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

why should I upgrade my RAM can't people stop building electron apps instead

Damian Heaton @lyrenhex

@quad @Pasty I don't mind electron, but an OS built on Node? No thanks. Please no. Stop.

@lyrenhex @Pasty Electron is nice for small projects that just need to work fast and you use once in a while. Then the inefficient use of resources doesn't matter as much.

I'm overly annoyed at things that intend to be open all the time using it though. Like Slack and Discord

@Pasty @lyrenhex It's fine if that niche application I only need to use once or twice a week consumes 4x the ram it should need to. There's not enough demand to put effort into optimizing it and making it just work matters more.

But the top chat apps that want to stay running 24/7 really shouldn't drain half a gig of my ram, or even more when they leak or if you're in lots of channels

@quad @Pasty can agree with that, particularly as discord is marketed to gamers, who really don't need an app eating their system resources.

@quad @Pasty Yeah. I'm somewhat irritated that pretty much all of the decent text editors that I like the design of (VSCode, Atom, and Brackets iirc) all use electron when they really don't need to.

A node OS though? That's like one built only in Python: there's a good reason we don't do it.

@lyrenhex @quad @Pasty Wait, why don't we make a Python OS? I legit want to know, sounds great if you manage to make it run with AOT/JIT.

@espectalll @quad @Pasty Python tends to run inherently slower than languages such as C traditionally used for operating systems, because it's built on top of them. Not certain as to the technicals of implementations such as PyPi, as to whether they would be quick enough, but generally it's just that Python would be too slow a language.

@lyrenhex @espectalll @Pasty Thus the speed of those OS components would bottleneck whatever faster applications relied on them

@quad @espectalll @Pasty yep. I could see games or any form of physics rendering applications struggling a lot on a Python-based OS.

@quad @lyrenhex @Pasty You don't have to write and run the kernel in pure Python, lol. No bottleneck if you still support something such as ELF binaries and let things run on their own processes.

Also "OS" != "OS for all purposes", it doesn't have to be intended for desktops or professional gaming or whatever.

@lyrenhex @espectalll @quad @Pasty CPython doesn't even have JIT, it just has pre-compiled bytecode (not binary) and it doesn't run that much smoother. Python is not inherently slower, it's just that the implementation devs don't care about speed that much.

Please do check out *PyPy (PyPi is the official library repo), it's not perfect but it's a thing. There's also Jython and IronPython, but they seem quite old at the moment.

@espectalll @quad @Pasty ahah, it's been a while since I worked with Python in any considerable fashion 😂 thanks for the correction! Remember looking at it a while back but never went much deeper since it didn't quite have some libraries I wanted at the time.

@lyrenhex @quad @Pasty It now supports NumPy and Pandas, it got a lot better! You may miss a thing or two, though.

@espectalll @quad @Pasty ah, nice! I'll probably take a look at it again sometime soon, just once I feel a bit more comfortable with Go.

@quad @lyrenhex @Pasty
Legit I've been thinking of using the discord api to make a slim command line client one of these days. Only problem is I'll mainly be using discord when booted into Windows and I plan to keep the installation pretty slim, so I don't want to throw cygwin into the mix really

@quad @lyrenhex @Pasty
Visual Studio Code consistently consumes ~38mb so it's perfectly possible to create lightweight Electron apps

@quad @lyrenhex @Pasty
Okcheckedagain and it is around 300Mb

But then again I had +130 extensions installed,and sure is mote light than Eclipse for around the same funcionality

@pasqui023 @quad @Pasty Eclipse is a full IDE for Java though, VSCode is a *text editor*. A fancy one, true, but it still seems somewhat... Bloated.

@lyrenhex @pasqui023 @Pasty Yeah you don't compare text editors to IDEs. The only remaining decent text editor I know of that's not Electron would probably be Sublime

@lyrenhex @quad @Pasty
A text editor that can fully replace Eclipse
From that point of view is light

@pasqui023 @lyrenhex @Pasty
1. I doubt it actually fully replaces Eclipse. You've probably only enabled the extensions you need, not everything Eclipse does
2. Eclipse is also known for being just as bloated as most IDEs often are. Though that's generally due to them just cramming in way too many features and having giant codebases. Not because of their framework like Electron text editors