News for hackers. Stuff that matters.
Re:EASTL: An Alternative C++ Standard Library by Subsentient on Wednesday August 04, 2021 @11:53AM (#28062487)
An innovative new STL with unlockable features, such as:

std::vector: $5

std::string: $15

std::map: $30

std::unordered_map: $100

Re:EASTL: An Alternative C++ Standard Library by mike_hock on Wednesday August 04, 2021 @01:14PM (#28063598)
std::cout << std::vector<char>{'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '\0'}.data() << std::endl;

I'm too cheap to pay triple the price for a little bit of convenience.

Re:EASTL: An Alternative C++ Standard Library by Subsentient on Wednesday August 04, 2021 @10:58PM (#28069287)
static const char StringLiteral[] = "hello world";

std::vector<char> Derp;

Derp.resize(sizeof StringLiteral);

memcpy(Derp.data(), StringLiteral, sizeof StringLiteral);

Re:EASTL: An Alternative C++ Standard Library by marcodiego on Wednesday August 04, 2021 @12:57PM (#28063382)
Actually some historic IBM computers were like that. You leased them and could pay more to enable some instructions on the processor.
Re:EASTL: An Alternative C++ Standard Library by teeray on Wednesday August 04, 2021 @12:09PM (#28062687)
Those are per-month, I assume. Subscriptions are all the rage in software these days.
Re:EASTL: An Alternative C++ Standard Library by TeMPOraL on Wednesday August 04, 2021 @08:20PM (#28068180)
> std::unordered_map: $100

+ in-template purchases for every specialization of std::hash for user type.

Re:EASTL: An Alternative C++ Standard Library by phone8675309 on Wednesday August 04, 2021 @05:50PM (#28066851)
There's also a new version with renamed methods every year, and some of the methods move to other libraries in the middle of the project.
Re:EASTL: An Alternative C++ Standard Library by jhgb on Wednesday August 04, 2021 @06:42PM (#28067408)
Is that a pay-to-Win32 library?
Re:EASTL: An Alternative C++ Standard Library by microtherion on Wednesday August 04, 2021 @12:44PM (#28063165)
And occasional loot crates containing optimizations?
Re:EASTL: An Alternative C++ Standard Library by glouwbug on Wednesday August 04, 2021 @05:04PM (#28066281)
Just get std::map. You can get std::vector<int> if you do std::map<int, int>
Re:EASTL: An Alternative C++ Standard Library by TeMPOraL on Wednesday August 04, 2021 @08:22PM (#28068190)
That's prevented by kernel-mode anti-cheat that's statically linked into the runtime.
Re:EASTL: An Alternative C++ Standard Library by MauranKilom on Wednesday August 04, 2021 @05:38PM (#28066708)
Yikes for allocating all your elements separately, and with 400% - 700% memory overhead.
Re:EASTL: An Alternative C++ Standard Library by paulddraper on Wednesday August 04, 2021 @06:06PM (#28067041)
Correction: $5/month
Re:EASTL: An Alternative C++ Standard Library by sigzero on Wednesday August 04, 2021 @12:05PM (#28062639)
That's just funny.