this post was submitted on 29 Nov 2024
5 points (54.7% liked)

Rust

6126 readers
21 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FizzyOrange 19 points 3 weeks ago (3 children)

I wonder what criteria he has for considering Rust to be a success. Everyone stops writing C++ overnight? Obviously stupid.

Rust is a massive success. This guy is just impatient. Rust is better than C++ in the same way ARM is better than x86. Intel is still alive but would you invest?

[–] nik9000 6 points 3 weeks ago

I think OP measure of success was getting a job. I think they are wrong because I hear about lots of folks doing cool things. But I get where they are coming from.

[–] embed_me 6 points 3 weeks ago* (last edited 3 weeks ago)

The x86 architecture is a relatively small factor to consider investing in Intel right now

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

ARM isn't better than x86 though. If you're talking about Apple's M-series chips, the most important difference is the manufacturing process (Apple buys up all of the next gen production capacity), not the instruction set architecture.

A better example is EVs vs gas engines for around town usage, EVs require less maintenance, are cheaper to fuel, and have more torque (more fun to drive). Likewise, Rust has more safety guarantees, nicer idioms, and nifty modern features, and if C++ and Rust were both released today, there'd be almost no reason to prefer C++.

[–] FizzyOrange 3 points 3 weeks ago (1 children)

ARM is very very obviously superior to x86. You won't be able to find anyone informed that will say otherwise.

Probably the biggest way it is better is that instructions are always 2 or 4 bytes which makes wide decoders a lot easier.

[–] [email protected] 2 points 3 weeks ago

The decoder isn't your bottleneck, it's a pretty insignificant detail in the grand scheme of things. We could all be using x86 in our wearables and whatnot if Intel didn't sit on their hands while ARM got big under their noses.

I personally prefer ARM to x86, but it's not for any technical merit of the ISA, I just happen to like simple things. I don't interface with the CPU directly anyway, so it's moot, and I'd probably like RISC-V better as well if I had one laying around despite it being worse as an actual product right now (fewer optimizations, nobody is building it on the latest nodes, etc).

What matters the most to me is actual products. The M-series of chips are fantastic, as are modern AMD CPUs. I'd prefer the former for general use because of the node it's produced on, and I'd prefer the latter for computation and gaming because they're well designed for it. From a product standpoint, I only care about ARM vs x86 for software compatibility, and then the specific iteration of the ISA becomes important.