Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
RyanJK5
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
RyanJK5
3mo ago
No problem! Hope you enjoy :)
2.
▲
by
RyanJK5
3mo ago
Yes. duck takes ownership of the vector by moving it into its internal storage. As a bonus, if you tried passing in an lvalue, it will reject the input unless you add the "copyable" trait, so it ends up mitigating some hidden copi
3.
▲
by
RyanJK5
3mo ago
I don't have any numbers, but it is pretty slow. You can try making some edits in Compiler Explorer to see for yourself (though that of course has some impact from network requests). One reason is that, like you said, the feature is st
4.
▲
by
RyanJK5
3mo ago
This library tries its best to mitigate that, catching common errors and whatnot, but it can definitely still happen. C++ doesn't have full token injection yet, so it avoids some of the more common pitfalls, if incidentally. As an asid
5.
▲
by
RyanJK5
3mo ago
Beauty in C++ may be most similar to lipstick on a pig, but we try our best.
6.
▲
Show HN: Beautiful Type Erasure with C++26 Reflection
(ryanjk5.github.io)
117 points
by
RyanJK5
3mo ago
|
58 comments