@koloshmet@lefticus ranges::swap feels a bit out of place in the ranges library, but it makes sense when you realize that it’s a function object that can be passed to ranges algorithms unlike std::swap.
Otherwise it does the same thing but without requiring the std 2-step, so it’s the better choice
At 53, there is no detectable downward slope in my excitement for life. I know some people that are ambivalent or negative towards extended lifespans, but my list of interesting things to work on only grows with time. Even without technological advances, based on my family I expect to make it to 90. I can change pace as I slow down, but it will be great if I don’t have to!
I'm always amused by how many rants against Ranges end up devolving into basically "I can't be bothered to learn this new thing, therefore it's bad."
Yes, the abstraction overhead of ranges is non-zero (because iterators), but that isn't always the most important concern.
@MrJayLC@__phantomderp You can easily look at an STL implementation and see that this isn’t true. They’re all implemented in actual C++, using actual templates. The compiler generates code based on usage of the templates. They aren’t macros.
One of the most ridiculous things I’ve seen recently. Game engines need all the help they can get. Enforcing bad practices in code reviews and being jerks to contributors is just shooting themselves in the foot.
#GodotEngine#gamedev#cpp
How I spent my morning: writing a short paper to convince @godotengine maintainers to not reject my PR on the basis that I refused to rely on transitive includes when explicitly asked to do so.
Yup.
https://t.co/dYYdKxlrSF
#cpp#gamedev
@TheSilver812@SebAaltonen Implementing support for modules and implementing something like std::function_ref are totally different animals. You can implement your own function_ref type today. Modules requires huge changes not only to the compiler but to every level of tooling as well.
@david_sankel@CppSage@seanbax Bad response here. Personally, I can’t believe there’s no way to address safety issues in C++. The truth is honestly I’ve never had any. But then I’m handicapped by the habit of not including something whose operation is not pretty obvious.
@OutoftheboxP I did not know this existed, but coincidentally I’ve been thinking about how to handle this very thing in my own engine the past few days. It’s a tough problem to design for. Neat to see that Unreal has a mechanism for this.
Ok, so a lot of people have been asking me for code/writeup of this so I made a stripped down example (works with an infinite amount of windows) so that you can look at to get the basic gist of it (that's all I have time for now, sorry!).
See below for link to repo + testsite
An article about my vociferous support of open source AI platforms.
Demis Hassabis, Dario Amodei, and Sam Altman (among others) have scared governments about what they claim are risks of AI-fueled catastrophes.
I know that Demis, at least, is sincere in his claims, but I think those claims are incorrect and counterproductive.
The inevitable *effect*, intentional or not, if governments believe those claims would be a regulatory capture profiting their companies.
I do think that the short-term societal dangers of proprietary AI systems that will soon mediate everyone's digital diet are considerably higher than any imagined catastrophe caused by the misuse of open source AI systems.
And I believe that the benefits of open source AI platforms in terms of progress, safety, economic development, and cultural diversity are overwhelming.
https://t.co/UQImxIaTEj
To tell the truth, I was searching Alan Wake 2 first from Steam. That's the habit of most PC gamers, and that's why they can take 30% cut of our hard earned money we spend on games. Easy and familiar and reliable.
Let's see how Epic Games Store works. Purchase process was good.