Eℓq retweeted
I'm very excited about C++26 reflection. However, people underestimate what you can achieve *today*!
Inspired by @BarryRevzin's awesome "Practical Reflection" talk at @CppCon, I wrote automatic Dear #imgui generation for structs, including labels! (via Boost.PFR)
#cpp #gamedev
Eℓq retweeted
An implementation of the latest C++ pattern matching proposal (wg21.link/p2688r2), `match` expression, is available on Compiler Explorer!
Most of the proposed patterns and constant evaluation are implemented.
Example link: godbolt.org/z/d9sG69Gn9
Eℓq retweeted
Replying to @seanbax
What a strawman... It's not about forcing "security on everyone" -- as a starter it's merely about giving developers the *option* of ensuring parts of their code is secure.
The status quo is that insecure code is being forced on everyone!
Eℓq retweeted
I wrote a proposal for memory safety in C++. It's in this month's WG21 mailing.
safecpp.org/draft.html
Eℓq retweeted
I just learned about gcc's -fdump-lang-class=<file> option, and ...
🤯
This is awesome for learning the C++ object model. Class and vtable layout is all there. You can see how the compiler implements dynamic polymorphism, multiple inheritance, and virtual inheritance.
Eℓq retweeted
I made a VSCode extension that uses PDBs to provide GotoDefinition intellisense support.
Verified to work with Jai, C++, Rust, Zig, Odin, and Nim. Should work with *any* compiled language that makes PDBs.
Here's a little video. Links to blog post / marketplace in reply.
Eℓq retweeted
Replying to @seanbax
Consider three constructors:
T()
T(std::initializer_list<int>)
T(std::initializer_list<int>, Allocator)
We should be able to call them with:
T()
T({1, 2, 3})
T({1, 2, 3}, Allocator())
Seems like the natural progression rather than special-casing a single-init-list constructor
Eℓq retweeted
For some personal context:
I graduated with $76k in student loans. I have paid off more than $60k of that and now I only owe $97k
1/
BREAKING: A federal appeals court blocked the Biden administration's student debt relief plan, which would have lowered monthly payments for millions of borrowers. apnews.com/article/student-l…
Eℓq retweeted
A friend pointed me at this new "Overload Set Types" proposal. Circle already has this feature.
[]f
is a lambda which captures all the overloads of f. Overload resolution of f is deferred until the lambda is invoked.
godbolt.org/z/ohe9sxq6T
open-std.org/jtc1/sc22/wg21/…
Eℓq retweeted
This week I started documenting Safe C++. I figure this will take me the rest of the month to complete. But it's good to have information written down in one place.
circle-lang.org/site/intro/
Eℓq retweeted
Oh my god this is the purest example of the World War II plane meme, we need to armor biker torsos!!!
There's still some work to do for tweaking, but #embed is going into Clang 19 and the PR I originally opened has been carried through to completion by Aaron Ballman, Corentin Jabot, h-vetinari, and many other truly wonderful people.
.... It's done.
github.com/llvm/llvm-project…

































