News for hackers. Stuff that matters.
Re:Revolt: Open-source alternative to Discord by mathw on Monday September 06, 2021 @10:53AM (#28434252)
Not sure "written in Rust" is a headline thing that's worth mentioning anymore. Particularly amusing in this case when parts of Discord are written in Rust too.
Re:Revolt: Open-source alternative to Discord by timdorr on Monday September 06, 2021 @12:10PM (#28435124)
Also, only the backend is written in Rust. The desktop client is an Electron app: https://github.com/revoltchat/desktop
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.
Re:Revolt: Open-source alternative to Discord by Zomatree on Monday September 06, 2021 @12:25PM (#28435293)
Hi, one of the developers here, we use electron because its hard for our small amount of devs (there are about 4) of us to maintain multiple clients, this is the same reason we use the same web client for mobile.
Re:Revolt: Open-source alternative to Discord by ryandrake on Monday September 06, 2021 @12:40PM (#28435458)
Did you consider Qt or some other cross-platform native option? There was just recently a HN article [1] on the topic of cross-platform development and UX, with a few alternatives proposed. I think some teams just reach for the Electron tool by default now, instead of weighing each alternative and then choosing it with eyes open. Maybe your team did examine the pros and cons, but it seems the overall software industry is headed toward a simplistic "Cross Platform Client equals Electron" which is disappointing.

1: https://news.ycombinator.com/item?id=28390732

Re:Revolt: Open-source alternative to Discord by eropple on Monday September 06, 2021 @01:10PM (#28435796)
It reads as though there's some confusion between "simplistic" with "simple". Electron is the simple answer, and "simplistic" is frequently used to try to shit on that. (Its implementation is complex. So is Qt's. But nobody cares about that for either, because it's done.) Qt's definition of "cross-platform" is functionally limited to "Windows, Mac, and Linux" unless you want to do way more work for a way worse result. That's not simple at all.

Qt runs in a web browser via WebAssembly but building an application that way--I mean, if you want that to work, good luck, but it's a presumptuous ask to make of a developer. If you want to have a client somebody can log into via Chrome or Firefox? Hi, now we have two codebases that aren't sharing logic.

Qt also doesn't work well on iOS or Android. Attempts have been made. They're not viable without significant work that "Qt is cross platform" elides, and you're probably forking your entire codebase for what you can actually salvage. And when you've built a Qt application, there's a whole lot less that's reasonably sharable when you eject out of it on those platforms (because you will), as opposed to the large amounts you can effectively share between React and React Native (see also the web-hosted option above).

Re:Revolt: Open-source alternative to Discord by judge2020 on Monday September 06, 2021 @12:51PM (#28435586)
Personally, managing a QT application across multiple OSes is itself harder as I’ve spent a lot of time doing platform-specific UI work (eg. fonts on macOS and DPI scaling problems on Windows) compared to Electron. The only similarity was in doing platform-specific tooling for deployments/code signing which is par for the course.
Re:Revolt: Open-source alternative to Discord by PaulDavisThe1st on Monday September 06, 2021 @12:58PM (#28435659)
Electron leverages web-style development, which Qt (or GTK or FLTK, or JUCE, or wxwidgets, or libui ... etc) does not manage to do in any real sense.

If your dev team thinks in web-like terms, Electron is a more comfortable place to be. Better? I'd agree with you that it's probably not.

Re:Revolt: Open-source alternative to Discord by hutzlibu on Monday September 06, 2021 @01:39PM (#28436077)
"Better? I'd agree with you that it's probably not. "

Not really disagreeing, but "Better" is just constrained by the real ressources at hand. You have a team, specialised in making plattform independent QT apps? Sure, that is what you do. But chances are you don't, so you just target the web as web devs are plenty around.

"Academic" metrics of what is theoretically more preferable as a plattform and should be considered "better" are usually not very helpful to actually build things.

Re:Revolt: Open-source alternative to Discord by PaulDavisThe1st on Monday September 06, 2021 @02:35PM (#28436620)
There's a bit of a chicken-and-egg thing going on here, though. As a close-by comment noted, there are signs of a convergence of thinking towards "cross-platform means Electron", when this is not actually the case (or is not required to be the case).

To the extent that this is true, it acts as disincentive for people wanting to pursue non-web-dev pathways in their careers, which then further limits the availability of such developers, which then further "confirms" the "cross platform is Electron" idea.

Developing with Qt is (I am told [0]) not much harder than typical web equivalents, but it is different. The result is generally more performant, both in terms of UI and also data handling/computation.

[0] I personally work with GTK, not Qt; Qt goes much further with hand-holding developer helpers than GTK does.

Re:Revolt: Open-source alternative to Discord by chipotle_coyote on Monday September 06, 2021 @01:34PM (#28436022)
I suspect "everything is a web app now" has become a really big consideration. JavaScript has essentially succeeded in doing what Java tried to do two decades ago: be the One Language for both client and server. So if you're building a server-client application like a Discord competitor, it sounds like just an awesome idea to be able to use JavaScript to build your server back end and your web app and your various desktop client apps.
Re:Revolt: Open-source alternative to Discord by Yoric on Tuesday September 07, 2021 @11:15AM (#28445879)
FWIW, as a mostly backend/native developer, I know that I've spent way too much time looking for a widget set that works well enough for my needs. These days, if I need a front-end, I'll be targeting the web or Electron.

So, +1 to the developers of Revolt.

Re:Revolt: Open-source alternative to Discord by arcturus17 on Monday September 06, 2021 @12:30PM (#28435355)
People understand this, but they refuse to understand this.

I think it's perfectly reasonable for you guys to do it, and I am pretty certain that most of your userbase won't care.

Best of luck and thanks for dropping by!

Re:Revolt: Open-source alternative to Discord by ognarb on Monday September 06, 2021 @12:54PM (#28435614)
A friend and a bunch of her friends had visibly too much time and implement a chat protocol with a server implementation in rust, one in go and one in swift. As well as a client in flutter, rust (iced), Vue and Qt. https://github.com/orgs/harmony-development/repositories
Re:Revolt: Open-source alternative to Discord by Griffinsauce on Monday September 06, 2021 @01:00PM (#28435688)
Great choice, thanks for being practical and realistic.

Hate on HN does not predict any kind of product metric.

Re:Revolt: Open-source alternative to Discord by lpcvoid on Monday September 06, 2021 @04:02PM (#28437428)
Electron is almost never a great choice for anything. It saddens me to see people on a website for nerds defend it.
Re:Revolt: Open-source alternative to Discord by Griffinsauce on Sunday September 12, 2021 @02:21AM (#28499017)
What is "a great choice"?
Re:Revolt: Open-source alternative to Discord by lpcvoid on Friday September 24, 2021 @08:15AM (#28641325)
In my opinion, highly biased - Lazarus/lcl, wxwidgets, Qt, imgui, in no particular order.
Re:Revolt: Open-source alternative to Discord by dancemethis on Monday September 06, 2021 @01:05PM (#28435751)
Would be amazing if you worded it as Free Software rather than just open source, since the practical and ethical advantages are indivisible, which is a characteristic of the former and not the latter.

Thank you for writing for all.

Re:Revolt: Open-source alternative to Discord by AnIdiotOnTheNet on Monday September 06, 2021 @12:43PM (#28435499)
That's a shame.
Re:Revolt: Open-source alternative to Discord by rektide on Monday September 06, 2021 @01:08PM (#28435776)
it'll be neat to see if ya'll end up near slack or discord levels of resource consumption, or whether you are slimmer/leaner. is this at all a concern of the team? is chat data all kept in memory or does some of it get stored/loaded on demand, in service worker caches or indexeddb or sqlite or other?

on my 4gb, 6 year old daily driver i dont find electron apps to be difficult. personally i dont think it's that worthwhile to try to appease the vast ranks of anti-electron anti-web zealots (i doubt any of them would ever be satisfied no matter how many gains were made). but it would be interesting to hear of folks adopting more advanced techniques to keep resource consumption down.

Re:Revolt: Open-source alternative to Discord by ergot_vacation on Monday September 06, 2021 @12:59PM (#28435680)
Performance is more important that cross-platform support. If a user has money to feed more and more and more resources into a gluttonous, hideously inefficient web browser masquerading as a program, they have enough money to get on the platform everyone else is on.

Discord is an obscene drain on resources. That's the problem that's easy to solve: just stop with the bad programming choices.

That said, I didn't realize at first that Revolt is in fact meant to be a REPLACEMENT top to bottom, and not just a rogue Discord client like Ripcord. You're hawking it on the basis of privacy, rather than speed (since it obviously won't be much better there). But the privacy angle is laughable from the start. Do we run our own servers? It's not clear to me from reading the site. You talk about "creating" servers, but Discord users "create" servers as well: on Discord's hardware. If Revolt genuinely allows for the creation of independant servers, with no control or access by the Revolt devs, that is at least something. If not, I don't see the point.

Re:Revolt: Open-source alternative to Discord by eropple on Monday September 06, 2021 @01:03PM (#28435731)
> Performance is more important that cross-platform support.

You have to be where the people are to make it worth anyone's time to complain about performance.

Re:Revolt: Open-source alternative to Discord by nicoburns on Monday September 06, 2021 @01:02PM (#28435715)
> Do we run our own servers? No, you run them?

The backend and the clients are both open source, so I think the idea is that people do run their own servers. There's certainly nothing stopping you. I assume the hosted server is just for convenience and/or demo purposes.

Re:Revolt: Open-source alternative to Discord by auxym on Monday September 06, 2021 @01:40PM (#28436093)
Not very familiar with Discord, but from what I understand it seems everyone runs their own server? Like every game/topic/etc community has their own server?
Re:Revolt: Open-source alternative to Discord by nicoburns on Monday September 06, 2021 @02:01PM (#28436315)
I think a "server" on discord is more like a "organisation" on slack than an actual server. i.e. it's a tenant partition on a multi-tenant centrally hosted system.
Re:Revolt: Open-source alternative to Discord by rektide on Monday September 06, 2021 @01:04PM (#28435737)
> Performance is more important that cross-platform support

telling the author what their priorities need to be... nice.

Re:Revolt: Open-source alternative to Discord by the__alchemist on Monday September 06, 2021 @12:55PM (#28435631)
One of the wonderful things about rust is it's a nice, modern language with good performance. Electron will be a performance limiting factor.
Re:Revolt: Open-source alternative to Discord by sam0x17 on Monday September 06, 2021 @12:48PM (#28435560)
That's odd honestly because there are excellent rust-based bindings for electron
Re:Revolt: Open-source alternative to Discord by drcongo on Monday September 06, 2021 @11:05AM (#28434369)
On anything you can self-run it's a very useful qualifier. Personally I ignore anything that says "written in Node" because I don't want those headaches.
Re:Revolt: Open-source alternative to Discord by OJFord on Monday September 06, 2021 @11:58AM (#28434983)
It's interesting, I suspect we all have our thing we avoid like that - for me it's Java stuff. I don't say that to 'defend' node, I'm no JS fan boy or particularly experienced with it, it just doesn't bother me the way Java stuff does - the dread I have for a Java stack trace appearing from something I'm trying to run is enough to make me see if there's an equivalent that ticks the same boxes in another language!
Re:Revolt: Open-source alternative to Discord by brabel on Monday September 06, 2021 @12:27PM (#28435310)
These days Java applications are supposed to embed the JVM using jlink images or even native installer (see jpackage). So you shouldn't even know if the app is written in Java when you run it.
Re:Revolt: Open-source alternative to Discord by nick__m on Monday September 06, 2021 @01:32PM (#28436004)
As someone who now does more operation than devloppement, I want my server side Java app to run on a full JVM, attaching jconsle or jstack to a running process is so usefull. No other runtime on Linux gives the observability you get by default when you run on a full JVM.

On Windows that another story since you have ETW which is incredible and works with anything. But on Linux, if your application doesn't offer observability, you have to resort to strace and adhoc EBPF that you have to write, to diagnose a missbehaving application in production.

Re:Revolt: Open-source alternative to Discord by vips7L on Monday September 06, 2021 @03:13PM (#28436940)
The problem with jpackage/jlink is that most teams are stuck on an antiquated runtime and those tools didn’t ship until Java 14 (correct me if I’m wrong about the version). My own company is still making new projects on Java 8.
Re:Revolt: Open-source alternative to Discord by brabel on Wednesday September 08, 2021 @06:29AM (#28455246)
At work, we use some pretty complex stuff in our builds, including linking to C libs, Groovy testing, Kotlin modules, as well as the majority of the code in Java. It took quite a lot of effort, but we managed to move to Java 11 this year.

It's great to be able to use new Java language/platform features. We're moving to Java 17 next year once the dust settles (it will be the first LTS release in 3 years and comes up this month - Sep 2021)... it will be a much easier migration as there's nothing like the big Java 9 barrier to cross.

I can't understand why anyone would start something new in Java 8, all traditional Java tooling already works really well with Java 11 and even Java 17.

Re:Revolt: Open-source alternative to Discord by vips7L on Wednesday September 08, 2021 @09:43AM (#28456836)
> I can't understand why anyone would start something new in Java 8,

Quite frankly: they just don't know better and they just don't care. I could go on for pages, but in short the people running the show are just really inexperienced and are pretending not to be. I'm going to start applying for jobs soon as its beginning to feel hopeless.

Re:Revolt: Open-source alternative to Discord by Aeolun on Monday September 06, 2021 @11:08AM (#28434401)
That’s a shame. Node is quite easy to run.

Biggest problem is that installing any app includes a free black hole.

Re:Revolt: Open-source alternative to Discord by tluyben2 on Monday September 06, 2021 @11:23AM (#28434575)
... if the application was written recently. Get something from last year on your 'now' computer and let the suffering begin. Without a docker setup, I really find node horrible vs let's say .NET Core, Java/Closure or Go. But ymmv. A project I inherited has node_modules of 780MB with 150k files with many deprecated and vulnerable ones in them pinned versions: I would not call that easy. I never had that with .net: usually you need a few nugets and if you update them, they still work. That I would call easy. I have used both (and java for over 20 years) for 10+ years, I just do not like the ecosystem (or language but that is ok with typescript and purescript and cljs): I have to anyway.
Re:Revolt: Open-source alternative to Discord by vagrantJin on Monday September 06, 2021 @11:36AM (#28434739)
> includes a free black hole.

This is gospel at this point.

Npmming and yarning are giving me anxiety these days.

Re:Revolt: Open-source alternative to Discord by vaughan on Monday September 06, 2021 @11:21AM (#28434561)
JS and Rust are best friends. Deno is written in Rust. And many Node native libs are being written in Rust.
Re:Revolt: Open-source alternative to Discord by Popegaf on Monday September 06, 2021 @12:10PM (#28435128)
It's not JS or node that's the problem, it's the JS ecosystem. Badly or too broadly defined dependencies can (and do) lead to pulling a new version of a dep that introduced a breaking API change and tada, you have to start hunting for the right version.

Most projects don't define the node version that their project runs on either, so what ran in node 8 might not run in node 14 now.

What's wonderful to run into is non-JS dependencies: node-gyp happens to be used here and there. Sometimes the native lib will be pulled, sometimes it will be built, who knows why. And node-gyp might then depend on python2 which might not even be present on newer distros anymore.

And so on and so forth. If it doesn't come in an AppImage or docker image, there's no chance I'm getting myself into a node mess.

Re:Revolt: Open-source alternative to Discord by vaughan on Monday September 06, 2021 @03:18PM (#28436982)
Yep, I know the pain all too well. ESM is also currently a disaster as many popular packages migrate without transpiling to CJS and you cannot call ESM from CJS contexts.

As you said, it's good to separate the ecosystem from the language/runtime. Things will improve over time, but everything has just been in transition for so long. I dream of the day that transpilers are no longer needed and TypeScript is baked in to all browsers. Until then it is a mess.

> node-gyp might then depend on python2

`cmake-js` is the preferred option now. And Rust native deps don't have this issue.

Re:Revolt: Open-source alternative to Discord by zbrozek on Monday September 06, 2021 @11:48AM (#28434862)
Ditto. It's a good indicator of being a sloppily-written pile of dependencies I don't want to touch. I also discriminate against Electron software, at least as much as I'm able.
Re:Revolt: Open-source alternative to Discord by bachmeier on Monday September 06, 2021 @11:39AM (#28434768)
Totally agree. It's not good for HN to have this kind of repetitive language promotion on the front page. I could see if this was the first major project written in the language, which would make it noteworthy, but something like this needs to stand on its own without the upvotes of Rust fans.
Re:Revolt: Open-source alternative to Discord by mbreese on Monday September 06, 2021 @12:01PM (#28435022)
This is the way it’s always been though. First it was Java, then Ruby, then Clojure, then Go, then Node, and now Rust. As languages get popular, multiple projects get rewritten in them. At first it’s a novelty, but it is often useful to see what the strengths and weaknesses are of a language to implement an existing project. Eventually, it becomes annoying to have “written in X” attached to articles and links, but soon, that will diminish.

The only time when I think it’s really appropriate for a mature language is when the language itself is a feature. But that is really rare for that to be the case.

Other languages (eg Python, Haskell and Erlang) are in the mix too, but more evenly distributed and less fad-ish.

This is just part of the hype cycle of languages. I’m not saying Rust is only a fad, but we are definitely in that part of the cycle for Rust.

Re:Revolt: Open-source alternative to Discord by AnIdiotOnTheNet on Monday September 06, 2021 @12:46PM (#28435536)
> As languages get popular, multiple projects get rewritten in them.

Lately I've been thinking, it's kind of funny how the modern development mindset is so all about code reuse what with its giant dependency graphs and reliance on cross-platform frameworks; and yet the favorite sport is still rewriting perfectly good applications in the new hotness.

Re:Revolt: Open-source alternative to Discord by pjmlp on Tuesday September 07, 2021 @01:59AM (#28441413)
Because as fashion driven industry that is the only way many will get experience on language X down on their CV or favourite source code repository for head hunters.
Re:Revolt: Open-source alternative to Discord by dgb23 on Monday September 06, 2021 @12:35PM (#28435398)
I think it matters to communicate the language/tech in an open source project specifically.
[dead]
Re:Revolt: Open-source alternative to Discord by sodality2 on Monday September 06, 2021 @12:01PM (#28435026)
Disagree- three of the first six most recent submissions containing "in rust" are simply educational/about the rust language in general and not showing off a project (while using "rust" as a selling point).

https://i.imgur.com/WCD7iem.png

Re:Revolt: Open-source alternative to Discord by jhgb on Monday September 06, 2021 @12:59PM (#28435677)
Why not the fifth entry? That seems similar to the highlighted ones.
Re:Revolt: Open-source alternative to Discord by sodality2 on Monday September 06, 2021 @02:08PM (#28436376)
Yep, that one is informative as well. My bad!
Re:Revolt: Open-source alternative to Discord by DennisP on Monday September 06, 2021 @12:11PM (#28435136)
It makes sense to specify the language for open source software. A lot of us are devs who might actually fiddle with the source, if it's written in a language we like to fiddle with.
Re:Revolt: Open-source alternative to Discord by axegon_ on Monday September 06, 2021 @11:48AM (#28434858)
Exactly what I said yesterday in a different thread:

> One thing that makes me appreciate it even more is the fact that it's written in rust without the authors trying to make it into a primary selling point, which is annoyingly common in these days("X written in rust").

Re:Revolt: Open-source alternative to Discord by nabakin on Monday September 06, 2021 @11:42AM (#28434792)
Yeah that makes sense. Revolt was posted to r/Rust yesterday so OP is probably a person who frequents r/Rust and thought it was notable.
Re:Revolt: Open-source alternative to Discord by onionisafruit on Monday September 06, 2021 @11:25AM (#28434608)
Similarly I used to have an issue with the number of projects submitted to /r/golang that are “a whatever server written in go”. If I wanted to see a new whatever server I would be looking elsewhere and wouldn’t particularly care what language it’s implemented with.

Nowadays I’ve come around to appreciating the opportunity to see what other gophers are doing. I usually skip over those posts but occasionally I look at the code and learn something new.

Even when I’m dealing with compiles binaries, I slightly prefer something written in a language I’m familiar with just so there’s a better chance I will be able to diagnose any bugs I encounter.

Re:Revolt: Open-source alternative to Discord by CR007 on Monday September 06, 2021 @12:17PM (#28435212)
People often use "written in" when they are targeting devs and contributors as no end-user cares about in which jargon we write stuff. In this case, I don't get why they brag as this definitely hits my spaghetti detector: https://github.com/revoltchat/delta/blob/master/src/database...
Re:Revolt: Open-source alternative to Discord by vlunkr on Monday September 06, 2021 @12:56PM (#28435644)
Also, the backend of Discord is elixir/Erlang, which is a great fit for a messaging app. To me rust would be a step back.
Re:Revolt: Open-source alternative to Discord by steveklabnik on Monday September 06, 2021 @01:26PM (#28435949)
(Discord also uses Rust NIFs with their Elixir)
Re:Revolt: Open-source alternative to Discord by hestefisk on Monday September 06, 2021 @11:54AM (#28434930)
But apart from the advertisement of language choice, an OSS alternative is quite good, no? I’d be keen to try it out.
Re:Revolt: Open-source alternative to Discord by jedisct1 on Monday September 06, 2021 @11:54AM (#28434928)
This is getting very lousy.
Re:Revolt: Open-source alternative to Discord by RcouF1uZ4gsC on Monday September 06, 2021 @11:09AM (#28434413)
For me I think “written in Rust”actually does add a lot.

It is a signal that this will be easy to build, easy to deploy (because it is compiled into a single binary in general), memory safe, and likely to be written by a someone that cares about performance and efficiency.

I think those are all valuable hints.

Re:Revolt: Open-source alternative to Discord by chakkepolja on Monday September 06, 2021 @11:36AM (#28434736)
Only "easier to deploy" and "faster in general" are valid points. Most languages used to write servers are practically memory safe, and there are lot of hipsters in rust crowd too.
Re:Revolt: Open-source alternative to Discord by spopejoy on Monday September 06, 2021 @11:17AM (#28434520)
> memory safe

That's an incorrect assumption if you haven't audited the code.

> likely to be written by a someone that cares about performance and efficiency

Ah, the stamp of approval that comes from signalling to the "right people". Reminds me of the preamble to almost every C++ Boost library -- "written with performance in mind".

Re:Revolt: Open-source alternative to Discord by posixplz on Monday September 06, 2021 @11:37AM (#28434746)
>> memory safe

> That's an incorrect assumption if you haven't audited the code.

Audit the code? Simply `grep unsafe`.

Re:Revolt: Open-source alternative to Discord by sodality2 on Monday September 06, 2021 @12:02PM (#28435041)
Well, perhaps `rg unsafe` if you want to use the rust counterpart to grep, ripgrep ;)
Re:Revolt: Open-source alternative to Discord by nabakin on Monday September 06, 2021 @11:48AM (#28434861)
I guess Rust isn't guaranteed to be memory safe considering unsafe blocks but it does make it much more memory safe than languages which only offer manual memory management.
Re:Revolt: Open-source alternative to Discord by colejohnson66 on Monday September 06, 2021 @12:07PM (#28435092)
Just `leak` all your variables before they go out of scope ;)
Re:Revolt: Open-source alternative to Discord by j1elo on Monday September 06, 2021 @12:05PM (#28435062)
I didn't know about that preamble, but I definitely got the vibe of "written on a write-only mindset"... just from reading their docs :) not to say trying to delve in the source code!
Re:Revolt: Open-source alternative to Discord by adamnemecek on Monday September 06, 2021 @11:25AM (#28434602)
> That's an incorrect assumption if you haven't audited the code.

Even without an audit, the odds of a Rust project being memory safe are so much higher than in comparable languages.

Furthermore, Rust makes auditing so much easier by allowing you to concentrate on unsafe blocks.

Re:Revolt: Open-source alternative to Discord by cjbprime on Monday September 06, 2021 @11:35AM (#28434728)
That's a confusing statement -- JS/Node and Golang are comparable (memory safe) languages for API server backends.
Re:Revolt: Open-source alternative to Discord by zozbot234 on Monday September 06, 2021 @02:38PM (#28436646)
Golang is only memory safe if you're not using the concurrency features. It doesn't protect against data races which can break safety.
Re:Revolt: Open-source alternative to Discord by spopejoy on Thursday September 09, 2021 @12:39PM (#28471623)
Rust hasn't magically solved concurrency safety either, as linearity is not enough.

GC'd languages (Java, Go, Haskell etc) are safer than Rust by default, you just have the tradeoff of GC. Note that this isn't always a tradeoff as GCs can outperform static allocation in scenarios like large dynamic heaps.

Haskell is the safest for concurrency because of the strictly typed functional semantics.