Learn C/C++, Rust isn't gonna do shit - /g/ (#105688355) [Archived: 797 hours ago]

Anonymous
6/24/2025, 11:27:50 AM No.105688355
file
file
md5: 7b346629ab51a64dbe78a8b8b4b458ea🔍
I see a million "RUST WILL REPLACE C++" & "C IS 51 YEARS OLD, USE RUST" type videos and they're entertaining but I feel like they miss the bloody point.

Rust was made to fix the monkey stuff of C++ such as undefined behavior
int* ptr = new int(5);
delete ptr;
*ptr = 10; // fuck gon happen here if u dont know what ur doing

Null Pointers being cancer
int* ptr = nullptr;
std::cout << *ptr; // crash

and so on...

But they miss the fucking point of why these problems were in C++ in the first place, C++ is arguably the most important language of the last 30 years because it is used everywhere, thats why for the last 30 years it has been of a bigger importance to STANDERDIZE C++ then make big sweeping changes.

I feel like people like the concept of Rust more then using Rust. The whole "There are 50 game engines in Rust and 5 games in Rust" just shows that no one is willing to put they're money on Rust.

The only fields where I see Rust used to solve an actual problem are DISTINCTLY not the ones its competing with C++ in such has Tauri as a replacement for Electron.
Replies: >>105688653 >>105688884 >>105689056 >>105689102 >>105689152
Anonymous
6/24/2025, 11:29:03 AM No.105688366
*as
Replies: >>105688884
Anonymous
6/24/2025, 12:25:41 PM No.105688653
>>105688355 (OP)
also, Rust is run by absolute idiot political ideologues and even pushes political views into licensing. what a bunch of morons.

now, I might use tools made by idiots (though it doesn't bode well for future of tool) - but the licensing is law binding.

all that on top of the other rust problems that are purely technical.
Replies: >>105688777 >>105688871
Anonymous
6/24/2025, 12:44:41 PM No.105688777
>>105688653
Pushes how?
Replies: >>105688884
Anonymous
6/24/2025, 1:03:20 PM No.105688871
file
file
md5: b70e28b349c9e12651b46ec948565888🔍
>>105688653
Yea the Rust Foundation is very stupid, the whole trademark bullshit they had 2 years ago just didn't make sense in anyway to me.

Like (attacked screenshot) whats the fucking point of putting this in the changelog of Rust ? I genuinely don't see the point.
Anonymous
6/24/2025, 1:05:13 PM No.105688880
>reddit spacing
bot thread
Replies: >>105689137
Anonymous
6/24/2025, 1:06:14 PM No.105688884
>>105688355 (OP)
>>105688366
>>105688777
Checked.
Anonymous
6/24/2025, 1:22:31 PM No.105688994
C++23 is not for toy-language coders. If you're playing with PHP, JS, Python, or Rust , stay in your lane. This is for real engineers with academic background.
Anonymous
6/24/2025, 1:31:34 PM No.105689047
C++ is unsafe
Rust is safe
Simple as
Replies: >>105689137
Anonymous
6/24/2025, 1:33:44 PM No.105689056
>>105688355 (OP)
my fave was a video series of a troon making a game engine in rust. currently the series is called "making a game engine in C++/Rust. fucking hilarious
Anonymous
6/24/2025, 1:43:27 PM No.105689102
>>105688355 (OP)
I used Rust to write a (novel) database storage engine. I don't use it for games, frontend wasm or backend webshit. I don't use any async, which means nothing from the tokio ecosystem. I very very rarely use macros. I only use it for systems programming projects, and it's fucking excellent at that. When you write idiomatic rust, using enums, traits, iterators and the standard library in general, it's a pleasure to work with. It's very relieving compared to the typical C++ project experience.

The only time I had to make a concession with the borrow checker (and lose performance as a result) was implementing a toy single-threaded B-Tree, which required me to reach for Rc+RefCell. These sort of recursive data structures from scratch that require references to multiple internal parts at the same time are harder to implement compared to C/C++ and usually require unsafe trickery to get equivalent performance, see the BTreeMap implementation in the standard library for example. But Rust excels at safe, multi-threaded code and data structures, where the borrow checker starts to help.
Replies: >>105689346
Anonymous
6/24/2025, 1:49:54 PM No.105689137
1727053650488565
1727053650488565
md5: 1718a80bb5c07f4db869786b8ea8e95b🔍
>>105688880
Retard. Separating paragraphs is not reddit spacing. Reddit spacing is when there are 2 new lines where only 1 was appropriate.
Look at this nigger >>105689047
It would be reddit spacing if there were empty lines between those retarded comments.
Kys yourself wannabe, stop niggerifying the language.
Anonymous
6/24/2025, 1:52:26 PM No.105689152
>>105688355 (OP)
> fuck gon happen here
It's going to crash you pajeet retard because ptr is no longer pointing to anything.
Anonymous
6/24/2025, 2:20:06 PM No.105689346
>>105689102
rust cant do databases its not fantst enough
Anonymous
6/24/2025, 2:29:35 PM No.105689437
if anything universities don't teach le rust in CS/programming classes because nobody needs that gay shit