You are viewing a single thread.
View all comments View context
134 points
*

Don’t worry, texteditor.com is also available as an app on Windows, macOS and Linux thanks to Electron.

It only needs 300 megabytes and you can style it with CSS.

permalink
report
parent
reply
60 points

It also only takes a single gigabyte of RAM per file being edited, Isn’t that fantastic?

permalink
report
parent
reply
30 points

Oh I love electron

permalink
report
parent
reply
8 points

Man it’s not lightweight, but damn, if CSS and JS isn’t a really easy way to build cross platform UIs than other options like Qt. There’s a reason why electron is so popular.

permalink
report
parent
reply
5 points

Shhhh, don’t tell anyone

permalink
report
parent
reply
3 points

Oh no, I love electron. That’s not a dig on it, it’s just very much a resource hog.

permalink
report
parent
reply
21 points
*

So was all this bloat inevitable as hardware got better, or is there a way to go back? It feels like a ripoff that our computers are 1000x better but they’re maybe 10x faster once all the shitty software is taken into consideration.

permalink
report
parent
reply
21 points

Perhaps it’s kind of inevitable to have some bloat. For example apps these days handle most of the languages just fine including emoji, LTR/RTL and stuff. Some have pretty decent accessibility support. They can render pretty complicated interface at 8k screen reasonably fast. (often accelerated in some way) There is a ton of functionality baked in - your editor can render your html or markdown side by side with source code as you edit it. You have version control, terminal emulator, language servers, etc…

But then there’s Electron, which just takes engine capable of rendering anything and uses it to render UI, so as a result there’s not much optimization you can do. Button is actually a bunch of DOM elements wrapped in CSS… Etc… It’s just good enough for the “hardware is cheap” approach.

I think Emacs is a good example to look at. It has a ton of built in functionality and with many plugins (either custom configuration or something like Doom Emacs) you can have very capable editor very comparable to the likes of VS Code. Decades back Emacs had this reputation of being bloated, because it used Megabytes of RAM. These days it’s even more “bloated” due to all the stuff that was added since. But in absolute numbers it does not need as much resources as its Electron based peers. The difference can easily be order of magnitude or more depending on configuration.

permalink
report
parent
reply
2 points

I am working on an application using DevExpress XAF. It allows you to build a big enterprise application relatively quick by doing a lot of the dirty work you would otherwise do yourself for CRUD stuff. A lot of the application can be modified through mere clicks without touching a single line of code.

It is cool but kinda bloaty. When you simply launch an XAF application, it uses 300 megabytes of RAM. And that’s before you even loaded a single byte of business data. You have just reached the login screen.

At least i felt it was “kinda bloaty” until i first booted Void Linux on my gaming PC at home and took a look at htop. IT’S ONLY 400 MEGABYTES AND IT’S READY TO USE! MAYBE ADD 200 MEGABYTES FOR KDE!

ALL THIS BLOATING CANNOT CONTINUE! WE HAVE TO TAKE ACTION IMMEDIATELY OR WE WILL BE FOREVER DOOMED TO UPGRADE OUR RAM LEST WE DON’T WANT EVEN A FUNCTIONING TEXT EDITOR!

permalink
report
parent
reply
9 points

I have a few suggestions:

  1. Better education. Don’t scare people who’re learning programming away from the lower-level stuff, especially as people are even getting scared to use type declarations, not just the pointers (of which I was fearmongered with in college, as they told me Java is the future).
  2. Better portable APIs. Thanks to WebAssembly, one could easily have both something portable in a web browser and as a native desktop app, except instead we get browsers running said applications. I had some thinking about such a project, but then I remembered my iota project (a D-native replacement of SDL/SFML/GLFW, but without bloat by including standard library features), and then stopped thinking about it immediately, since a much smaller project already causes me too much headache. (Someone has a handy guide on win32 API? I have issues on getting certain messages produced, like input language change, and I don’t know if I glimpsed over some functions that enable them and just weren’t included in the documentation of the input language change event codes.)
permalink
report
parent
reply
5 points
*

You know, I haven’t worked on a super big project, but I feel like every time I’ve gotten a type error in a static language it’s pointed to something wrong with my underlying reasoning.

permalink
report
parent
reply
6 points

nope. The bloat is there mainly because it makes the job easier for the devs.

permalink
report
parent
reply
7 points

In the short run, yes. In the long run, this just makes a bunch of coders that are now afraid of type declarations, because they were scared away from it with the “what if you have to choose?” tagline, thus making turning back to the proper way of doing things harder.

permalink
report
parent
reply
4 points

I was thinking about this a bit. Does that mean you can develop a piece of software much more cheaply now? I have a fear that companies writing software get a 10% discount from writing bloat, while clients wind up using 10,000% the resources and are just so used to it they don’t complain.

permalink
report
parent
reply
4 points

It’s not really inevitable, it’s just a consequence that develops can get away with being lazy because the hardware can cope with it.

permalink
report
parent
reply
10 points

Of course! And it definitely does not try to pry all info about the user that it can and definitely the company behind would not use that in any way.

permalink
report
parent
reply
8 points

And then youll only need a near 16gb of ram to text a text file.

permalink
report
parent
reply
2 points

I like that you can just install it straight from the Windows Store, no need to even bother opening Edge to download it.

permalink
report
parent
reply
8 points

…from the Windows Store

who dare speak of the runes?

permalink
report
parent
reply
5 points

SPEZ!!! I love spez! He’s so nice he did r/place again! Also, windows store?? I only know apt

permalink
report
parent
reply
2 points

Why is your profile picture the hyprland logo lmao

permalink
report
parent
reply
4 points

And the app is just a chromium browser without the ability of typing in your own URL.

permalink
report
parent
reply
2 points

That’s a very lightweight one. Stakeholders say it needs to be at least 600mb.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.7K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments