What's so bad about Rust?

Off-topic discussion/chat/argue area with special rules of engagement.
Forum rules
The Off-Topic area is a general community discussion and chat area with special rules of engagement.

Enter, read and post at your own risk. You have been warned!
While our staff will try to guide the herd into sensible directions, this board is a mostly unrestricted zone where almost anything can be discussed, including matters not directly related to the project, technology or similar adjacent topics.

We do, however, require that you:
  • Do not post anything pornographic.
  • Do not post hate speech in the traditional sense of the term.
  • Do not post content that is illegal (including links to protected software, cracks, etc.)
  • Do not post commercial advertisements, SEO links or SPAM posts.
We also ask that you keep strongly polarizing topics like politics and religion to a minimum. This forum is not the right place to discuss such things.
Please do exercise some common sense. How you act here will inevitably influence how you are treated elsewhere.
137ben
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2016-04-28, 21:40

What's so bad about Rust?

Unread post by 137ben » 2024-10-13, 20:26

I gather that many here do not like rust (the language). But what's so bad about it?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37676
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: What's so bad about Rust?

Unread post by Moonchild » 2024-10-13, 21:34

I think Rust is a mixed bag. Some good ideas, but at the same time I've been thinking "why did you need to make a new language for that?".

I think if you distil it down to a single "bad thing" then it is simply that Rust isn't a general-purpose programming language. There's limited platform support for the compilers, compilation is (painfully) slow, and essential things for larger programs like multithreading use, caching, packed data storage, etc. are generally so difficult to achieve that the usual response when asking for help with it is "don't bother to even try, just program it inefficiently and worry about optimizing later" (and that "later" never happens).
On top of that it requires dealing with an overly verbose and convoluted programming paradigm that isn't flexible, and often doesn't solve what it claims to solve. Rust also has a tendency to force you into achieving your goals with your programming in a very specific way, and if you decide to use a solution not 100% aligned with that it will absolutely scream bloody murder at you or flat-out refuse to work/not provide any possible solution. It then boils down to the dev finding workaround upon workaround and having to fight the language itself instead of it supporting the dev in achieving what they set out to do.

If you're looking for a high-level language for fairly simple programs achieving something the Rust developers envisioned as potential use case, where you can build something from the ground up, then it may be genuinely useful and do exactly what you want -- if you can spend a ton of time to figure out what you need (because documentation has been pretty bad last I checked). But overall it seems to just miss the mark, and all the energy spent on it would have been better spent improving existing and established high-level languages, IMHO.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

Re: What's so bad about Rust?

Unread post by jobbautista9 » 2024-10-14, 02:20

For me it's the horrible compilation speed, the lack of a stable ABI, the "everything should be its own crate" mentality with its pushing of its own cargo package manager (there's a joke in the SeaMonkey IRC where they were able to remove X lines of code because of Rust, in exchange for 100 more dependencies), though to be fair with Rust it's not the first language to do that (but I still hate that idea with passion), and I guess its community just being extraordinarily annoying with its RIIR shit for example (though admittedly we can ignore that).
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 311
Joined: 2020-03-02, 16:04

Re: What's so bad about Rust?

Unread post by Nuck-TH » 2024-10-14, 02:27

Also worth noting that (at least last time i checked) it lacks stable standard(which C and C++ have) and truly universal and flexible standard library. Feature creep, breaking changes and limitations of standard library implementation doesn't really align with language for reliable systems it wants to be.

User avatar
frostknight
Astronaut
Astronaut
Posts: 577
Joined: 2022-08-10, 02:25

Re: What's so bad about Rust?

Unread post by frostknight » 2024-10-14, 10:03

Nuck-TH wrote:
2024-10-14, 02:27
Also worth noting that (at least last time i checked) it lacks stable standard(which C and C++ have) and truly universal and flexible standard library. Feature creep, breaking changes and limitations of standard library implementation doesn't really align with language for reliable systems it wants to be.
And on top of everything said above, you can't make your own rust compiler without their permission due to their hideous trademark restrictions.

Its not a free software or open source programming language. Yet there are so many people who are throwing aside this warning and acting like it is.

This alone bother me and then there is the rust crowd is toxic and its a rolling release development...

And last but not least, if you need training wheels to prevent you from making mistakes, that C wouldn't prevent, it means YOU ARE THE PROBLEM, NOT THE PROGRAMMING LANGUAGE...

This topic is well... one that I cannot wrap my head around. I despise rust for these reasons above. It isn't what they claim it is and its effectively non-free due to their dipshit trademarks.

I cannot stand them honestly nor do I understand why people blindly support it as if it is something awesome.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 953
Joined: 2020-11-03, 06:47
Location: Philippines

Re: What's so bad about Rust?

Unread post by jobbautista9 » 2024-10-14, 10:39

frostknight wrote:
2024-10-14, 10:03
Its not a free software or open source programming language. Yet there are so many people who are throwing aside this warning and acting like it is.
Open-source is only concerned with copyright (and free software would unquestionably be too if it's not for the FSF dictating that a software is not free if you don't allow people to redistribute it with a fee under the same name). Trademarks are irrelevant.

Having said that...
frostknight wrote:
2024-10-14, 10:03
And on top of everything said above, you can't make your own rust compiler without their permission due to their hideous trademark restrictions.
If you're using "rust" in the name of the compiler then the trademark policy actually allows this. You are not modifying the official Rust compiler, and something like "gccrs" or "GCC Front-End For Rust" would fall under "Stating accurately that software is [...] compatible with the Rust programming language" in the "Uses that do not require explicit approval" section.
Image

"Destroying things, smartly!" - IJN Samidare, probably

Avatar artwork by ebifurya: https://www.pixiv.net/artworks/85379109

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5590
Joined: 2015-12-09, 15:45

Re: What's so bad about Rust?

Unread post by moonbat » 2024-10-14, 11:09

frostknight wrote:
2024-10-14, 10:03
, if you need training wheels to prevent you from making mistakes, that C wouldn't prevent
Great, you just invalidated every garbage collected language with that statement. Not having to keep worrying about memory allocation and deallocation is a big plus for enterprise applications that as it is have to deal with complicated business logic without this as well. There are appropriate tools for every use case, else if all you have is a hammer then everything looks like a skull ;)
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 311
Joined: 2020-03-02, 16:04

Re: What's so bad about Rust?

Unread post by Nuck-TH » 2024-10-14, 11:28

moonbat wrote:
2024-10-14, 11:09
Great, you just invalidated every garbage collected language with that statement. Not having to keep worrying about memory allocation and deallocation is a big plus for enterprise applications that as it is have to deal with complicated business logic without this as well. There are appropriate tools for every use case, else if all you have is a hammer then everything looks like a skull ;)
Off-topic:
Automatic memory management with GC is more of different paradigm with its own set of pitfalls than crutch/"training wheels" imho.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5590
Joined: 2015-12-09, 15:45

Re: What's so bad about Rust?

Unread post by moonbat » 2024-10-14, 11:35

One pitfall is you still have to dereference unused objects to make them available for garbage collection, else they will continue to occupy memory.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
Basilisk-Dev
Lunatic
Lunatic
Posts: 492
Joined: 2022-03-23, 16:41
Location: Chamber of Secrets

Re: What's so bad about Rust?

Unread post by Basilisk-Dev » 2024-10-14, 11:44

One of the primary reasons I am not fond of the Rust programming language is its lack of portability compared to languages like C. While Rust offers modern features and safety guarantees that are attractive for many applications, it falls short when it comes to supporting a wide range of operating systems and CPU architectures. This limitation is primarily due to Rust’s reliance on the LLVM compiler infrastructure, which does not support as many platforms as the traditional C compilers do.

C has long been celebrated for its portability. Its compilers are ubiquitous and can be found on virtually every operating system and hardware platform imaginable. This universality allows developers to write code that can be compiled and run on an incredibly diverse set of environments without significant modification. For someone like me, who enjoys tinkering with alternative CPU architectures and operating systems, this level of portability is essential. It means that I can experiment freely, porting my code to niche systems or custom hardware without being hindered by the limitations of my programming language.

This lack of portability is not just an inconvenience—it fundamentally restricts the scope of projects that can be undertaken with Rust. For instance, when working on a custom operating system or experimenting with a novel CPU design, the absence of a compatible Rust compiler means that developers are forced to either invest time in porting the compiler themselves or abandon Rust in favor of a more portable language like C. This scenario is less than ideal, as it places unnecessary hurdles in the way of innovation and exploration.

Even within mainstream operating systems like Linux, Rust can present challenges on less common architectures. Developers targeting platforms such as MIPS, SPARC, or other specialized hardware may find that Rust lacks the necessary support to build and run applications effectively. This situation contrasts sharply with C, where robust compiler support exists for nearly every architecture, thanks to decades of development and widespread adoption.

Moreover, the portability issue affects not only the act of compiling code but also the broader ecosystem of libraries and tools. Many Rust libraries may not be tested or supported on less common platforms, leading to compatibility issues that require additional effort to resolve. In the world of C, the extensive and mature ecosystem often ensures that libraries and tools are readily available or can be adapted with relative ease.
Basilisk Project Owner

viewtopic.php?f=61&p=230756

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37676
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: What's so bad about Rust?

Unread post by Moonchild » 2024-10-14, 14:10

moonbat wrote:
2024-10-14, 11:35
One pitfall is you still have to dereference unused objects to make them available for garbage collection, else they will continue to occupy memory.
Yet, at the same time, it has the "lifetime" concept which often gets in the way because things are released too early or can't be carried across threads. So the question then becomes: do you have to dereference or not? Will it be released while you want it to remain alive? Or will it leak? Not sure if it solved anything there.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

137ben
Apollo supporter
Apollo supporter
Posts: 44
Joined: 2016-04-28, 21:40

Re: What's so bad about Rust?

Unread post by 137ben » 2024-10-14, 14:50

Thank you, all. Your responses helped clarify things considerably.

User avatar
frostknight
Astronaut
Astronaut
Posts: 577
Joined: 2022-08-10, 02:25

Re: What's so bad about Rust?

Unread post by frostknight » 2024-10-15, 07:25

Oh, btw, I forgot to mentiom one other gripe, there are a group of people out there trying to rewrite everything in rust.

That is another and final reason I detest rust.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!