this post was submitted on 21 Apr 2024
317 points (94.9% liked)

Linux

48413 readers
1127 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 7 months ago (3 children)

Who cares ? What matters is the features and how fast the app is. Not what language was used to achieve that.

[–] [email protected] 53 points 7 months ago* (last edited 7 months ago) (1 children)

Rust is wildly fast. Learning that it is being used for a program is good to know if you care about speed. If you read the article, it even addresses your exact critiques:

Moreover, Rust has demonstrated superior performance compared to JavaScript add-ons, resulting in a quicker and more responsive Thunderbird. Furthermore, the integration of Rust into Thunderbird will be facilitated by the fact that it is already utilized in Firefox, enabling Thunderbird to leverage existing infrastructure for testing and continuous integration.

So not only with thunderbird be faster because Rust is faster than JavaScript, but it eliminates 3rd party addons by being native which also further increases speed. Lastly, development time for new features and improvements is faster because they can now use using the mature tooling that Mozilla has for Rust.

So yeah, good to know its using Rust now.

[–] [email protected] 1 points 7 months ago (5 children)

The improvement here is switching from interpreted to compiled. It could have been C, Zig, Odin, or even C++ (but thank Satan it isn’t C++)

I’m not sure I understand why people like Rust over C, although I don’t have that much experience in enterprise coding. I’m generally distrustful of languages without a standardized specification, and I don’t really like that Rust has been added to the Linux Kernel. Torvalds giving in to public opinion isn’t something I thought I’d live to see…

I get the segmentation fault thing, but to be blunt, that sounds like a skill issue more than an actual computer science problem.

Maybe if things were less rushed and quality control was regarded more highly, we wouldn’t have such insanities as an email client (or an anything client) written in JavaScript in the first place.

Rust is likely going to suffer the same problem as JS, where people indirectly include 6,000 crates and end up with 30 critical CVEs in their email client that they can’t even fix because the affected crate was abandoned 5 years ago…

[–] [email protected] 17 points 7 months ago (1 children)

Obviously it's a skill issue but don't you ever make mistakes? If Rust prevents some bugs and makes you more productive, what is not to like? It's a new language and takes time to learn but the benefits seem to outweigh the downsides now and certainly in the long run (compared to C at least).

Maybe Torvalds didn't give in to public opinion but made an informed choice?

The crates are a bit of a problem and I think Rust is a bit overhyped for high-level problems (it still requires manual memory management after all) but those are not principal roadblockers, especially in the kernel.

[–] [email protected] 1 points 7 months ago

I do wonder why rust is used in high-level time to time, then I realize the most high-level langs are sht.

[–] [email protected] 16 points 7 months ago* (last edited 7 months ago) (1 children)

This “skills issue” thing just sounds so stupid in my ears. I am sick of reading it.

So, I am choosing a language that I hope will ensure fast, secure, and sophisticated code for my project. It has to do this for code I write, my team writes, and all future maintainers and contributors will write as well. If I choose a language that makes it easy to write unstable, fragile, and insecure code then “the skills issue” applies more to my lack of capability as an architect than it does the coders that come after me.

Stop saying, “well ya, it is super easy to make these mistakes in this language but that would never happen if you are as awesome as I am” and thinking that sounds like an intelligent argument for your language choice. There are better options. Consider them.

[–] [email protected] 4 points 7 months ago

Why do you want sophisticated code ? That word seems out of place from the other two to me.

Rust doesn’t introduce the same problems as C, but it sure does introduce a lot of other problems in making code overly complicated. Lifetimes and async are both leaky abstractions (and don’t even work as advertised, as rust-cve recently demonstrated), macros can hide control flow…

C is unsafe, sure, but also doesn’t pretend to be safe. C is also stupid simple, and that’s a good thing : you can’t just slap ArcMutexes around, because by the time you know how to code them yourself you also know why you shouldn’t do that.

I hope Rust can reach a point where its safety model can be formally proven, and we have a formal specification and a stable ABI so we don’t have to hard-compile every crate into the binary.

But I personally expect something with some of Rust’s ideas, but cleaned up, to do that instead. Actually, I wouldn’t be surprised if C itself ends up absorbing some of Rust’s core ideas in an upcoming standard.

[–] [email protected] 4 points 7 months ago* (last edited 7 months ago)

Do you really think Torvalds is the one who would cave in to public opinion only? Really?

Also how much of C programming did you do

[–] [email protected] 1 points 7 months ago (1 children)

I’m not sure I understand why people like Rust over C, although I don’t have that much experience in enterprise coding.

I'd actually say that Rust is more popular in open-source projects. The reason people like it is because it's WAY safer than C or C++ while being literally just as fast if not faster. I'm still in the process of learning it though so I can't speak to your other points.

It is worth mentioning that the White House recommends Rust over C/C++ due to its very notable safety advantage over classic languages.

[–] [email protected] 2 points 7 months ago

How can Rust be faster than C? What is faster than unabstracted direct memory management?

[–] [email protected] -3 points 7 months ago

Any bug is a skill issue. There's literally 0.001% of programmers who are dealing with computer science problems and they are all compiler writers

[–] [email protected] 9 points 7 months ago* (last edited 7 months ago) (1 children)

Why does every mention of Rust have to spawn these comments?

The story right after this one for me is how KeepassXC is porting to Qt6. I bet nobody has knee-jerk responded to that story bitching about the fact that they mentioned Qt. It is just the anti-Rust zealots that do this.

This article talks about the problems they were trying to solve, the tools they chose, and how those tools solve those problems. What is wrong with that?

Are you offering up informed commentary countering why you would have made different choices and why?

You do not need to attack every mention of a technology just because it threatens your historical preferences.

[–] [email protected] 5 points 7 months ago

To be fair, Rust Evangelists are fucking annoying and it's fun to hate them.

How do I know? Would you like to talk about lord and savior, Ferris?

[–] [email protected] 3 points 7 months ago (1 children)

people who like fast apps should care because like 99% of current software developers are building electron apps instead of giving us something that actually lets your high end computer behave like a high end computer.

the only modern chat application that doesn't run electron today is Telegram.

the only cloud note taking app that doesn't run electron is ...uh. doesn't even exist.

the only...

i can't even think of something i use that was released after 2016 on my computer that doesn't run at a crawl because of electron. fuck electron.

[–] [email protected] 1 points 7 months ago (1 children)

I am pretty sure all of the KDE suite software does not use Electron. Or are you using Windows?

[–] [email protected] 1 points 7 months ago

using cinnamon. and yeah base software is largely fine. but non-base productivity apps are largely built in electron. cinnamon even offers a webapp tool so in some cases i can at least avoid it.