this post was submitted on 05 Feb 2024
55 points (93.7% liked)

Rust Programming

8160 readers
1 users here now

founded 5 years ago
MODERATORS
 

Microsoft said: "We are forming a new team focused on enabling the adoption of the Rust programming language as the foundation to modernizing global scale platform services, and beyond"

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 9 months ago (4 children)

Relevant to the article, I have a question to the Rust community as someone who doesn't know the language.

Is it a meme that you want to rewrite everything in Rust, or is it kinda actually serious?

[–] [email protected] 28 points 9 months ago* (last edited 9 months ago) (2 children)
fn main() {
    println!("Relevant to the article, I have a question to the Rust community as someone who doesn’t know the language.\n\nIs it a meme that you want to rewrite everything in Rust, 
or is it kinda actually serious?");
}
[–] [email protected] 4 points 9 months ago

lemmy is already written in rust, though.

[–] [email protected] 19 points 9 months ago (2 children)

It's kinda serious, but definitely also a meme. Basically, Rust is the safest mainstream language out there (unlike languages like C or C++, which are full of foot guns, or things like JavaScript or Python, which aren't even strongly typed), so there's a strong desire to rewrite things in just because you often don't encounter stupid bugs in Rust code - the compiler won't let you write it. There are safer languages out there, but they're highly impractical for general purposes and are used for insanely mission critical shit (e.g. pacemakers).

I'd give this a quick watch: https://youtu.be/voRBS0r4EyI

[–] [email protected] 9 points 8 months ago

I want to scream, “try Purescript” when I watch this video. This guy clearly loves Haskell but doesn’t seem aware of Purescript.

[–] [email protected] 0 points 9 months ago

Here is an alternative Piped link(s):

https://piped.video/voRBS0r4EyI

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

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

Both. Primarily most software written in C should be rewritten to a memory safe language, be it Rust or some other alternative. Because there is a lot of software written in C, this is a veeeeery long term goal, and will probably never be achieved 100%, but at least Microsoft seems to be on board with this.

[–] [email protected] 6 points 9 months ago (2 children)

This article is about C# though, which is also memory safe. At least from the article (which is only a few paragraphs that doesn't say anything more than the headline) there is no indication that microsoft is working on C or C++. (though we know from other sources that Rust is in the kernel where there is C and C++)

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

I personally assumed they were rewriting it from C# because C# is complete ass that got destroyed by Microsoft's own insistence on feature creep. The language is a goddamn mess. That said, a ton of languages are a mess but they're even more baked into shit than C#. Like, Javascript is a bad language, but it'll probably always be around because....internet.

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

Yeah, for this the only real argument is performance, I was answering in general.

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

My company works mostly in Python with some c/c++

We're moving to rust due to the strict typing (the lack of which in python leads to many... Let's say interesting bugs), the speed (blazingly fast compared to python) and memory safety