Rust? Like what's on some metals?

https://lemmy.blahaj.zone/post/23852442

Rust? Like what's on some metals? - Blåhaj Lemmy

Lemmy

Programming language like many others It has some fancy borrow checker that makes memory usage get statically analyzed by the compiler, so you dont have to manually manage memory, and the program won’t need a garbage collector

so you dont have to manually manage memory

Not sure how this got upvoted with this glaring mistake. You have to manage memory. The point is that the compiler catches it if you make a memory management mistake, making things like data races, uses after frees, etc. literally impossible (short of intentionally using the unsafe tag).

I think it’s debatable whether RAII should be called “memory management”. Whether dealing with Rust or modern C++, you don’t need to “manage” the memory beyond specifying a container that will determine its lifecycle behavior, and then you just let it drop.

You could certainly choose to manage it more granularly than that in Rust or C++, but in the vast majority of cases that would be considered bad practice.

That’s a qualitatively different user experience than C or pre-2011 boostless C++ where you actually need to explicitly delete all your heap allocations and manually keep track of which pointers are still valid. Lumping both under “memory management” makes the term so broad that it almost loses its significance.

Yeah, as I understand, in the terms of language design theory, it is technically still “manual memory management”. But since you don’t end up writing malloc() and free(), many refer to it as “semi-automatic” instead, which certainly feels more accurate.
You dont have to malloc and free manually That’s what it means by ‘not needing to do it manually’
Rust is both a nice programming language, and an obnoxious social movement made of a small minority of Rust programmers who are very loud
oh I don’t consider them obnoxious. I’m from Python-land, they’ve been saving our asses with good tooling lol. the quality of output from the rust ecosystem speaks for itself

who are very loud

Most of the “should we or should we not” discourses/dramas I’ve read about were initiated or escalated by the anti-Rust crowd. They seem to be a lot more vocal (not to mention impolite) about their opinions than actual Rust developers.

Specifically in the Linux kernel, the 2 big reasons to use it are memory safety (huuuuggee benefit) and that a lot of younger devs like it and thus it will attract their contributions.

The only reasons I can think of to not use it are that some people want their own toolchain and having multiple languages in the kernel adds complication. But tbh, none of that justifies banning Rust stuff that realistically wouldn’t have been written at all if C were the only option.

And then there’s the people who show up in Phoronix, HN, Reddit, and YouTube comments saying Rust is over-hyped without showing why it’s unfit for purpose and also trying to dictate what someone does with their own project. Perhaps it’s something to do with the representation of queer people and other minorities in the Rust community, because otherwise I do not understand why people would be sooo passionate in hating the Rust community like the group I described above is.

a lot of younger devs like it and thus it will attract their contributions.

You get it! That is probably the biggest “soft” factor for why I want to see Rust proliferate. Nobody wants to learn C! It’s an ancient, cumbersome language that is difficult to use in a secure way. I’ve been both a student and an employee at a university with many programming-related classes, and beyond the absolute basics of memory management, nobody does anything in C, or even C++. It’s almost always C#, Java, Javascript, or Python. No Rust yet because most of our teachers are also geriatrics.

Linux (and FOSS in general) has an age issue. Prolific older developers are leaving their projects or transitioning to less code-focused tasks, and the ranks are not being filled. Prospective young developers simply bounce off projects because of steep entry requirements, and the active resistance of anti-Rust evangelists (the likes of Christoph Hellwig for example) doesn’t help either.

Re: [PATCH v8 2/2] rust: add dma coherent allocator abstraction. - Christoph Hellwig

having multiple languages in the kernel adds complication.

which is why we should simply rewrite the whole kernel in rust. boom problem fixed 😎 /j

small minority of Rust programmers who are very loud

They also list “written in Rust” as the primary feature of software they write, even though the majority of users don’t care as long as it works properly.

It matters to potential contributors. It’s also a floating signifier for a lot of things.

The majority of users aren’t contributors though. It’s fine to mention it in contributor documentation but I find it weird to advertise it as an end-user feature given most apps written in other languages don’t do this.

It’s also a floating signifier for a lot of things.

Like what?

A program being written in rust itself doesn’t guarantee anything, but it tells you what you’ll probably find:

  • Utf-8 support
  • No shenanigans with installations, dynamic libraries and such. Just download and execute.
  • Multi-platform support
  • Low resource usage.
  • semver.
  • Compile with just 1 command if you want to.
  • MIT/apache2 license.
  • No memory leaks.
  • If it crashes, at least it will probably log out something more helpful than “SEGFAULT”.

Many of those are highly positive to the end consumer.

Most of those points are true for programs written in Go too, and C# (if you use Native AoT).

That’s rather rude and untrue the programming language isn’t at all nice. /s

ducks and runs away

It’s a multiplayer survival game in the vein of Minecraft.
That’s a nice way to put it. I call it more of a Noob Murder Simulator
The very fast map in Call of Duty.

“1v1 me on Rust bro”

Ah those were the days

Does COD still have that map? The last time I played it was in MW2 on the Xbox 360.

As far as I know yes, I watched some videos where people were talking about the newest MW version and they showed that map, that's how I remembered :D
Both the 2019 Modern Warfare reboot and the 2023 sequel to the reboot Modern Warfare III had a remake of Rust in their respective map pools
Iron Oxide. Everyone else is wrong.
No. OP meant to type crust which is an inedible handle for pizza. I will die on this hill.
The amount of inedible is dependent on the amount of hungry
I can agree with that, and the quality of the handle of course.
i’ll always eat that part unless i’m extremely full
you meant to say incredible instead of inedible, since it’s the best part of the pizza, with the best taste
ITS JUST BREAD
exactly, bread is vrry eddble by itsssself
Idk about that fryman
pepple hav been doing it for thousands of yyeeers
why eat pizza if you like plain bread more?
pizza is mrre crrrsty
Get extra sauce. The whole point of bread is to carry sauce.
This guy fucks. Although, if I’m gonna put sauce on it, what’s a little more cheese?
Ferrous oxide innit?

Wustite, ferrous oxide, is black. FeO.

Typical rust, hematite, is Fe2O3 and is red/brown. Also an iron oxide.

Magnetite is also another black iron oxide, Fe3O4.

There are quite a few other flavors of iron and oxygen too.

flavors of iron

Yum yum

Just like grandma supernova used to make
The bane of Intel CPUs, and a trigger word for C geriatrics.
Back in my day we coded in assembly and we liked it that way!
Back in my day I didn’t code at all and I liked it that way!
(My day was today)
What is the issue with Intel CPUs? I’m OOTL here.
Some of their 13th and 14th generation CPUs have manufacturing defects that resulted in oxidation. In some use cases (servers and such), failure rates sometimes reached 50%. www.youtube.com/watch?v=OVdmK1UGzGs
Intel's Biggest Failure in Years: Confirmed Oxidation & Excessive Voltage

YouTube
and they kept denying there was an issue, until there was so much proof that they couldn’t deny it any more and were like “okay fine there’s an issue so we’re going to be extra generous and extend your warranty one whole year”
They were probably trying to run out the warranty period. (for legal reasons, this is speculation)
In countries like Australia that have good consumer protection, they’d have to replace failed CPUs even outside of the warranty period, because they’ve still failed in a time frame shorter than a regular person would expect a CPU to last. The USA really needs better consumer laws.
A source of entertainment in the Linux kernel mailing list
It’s a 2025 movie, starring Alec Baldwin, that gained notoriety in 2021, when a cinematographer was accidentally killed by a live round fired from a prop-revolver that Alex Baldwin was using.
How is it a prop if it can fire a real bullet?
Because a real gun is a prop gun if it’s being used as a prop.
It’s not the gun that was the issue, it was the fact that there was live ammunition on the set at all.
Rust is iron oxide, mostly used to make thermite
a low level language that has really nice features when compared to c and c++, but honestly i find it difficult to read. probably my lack of experience with it, tho.