News for hackers. Stuff that matters.
Re:Revolt: Open-source alternative to Discord by kingofclams on Monday September 06, 2021 @12:19PM (#28435231)
Personally I see “Written in rust” as more of a meme, often using buzzwords like “blazing fast” and “memory safe.” Electron is definitely worse than rust is good.
Re:Revolt: Open-source alternative to Discord by mhh__ on Monday September 06, 2021 @12:22PM (#28435248)
> Blazing fast

So have you measured it or do you just mean you haven't implemented as many features? -> Usually the latter.

Re:Revolt: Open-source alternative to Discord by stouset on Monday September 06, 2021 @12:50PM (#28435577)
Cynicism aside, from what I’ve seen it’s been the former. See regex and rg by burntsushi as an example.
Re:Revolt: Open-source alternative to Discord by mhh__ on Monday September 06, 2021 @04:24PM (#28437656)
Don't get me wrong there's a lot of room for speed in programs we use regularly, but I make two observations:

    1. Speed is usually found by by people have worked on 
    existing tools in the space, and they don't often make 
    that much of a song and dance about it beyond that 
    theirs is faster.

    2. Speed is found in the minds of people not in their 
    tools. When you get past a certain amount of native- 
    ness, you get optimizations by knowing more or having 
    a brilliant insight into the problem rather than using 
    a new meme-language. It might be necessary for certain 
    types of programming but it's not sufficient.
Basically I don't like weird meme based marketing of tech. I'm a grumpy old man already and I'm the ripe old age of 20
Re:Revolt: Open-source alternative to Discord by stouset on Monday September 06, 2021 @09:46PM (#28439975)
You were the one that cynically asked if the advertised performance improvements were real or imaginary, not me.

To your point, many of the improvements from Rust-based tools appears to come from the ability to express performant semantics safely and elegantly in the language. You could write an equivalent in C, but the Rust one comes naturally, can be expressed at a higher level with better abstractions, and often comes out with top-tier performance before even investing in microoptimizarions (as long as the Big-O performance is in check).

Re:Revolt: Open-source alternative to Discord by curun1r on Monday September 06, 2021 @01:22PM (#28435911)
I’ve always seen “written in Rust” as relevant for a specific sort of software. Because CVEs are inevitable in C/C++ software and dealing with CVEs has become part of the user interface to that software. Knowing something is “written in Rust” means its attack surface is much smaller. Working in tech, the “drop everything and migrate to a version that isn’t vulnerable” instances are far too common and disruptive.

But as soon as you get into consumer software with auto-update mechanisms and an expectation that end users won’t be computer professionals who know how to read a CVE and evaluate its urgency, the “written in Rust” distinction becomes a mostly irrelevant implementation detail. Or, worse, it’s an indication that the GUI will feel wrong in some way because the Rust community seems averse to writing GUIs with GTK, UI Kit and whatever the hell Microsoft recommends using for Windows these days.

Re:Revolt: Open-source alternative to Discord by hutzlibu on Monday September 06, 2021 @01:31PM (#28435991)
"Electron is definitely worse than rust is good."

I would say, it depends very much on the developer. There are probably only a handful of people, who can write a fast GUI in C/++ that is also safe, plattform independent - and a joy to use.

(I am definitely not among them)

But there are a ton of devs, knowing how to accomplish it - with the webtoolkit.

In other words, I indeed would prefer a electron app, over some hacked together GUI in a "performant" language. Security, performance - and UX wise.

Re:Revolt: Open-source alternative to Discord by pjmlp on Tuesday September 07, 2021 @01:55AM (#28441387)
Thankfully there is no C++ on Electron.
Re:Revolt: Open-source alternative to Discord by Griffinsauce on Monday September 06, 2021 @12:54PM (#28435627)
Is Rust as blazing fast as Electron is slow?
Re:Revolt: Open-source alternative to Discord by grishka on Monday September 06, 2021 @12:59PM (#28435678)
But Rust runs on the server while Electron runs on the client. You can't compare them like that!
Re:Revolt: Open-source alternative to Discord by ginko on Monday September 06, 2021 @01:20PM (#28435890)
Rust is about as fast as C++, so I'd call that normal speed.
Re:Revolt: Open-source alternative to Discord by pizza234 on Monday September 06, 2021 @01:34PM (#28436026)
Electron is not necessarily slow - see Visual Studio Code; it's certainly not as reactive as Sublime Text, but it's fast/reactive enough.
Re:Revolt: Open-source alternative to Discord by Griffinsauce on Sunday September 12, 2021 @02:29AM (#28499044)
I know, it was a (admittedly vague) joke.

People rag on Electron with the same shallowness as they praise Rust. I bet you can make slow things in Rust. It's all a soup of trade-offs, resource management and hype.

Re:Revolt: Open-source alternative to Discord by jasonhansel on Monday September 06, 2021 @01:34PM (#28436024)
The issue is that the alternatives to Electron--GUI frameworks that use native controls--are so hard to use and inconsistent that Electron seems good by comparison.