News for hackers. Stuff that matters.
Re:Writing your own C++ standard library part 2 by monkeyelite on Monday June 02, 2025 @10:04AM (#44158996)
I agree with that. But which language has better containers?
Re:Writing your own C++ standard library part 2 by platinumrad on Monday June 02, 2025 @12:07PM (#44160289)
Boring answer, but Rust has better containers (and worse algorithms).
Re:Writing your own C++ standard library part 2 by tialaramex on Tuesday June 03, 2025 @05:00AM (#44167904)
Neither can be compared cleanly because the languages make such different choices but it's certainly true that C++ has too many garbage "never use this" container types in the standard library. Aria has a brief aside in her "Entirely Too Many Linked Lists" tutorial about why Rust has so few containers in the stdlib (Aria weeded out all the niche container types before Rust 1.0), and it sincerely feels as though 1995 era C++ could have done with an Aria.
Re:Writing your own C++ standard library part 2 by colejohnson66 on Monday June 02, 2025 @03:10PM (#44161998)
dotnet/C#?