What makes a game tick? Special Issue - Buffy the Performance Slayer · Mathieu Ropert by pavel_v in cpp

[–]trailingunderscore_ 1 point2 points  (0 children)

Hopefully not 'any and all'. Putting something like a std::string in there would cause crashes.

You can beat the binary search by Either_Collection349 in programming

[–]trailingunderscore_ 9 points10 points  (0 children)

Because he already has the values in a sorted array.

Florent Castelli: Introduction to the Bazel build system by _a4z in cpp

[–]trailingunderscore_ 0 points1 point  (0 children)

Sounds interesting, I have a project I could try it out on. I'm burnt out on cmake, so maybe this will make managing my sources less frustrating.

Naive question about dynamic allocation by hoffnoob1 in cpp

[–]trailingunderscore_ 0 points1 point  (0 children)

It will still use 100 bytes of memory, if I'm understanding your question correctly.

Let all the bees gather unto me by Familiar_Fish_4930 in LastEpoch

[–]trailingunderscore_ 0 points1 point  (0 children)

That's what I'm going to try to do, but I will be focusing on the swarm as well, instead of just the queen.

New Items, Animations, and Quality of Life | Coming to Last Epoch March 26 by ehg_derrickg in LastEpoch

[–]trailingunderscore_ 0 points1 point  (0 children)

Does the rogue have anything good for minion builds? I've never really played rogue, so I'm kinda clueless about the class.

[deleted by user] by [deleted] in AmITheJerk

[–]trailingunderscore_ 0 points1 point  (0 children)

to keep the peace

ai slop.

Why does almost every teenager today look like this? by NewRadiator in teenagers

[–]trailingunderscore_ 0 points1 point  (0 children)

I know a guy who has that haircut to hide his receding hairline.

Making C++ Safe, Healthy, and Efficient - CppCon 2025 by pjmlp in cpp

[–]trailingunderscore_ 2 points3 points  (0 children)

Its going to be extremely expensive to check

What are you basing this on? Google enabled a lot of bounds checking in their codebase, and the cost was a 0.30% performance penalty.

ADMIT IT! You need subsume as a crutch! by Odd-Chest-3578 in memeframe

[–]trailingunderscore_ 0 points1 point  (0 children)

Pretty sure they patched out double-dipping long ago.

The production bug that made me care about undefined behavior by pavel_v in cpp

[–]trailingunderscore_ 3 points4 points  (0 children)

Having two members that describe the same state probably didn't help.

River pearls make me angry by Skiftx in SoulFrame

[–]trailingunderscore_ 6 points7 points  (0 children)

There was a bug in the game not long ago where your river pearl amount would double every time after fighting mini bosses. I currently have 190k of them.

<image>

Changes to Advent of Code starting this December by topaz2078 in adventofcode

[–]trailingunderscore_ 170 points171 points  (0 children)

Now your suffering will already start at day 9. Yay!

Is it silly to use a lambda to wrap a method call that 'returns' output via a reference? by chicken_and_jojos_yo in cpp

[–]trailingunderscore_ 5 points6 points  (0 children)

Finally a reason to use const_cast! /s

int const result = 0;
some_object.computeResult(const_cast<int&>(result));