Refreshing your .clang-format feels a bit like rearranging the furniture in your living room. It's the same old stuff in the same old room, but somehow it feels new.
Refreshing your .clang-format feels a bit like rearranging the furniture in your living room. It's the same old stuff in the same old room, but somehow it feels new.
Same. I like the cut of JB Pritzker's jib.
THIS
I was a regular at a pho place on Capitol Hill. I would walk in, the guy would nod and mumble "pho ga", and the bowl would be in front of me before I could find my place in my book.
yes, gcc and clang will both get it "wrong" in situations. there's something fishy going it. it *may* have something to do with recursive template instantiations, but that's a shot in the dark.
An implementation of std::conditional_t that only instantiates two class templates.
I have my own version of std::conditional_t, implemented to instantiate fewer class templates (attached).
The weird thing is, I have encountered scenarios where my conditional_t picks the wrong branch, whereas std::conditional_t picks the right one. This baffles me.
Am I crazy?
I've built a text adventure game engine on top of the C++ Standard. Why? I have no idea. But it's a learning tool with quests and time travel and artifacts and NPC's and XP and ... well, you just have to check it out!
cppevo.dev/adventure
I've put this little type-erasure library on github for safe-keeping. github.com/ericniebler/...
godbolt.org/z/avMYaTor8
I love how clang just optimizes the whole thing away.
The trick is that any::interface<ifoo, Model> inherits from Model. any::any<ifoo> builds a clever model, instantiates ifoo with it, and inherits from the result.
a screenshot of an editor showing a snippet of code that defines an interface, and a type that models the interface non-intrusively, and a type named `any` that is parameterized on the interface and that stores the model while erasing its type.
No Advent of Code for me. Instead, I've used the break to write the type-erasure library I have always wanted.
C++ doesn't make it easy to have both dynamic polymorphism *and* value semantics, but this little utility does!
Interfaces can extend other interfaces, and it works in consteval, too. ๐คฉ
... tuned to a "golden oldies" AM radio station
He uses double-check locking.
That was the first movie where I realized Brad Pitt could actually act.
it was a graduate level class in the english department. we were two undergraduate engineering students and a pre-med. as it turns out, english post-docs are not actually better at learning Old Icelandic than STEM undergraduates.
yes, c++26 will not come with a dedicated standard algorithm for splits, but the same effect can be achieved with a let_value where the lambda returns a when_all.
I took a semester of Old Icelandic in college with a couple of friends. We had no idea what we were committing to.
split is tricky to use correctly, which is why it was removed from C++26. this part of the design needs more bake time.
Also, don't put a schedule operation in a split. split runs an operation once and caches the results. All paths besides the first will just get the results, not the side-effect of changing execution contexts.
If you want, you can try the fix-alg-customization branch in my fork. I'd like to know if it would have avoided the problem.
Best I've found is to break the problem up into parts that can be tested independently. Start with a very simple sender expression, static_assert everything you can, and grow the expression until the problem appears. Hopefully that gives enough context to understand the issue.
The difference this time is that the bubble is taking longer to pop than he is able to stay solvent.
Are you using stdexec? I'm currently implementing the proposed resolution of P3826, which should fix a lot of algorithm dispatch woes.
ericniebler.github.io/wg21/P3826.h...
Great, so who do we buy this awesome, affordable insurance from? Bus drivers?
Mr Incredible and his boss
Also
Film poster for Short Circuit (1986)
Twiki and Dr Theopolis from Buck Rogers
Crazy theory meme