For anyone considering Electron: take a look at Tauri. It’s another way to build cross-platform apps with web tech. It will use the OS‘s web rendering engine instead of shipping Chromium which results in much smaller binaries and faster startup times and less RAM usage. You can also write native code in Rust. It’s like Electron but good.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Bad for Linux at the moment...
That being said, it won't improve just by saying it's bad for Linux, if you work as a maintainer in a distro, or know a lot about Linux and rust to help their development then please reach out!!!
The sooner tauri is usable everywhere the more people will prefer it
I didn't try out a Tauri app on linux yet, I just know that it's generally supported. What doesn't work (well) as of now?
First I've heard of this. What's wrong on Linux?
Outdated theming and ~~several widgets(?)that aren't implemented~~ general instability such as random crashes, code not behaving similarly to Mac or Windows, slowdowns, missing packages in builds, a lot of window resizing issues and uh, fuck load of appimage issues
There's actually a pretty cool music player project I'm keeping an eye on called Audioling that's built on Tauri. I currently use one called Feishin which is pretty good.
I think VSCode is the only stable electron application and even then it took them like 5 years to reach passable stability lol.
Used to crash and combust all the time when I first tried it.
Zed is native and it has way better performance! You can tell it's not Electron!
Etcher seems stable! But it's also a well over 100 MB download for a disk image writer. Rufus does more in less than 1% of the download size and also has a GUI.
Electron and unreal have been disasters for their industries
Bruh i rant against both weekley
Everything runs like shit now. My old xp retro gaming pc feels snappier than my new one.
I think there's a very large correlation between people that decide to use electron and people that write unusable, broken, tortoise-speed software.
Because it really doesn't need to be slow for user-interacting software. In fact, I don't think any platform exists that is so bloated that it can make modern computers slow for user-interaction.
Some people are still waiting on a text editor that never lags.
Is Unreal worse than Unity? I’ve only ever heard people complain about the latter
Unity is bad as a company but unreal runs poorly and yet is being used in a LOT of games for no reason. Similar to Electron.
I think a lot of the plugin tooling for Unreal promotes bad practices with asset management, GPU optimization, and memory management. I'm trying to say that it allows shitty/lazy developers and asset designers to rely on over-expensive hardware to lift their unoptimized dogshit code, blueprints, models, and textures to acceptable modern fps/playability standards. This has been prevalent for a few years but it's especially egregious now. Young designers with polygon and vertex counts that are out of control. Extraneous surfaces and naked edges. Uncompressed audio. Unbaked lighting systems. Memory leaks.
I've found that in my personal experience in experimenting with Unreal, the priority matches developing DNNs and parametric CAD modelling applications for my day job: effective resource, memory, and parallelism management from the outset of a project is (or should be) axiomatic. I think Unreal 5 runs exceptionally well when that's the case. A lot of the time, one can turn off all of the extra hardware acceleration and frame generation AI crap if your logic systems and assets are designed well.
I know this is a bit of an "old man yells at cloud" rant, but if one codes and makes models like ass, of course their game is gonna turn out like ass. And then they turn around and say "tHe EnGiNe SuCkS".
No. Fuck you. You suck.
Unreal pushes a lot of "hip tech" that supposedly improves performance, but often it turns out that many example cases are just really poorly optimised. With more traditional optimization techniques more can be achieved.
Unreal can perform really, really well, it's just that it won't by default. And many devs are too lazy to properly profile their games to figure out how to improve it.
I hate both. Godot for lief
- Yes
- Yes, and also delete Electron
- That, and also make me forget I ever even heard about Electron in the first place
HTML5 applications goddamn well ought to be first-class programs, as a totally platform-agnostic realization of Turing completeness.
Instead you get every application bundled with its own whole-ass operating system and virtual machine. For a fucking webpage. Yep! No other way to run that on a modern computer!
what's are the alternatives? I want ease of writing UIs js/CSS/HTML gives, especially with frameworks like svelte.
I'd highly recommend Tauri. It's much much much faster and you can use svelte for the front end and enjoy all of those benefits.
The "downside" is that all of the backend is written in rust which can be trouble to learn... (Downside is in quotes because rust is my favorite language and I would legally marry it if the law cared about the true meaning of love) However! If you don't care much about the backend stuff or most of that is gonna be simple anyway... Just use it. It's better in every way
Edit for context: I'm the lead developer of a "popular" (it's as popular as you can be as a niche tool for a niche community) open source project that uses Tauri with a svelte front end and rust in the back end.
A webpage.
Or, get this, a PWA.
When gecko electron?
(Yes, I know that there has been effort to that, but at one point having gecko and FF seperate was too much work, so it was merged further, so that it's now even harder to create a gecko-based electron. So basically just create a clean FF profile, add all addons you want (uBlock and noscript are useful for some apps), and make a desktop shortcut to open the web page in that specific profile. Funnily enough, it's more lightweight!)
XULRuner use to exist. I ran Chatzilla under it at one point in time.
Any tech college kid can write an app in common frameworks. I'll admit llm code generators are great when they can translate electron apps to say tauri or even better to QT at reasonable cost :)
- Qt “cute” (the UI framework)
- QT “cutie” (QuickTime the Apple media framework)
QT "cutie" (you 😊😳)
Well that would be even more impressive.
I’m experimenting with a game and rather than deal with platform specific graphics I’m just targeting wasm and webgl and plan to embed my game in a browser runtime.
It feels less terrible than the mess that is linking platform specific logic and code.
But I'll build an electron app, and have support for Linux /s
will it also have blackjack and hookers?
It'll only have blackjack and hookers.