this post was submitted on 10 Oct 2023
756 points (96.8% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] randomaccount43543@lemmy.world 104 points 2 years ago (9 children)
load more comments (9 replies)
[–] jmcs@discuss.tchncs.de 84 points 2 years ago (3 children)

*Badly outdated Chrome with a bunch of critical vulnerabilities.

Don't forget every Electron app comes with its own Chrome.

[–] qaz@lemmy.world 39 points 2 years ago* (last edited 2 years ago) (2 children)

Last time I checked the version Electron used by Discord was severely out of date causing several issues that had been solved months ago upstream. That’s the fault of Discord, not Electron but there are several issues with Chromium that I have to deal with on every Electron app I use. Compose sequences are still partially broken. I reported it at Chromium but they responded with a video of them testing it on Windows (not with a VM), said they couldn’t reproduce the issue (with a Linux specific input method?!) and then marked it as unreproducible.

[–] jmcs@discuss.tchncs.de 21 points 2 years ago (3 children)

Wait, you're telling me that Discord is probably still vulnerable to the Webp RCE vulnerability?

[–] SmoothIsFast@citizensgaming.com 18 points 2 years ago

They use plain text and there biggest shareholder is the Tencent (the CCP let's be real) are you surprised? It's literally a data farm for China...

[–] dinckelman@lemmy.world 7 points 2 years ago

They updated to a version that included a patch for that exploit, however it doesn't matter in the grand scheme of things, because they're still on 22.x, support for which has already been terminated

[–] qaz@lemmy.world 7 points 2 years ago

They probably manually added the patch.

[–] halva@discuss.tchncs.de 9 points 2 years ago (1 children)

Problem is, for any somewhat big project (like discord) updating Electron without something breaking is a nightmarishly complex venture as Electron doesn't seem to care about backwards compatibility.

[–] ICastFist@programming.dev 11 points 2 years ago (1 children)

The error is in picking Electron in the first place. One particular case that I've had with several Electron apps are zombie processes. You close the window, but you check the task manager and see 4-5 processes hanging in there, eating resources for no reason.

[–] qaz@lemmy.world 3 points 2 years ago* (last edited 2 years ago) (1 children)

I agree that it’s silly to package your app as a website with a browser but what other options do you have? GTK is difficult to get working on Windows, wxwidgets requires installing libraries on every system and Qt is either paid or LGPL. The only real crossplatform options seem to be Flutter and some .NET frameworks.

[–] ICastFist@programming.dev 4 points 2 years ago

FreePascal + Lazarus have been desktop crossplatform for many years. "But it's Pascal! Nobody uses Pascal! And the defaults are fugly!", fair enough, but it offers compatible crossplatform UI with a single codebase.

Java also lets you write UI stuff and keep a single codebase for multiple platforms, thanks to the JVM. It always looks "weird" or "ugly" next to whatever OS's default UI is and also needs a compatible JRM installed, but it works.

Nowadays, web/javascript projects can opt for Tauri or Neutralinojs instead of Electron. They use the OS's native HTML renderer, no browser required.

[–] RacoonVegetable@reddthat.com 9 points 2 years ago

And they thought snaps were dumb

[–] rdri@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

Steam is using CEF v85 (not Electron but still). Should have gone "please be aware to not visit even slightly shady websites until we update it" but instead went "oh you must like security, so we announce that we will drop Windows 7/8 support in half a year (because ~~CEF~~ Microsoft doesn't support it anymore) so you could play your games more securely".

[–] Vincent@kbin.social 52 points 2 years ago (3 children)

Y'all, there's a full video, this single image doesn't do it justice: https://birdbutt.com/@barnibu/110995778137311940

[–] solivine@sopuli.xyz 22 points 2 years ago

Lol edge at the end got me

[–] HKayn@dormi.zone 14 points 2 years ago

The fact that the frame rate of the camera pan doesn't match up with the frame rate of the props is kinda nauseating ngl

load more comments (1 replies)
[–] RacoonVegetable@reddthat.com 46 points 2 years ago (2 children)

Screw chromium! All my homies hate chromium!

[–] cheerjoy@lemmy.world 38 points 2 years ago (1 children)

Please don't screw chromium, you might cut yourself on the edges.

[–] RacoonVegetable@reddthat.com 16 points 2 years ago* (last edited 2 years ago)

😳 thanks for the heads up. Because if I’m gonna cut myself down there I’m gonna scream like I’m in a Vivaldi Opera. And you know me — I was definitely Brave enough to have some Steamy “Noah get the Ark” action with it, so you literally saved me.

BTW I heard that Chrome is bad for the environment because it’s so resource intensive. That’s why me and car manufacturers are getting rid of it.

Plus I hate how it looks and feels. I would much rather get stranded in a Safari than have to stand how chrome looks.

[–] Illecors@lemmy.cafe 13 points 2 years ago (2 children)

It is not clear from this pictures whether these drums are finger size or building size. Need more perspective!

[–] RacoonVegetable@reddthat.com 7 points 2 years ago

Least scuffed Aliexpress experience

[–] CanadaPlus@lemmy.sdf.org 2 points 2 years ago

This could actually be a render, WTF is that surface they're on. They look like the way sheet metal comes from a foundry, though, in which case they'd be person sized.

[–] technologicalcaveman@kbin.social 43 points 2 years ago (4 children)

'Ate chrome
'Ate system d
'Ate GNOME (not racist just don't like it)

Love me firefox
Love me openrc
Love me TTY and DWM
Love me Gentoo

[–] redhilsha@lemmy.ml 10 points 2 years ago (8 children)

wayland is the future old man

[–] Dirk@lemmy.ml 4 points 2 years ago (1 children)

Wayland can't even remap keys to other characters.

load more comments (7 replies)
[–] Gleddified@lemmy.ca 4 points 2 years ago
[–] gronjo45@lemm.ee 4 points 2 years ago (1 children)

I want to get better at using TUIs and all the lot of lighter-weight software, but I've quite frankly been too stupid to learn it.

I downloaded Gentoo onto an old Chromebook with the Mr Chromebox script. Currently am trying to make it into a sandbox for me to learn more about how init systems, compilers, and other lower level OS details.

Other than reading the Wikis, are there any projects that you'd suggest to increase one's ability in those realms? Thanks!

Really what got me to learn to use the terminal more was downloading systems without tons of gui apps. Most base systems will be like that. In general my only gui apps are a file browser, web browser, and audio tools. Debian, arch, gentoo, nix. Avoid stuff like mint or endeavour if you want to force yourself into learning the terminal. The more you use it, the better you'll get. Using gui apps isn't bad, sometimes it just works better for specific actions. But knowing how to use the terminal helps for when nothing else works.

[–] sebinspace@lemmy.world 3 points 2 years ago

Oh hi, Cave :D

[–] thepiguy@lemmy.ml 25 points 2 years ago (1 children)

Leave me in the "past" with my gtk4 applications please.

[–] TCB13@lemmy.world 17 points 2 years ago (3 children)

Isn't that Webkit as well? lol

[–] thepiguy@lemmy.ml 11 points 2 years ago (1 children)
[–] TCB13@lemmy.world 3 points 2 years ago

😂 😂 😂

[–] blujan@sopuli.xyz 3 points 2 years ago

Webkit's not chrome, tho, not even close

[–] Quik 2 points 2 years ago

I’ve always wondered how much that slows down GTK compared to a more native version to draw stuff…

[–] jackmarxist@lemmy.ml 20 points 2 years ago (1 children)

Is there a Firefox powered framework like electron?

[–] sheogorath@lemmy.world 21 points 2 years ago* (last edited 2 years ago) (1 children)

gluonjs could be an alternative. IIRC there's another framework similar to Electron that uses native system WebView for rendering and Rust for interfacing directly with the OS, the name escapes me for the moment though.

Edit: I remembered the name! It's Tauri

[–] ICastFist@programming.dev 15 points 2 years ago (2 children)

NeutralinoJS is an option similar to Tauri. You don't need to bundle a whole fucking browser just to run a couple of webpages with some javascript.

[–] sag@lemm.ee 2 points 2 years ago* (last edited 2 years ago) (1 children)

Which is better? Both look promising I want to know which is more lightweight. I am trying to port a electron application to tauri started 2 days ago. I want to make my application fast as possible.

[–] ICastFist@programming.dev 3 points 2 years ago (1 children)

I haven't done anything with javascript in over 6 years, so I can't say which is better.

This comparison might be useful to you. Tauri gives a smaller executable for Windows compared to Neutralino, but slightly larger for Mac and Linux. Also, Tauri's build times are orders of magnitude longer (5 minutes vs 1 second for Neutralino), I'd like some confirmation on your part if that's indeed the case. One thing that really caught my attention, however, is how huge a memory hog Neutralino is on Linux, 700MB for an "empty-app-frameless" project!!

https://github.com/Elanis/web-to-desktop-framework-comparison

I'm actually curious in trying these two out myself, especially to see if the tauri build times are that bad, and if neutralino's RAM usage is so high on linux.

load more comments (1 replies)
load more comments (1 replies)
[–] dgbbad@lemmy.zip 11 points 2 years ago

Cyberpunk 2077 proves this to be true.

[–] trailing9@lemmy.ml 10 points 2 years ago

All refs load into ChRome.

[–] Saigonauticon@voltage.vn 3 points 2 years ago

It was the best scene in Mad Max.

load more comments
view more: next ›