News for hackers. Stuff that matters.
Re:Revolt: Open-source alternative to Discord by jstx1 on Monday September 06, 2021 @12:13PM (#28435160)
Now I want to know if HN hates Electron more than it loves Rust. Or do they perfectly cancel out?
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.
Re:Revolt: Open-source alternative to Discord by PaulDavisThe1st on Monday September 06, 2021 @12:55PM (#28435638)
Ah, the monolithic HN myth again. That's right, let's just ignore that this place has thousands of readers, thousands of commenters, and that there's no thing called "HN" to talk about as it if had intentionality and/or opinion.
Re:Revolt: Open-source alternative to Discord by xeromal on Monday September 06, 2021 @12:57PM (#28435656)
There definitely are trends on HN and while they don't fit a 100% of the population, they drive a lot of the opinions and discourse.
Re:Revolt: Open-source alternative to Discord by rectang on Monday September 06, 2021 @01:25PM (#28435933)
While the readership may be large and diverse, there is nevertheless a Hacker News zeitgeist, especially due to the way downvoting causes comments to be greyed out. The acceptable range of discourse does not extend to anything non-flaggable, and comments do not stand or fall based solely on their thoughtfulness or logic. This forum is still a popularity contest, and there are both winners and losers.
Re:Revolt: Open-source alternative to Discord by PaulDavisThe1st on Monday September 06, 2021 @01:37PM (#28436062)
Greyed out comments are still legible. I regularly see people saying things like "I'm sure my comment will be flagged", and days later, it just isn't. Sure, there's a popularity contest - unless you get rid of voting and display-in-vote-order, there always will be. But I would say that paying much attention to that rather than the contents of comments represents a personal choice to be distracted by the noise of the "contest", even while the signal remains in plain sight.
Re:Revolt: Open-source alternative to Discord by tomrod on Monday September 06, 2021 @01:03PM (#28435722)
Sometimes folks probably feel HN has three people: the person, the people that agree with the person, the people that disagree with the person. Four, if you count moderaters (who I imagine are cooler than Robocop).

Okay, enough navel gazing for me!

Re:Revolt: Open-source alternative to Discord by cartoonworld on Monday September 06, 2021 @12:40PM (#28435462)
Discord is not bad for me wrt resource usage, but it wasn't always good and it had problems. I've been impressed by their development.

The Revolt.chat SPA looks decent, if featureless, and will probably be fine as the project progresses. This has just launched its beta, after all.

Re:Revolt: Open-source alternative to Discord by DiabloD3 on Monday September 06, 2021 @12:18PM (#28435221)
Electron is MAX_HATE, Rust is MAX_LOVE, but Discord is more Electron than it is anything. As in, I don't care if Rust runs on their servers if Electron runs on my desktop.
Re:Revolt: Open-source alternative to Discord by jstx1 on Monday September 06, 2021 @12:45PM (#28435520)
Yeah, Electron feels more like a choice that matters.
Re:Revolt: Open-source alternative to Discord by noobermin on Monday September 06, 2021 @01:25PM (#28435936)
Loves Rust? My eyes glaze over whenever rust is mentioned in a headline. At this point rust really isn't novel anymore, it's a language loads of programs use.
Re:Revolt: Open-source alternative to Discord by neutronicus on Monday September 06, 2021 @01:19PM (#28435887)
Rust people tend to love Electron, since (as with most niche programming languages), Electron is arguably its best GUI story
Re:Revolt: Open-source alternative to Discord by pjmlp on Tuesday September 07, 2021 @01:54AM (#28441384)
The only Electron apps I use, are doing work time as I have no say in what either employer or customer require me to use.

My private computers they are mostly Electron free as far as I can tell, and yes I even pay for Sublime Text.

Re:Revolt: Open-source alternative to Discord by potiuper on Monday September 06, 2021 @01:23PM (#28435916)
Hatred for misleading headlines outranks hatred of Electron.