It's time to lean Rust /g/ - /g/ (#105616043) [Archived: 1008 hours ago]

Anonymous
6/17/2025, 2:12:21 AM No.105616043
rust_vs_cpp
rust_vs_cpp
md5: fb5a946c8e3b2f178c2c99ae22545d5f🔍
It is inevitable, Rust is poised to obliterate C++ as the systems programming language of choice, and the writing is already carved into the silicon. C++ has become a grotesque relic of committee-driven bloat, drowning in its own incoherent patchwork of legacy syntax, undefined behavior, and bolted-on features that pretend to be “modern”. The so-called “modern” C++ standard library is a monument to verbosity and inefficiency, riddled with leaky abstractions, footguns, and template metaprogramming monstrosities that make even seasoned engineers weep. Memory safety? Rust bakes it into the type system. Zero-cost abstractions? Rust doesn’t just promise them.. it enforces them with rigor. Every new “feature” C++ adopts is a pale, twisted shadow of something Rust already did better, cleaner, and with compile-time guarantees. C++ isn’t even fast anymore - modern compilers wade through layers of STL and virtual dispatch hell to produce binaries that barely edge out managed runtimes like C# or JVM-based languages. Meanwhile, Rust compiles to lean, predictable machine code, driven by fearless concurrency and ownership semantics that make segfaults and data races relics of a less enlightened age. The age of Rust is not coming... it has already begun, and C++ is staggering, bloated and broken, into irrelevance.
Replies: >>105616112 >>105616175 >>105616184 >>105616224 >>105616249 >>105616272 >>105616464 >>105616506 >>105616535 >>105616589 >>105616767 >>105619473
Anonymous
6/17/2025, 2:20:43 AM No.105616112
>>105616043 (OP)
retvrn to c
Anonymous
6/17/2025, 2:30:45 AM No.105616175
>>105616043 (OP)
The best argument against rust is that you need to shill it
t. pony gang
Anonymous
6/17/2025, 2:32:21 AM No.105616184
>>105616043 (OP)
Where can I learn concurrency in Rust?
Replies: >>105616187 >>105616207
Anonymous
6/17/2025, 2:33:37 AM No.105616187
>>105616184
you cant lol there isnt one
Replies: >>105616249
Anonymous
6/17/2025, 2:37:09 AM No.105616207
>>105616184
https://doc.rust-lang.org/book/ch16-00-concurrency.html
Anonymous
6/17/2025, 2:39:27 AM No.105616224
>>105616043 (OP)
In my company, the upper management doesn't even allow the use of C++ is any new projects, C++ is a legacy language now.
Replies: >>105616767
Anonymous
6/17/2025, 2:42:41 AM No.105616249
>>105616187
Of course there is. It's just bad because lifetimes and ownership make it programmings equivalent to cock and ball torture. As far as I can tell most people just either stick to single threaded Rust or use a runtime like Tokio, or a library Rayon to do anything parallel in Rust (Rayon is a pretty impressive bit of kit imo).

>>105616043 (OP)
It's good that C++ is being forced to clean up or die. Personally I think Zig will take the crown when it's all said and done because I can't imagine all the autists that love system programming will willingly give up control and bow to the borrow checker like Rusts demands.
Replies: >>105616767
Anonymous
6/17/2025, 2:47:11 AM No.105616272
>>105616043 (OP)
How do I make a linked list? A graph?
Replies: >>105616411 >>105616648
Anonymous
6/17/2025, 3:06:22 AM No.105616411
>>105616272
You're one google search or LLM query away from your answer. There's no point in spoonfeeding anyone on basic stuff.
Replies: >>105616475
Anonymous
6/17/2025, 3:14:22 AM No.105616464
1748648343472067
1748648343472067
md5: c3f261b48714e363b5c7dd34604a0dc5🔍
>>105616043 (OP)
Anonymous
6/17/2025, 3:15:46 AM No.105616475
>>105616411
fyi, the answer is one of "use unsafe" or "don't do that" depending on who you ask.
Anonymous
6/17/2025, 3:19:32 AM No.105616506
>>105616043 (OP)
>It's time to lean Rust
>It's time to lean
>Lean
Stop yapping about borrow checkers and get a spell checker nigga.
Anonymous
6/17/2025, 3:25:10 AM No.105616535
1731403049132641
1731403049132641
md5: ccbe9bbdd0abb3ec11f2355d15673f19🔍
>>105616043 (OP)
this douche used elipsis unironically... lmao!
Anonymous
6/17/2025, 3:31:56 AM No.105616589
>>105616043 (OP)
C and C++ shills are accelerating the demise of C and C++. They are bad people who are willing to lie in order to prevent better technology from succeeding, and that's nothing new. They were doing it in the 80s with Lisp, Ada, Pascal, and a lot of other languages. The difference is that back then a lot of that technology was expensive, so the C/C++ shills could get away with lying about something most people never used, but now all these languages are free and you can download them and see for yourself.
Anonymous
6/17/2025, 3:38:31 AM No.105616634
AI generated OP
Anonymous
6/17/2025, 3:40:15 AM No.105616648
>>105616272
>linked list?
struct Node<T> {
next: Option<Box<T>>,
value: T,
}
Replies: >>105616654
Anonymous
6/17/2025, 3:40:52 AM No.105616654
>>105616648
>Option<Box<T>>
Should be Option<Box<Node<T>>>
Anonymous
6/17/2025, 3:57:15 AM No.105616767
glowie
glowie
md5: f689509a206e94944c14075f0850e50c🔍
>>105616043 (OP)
>>105616224
>>105616249
Replies: >>105616937
Anonymous
6/17/2025, 4:23:41 AM No.105616937
>>105616767
lol I've not seen that one
Anonymous
6/17/2025, 11:25:52 AM No.105619473
lgbt
lgbt
md5: 563972415b3531a9c3b20a372c6aa018🔍
>>105616043 (OP)
>useless CoC and politics block your path
no thanks