this post was submitted on 12 Aug 2023
773 points (96.4% liked)

Programmer Humor

33603 readers
13 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Dirk@lemmy.ml 167 points 2 years ago (26 children)

Web 2.0 or: “Instead of loading all code from the same URL the website now needs a dozen of different scripts from a dozen of different URLs, gives a shit about CSP and only shows a blank page when JS and/or cookies are disabled.”

[–] MyFairJulia@lemmy.world 135 points 2 years ago* (last edited 2 years ago) (25 children)

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.

[–] gabe@literature.cafe 58 points 2 years ago (5 children)

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

[–] Totendax@feddit.de 30 points 2 years ago (3 children)
[–] scarilog@lemmy.world 8 points 2 years ago

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.

[–] roi@lemmy.blahaj.zone 5 points 2 years ago

Shhhh, don’t tell anyone

[–] gabe@literature.cafe 3 points 2 years ago (1 children)

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

[–] theterrasque@infosec.pub 3 points 2 years ago* (last edited 2 years ago)

It doesn't have to be.

One of my experiments, an overlay for a game using camera position API to draw a 3d scene over the game, rendering things as if they were in the game (with some limitations) uses electron and three.js

It's pretty fast, uses about 100-150mb ram, and works pretty well. A similar overlay using same approach but written in C and opengl take ~200+ mb and a c# one 150-250 mb. The c# one has more features overall so it's not a complete comparison, but then my overlay can do things the other can't too.

load more comments (1 replies)
load more comments (20 replies)
load more comments (20 replies)