<prayank>
TallTim: If you are curious about meetup details they will be shared on website. If you are curious about the article it just highlights issues with dependency on few people and one repository.
<prayank>
There is no "rage quit" thing in this, just that I don't want to become another r/bitcoin moon kid with some C++ knowledge. I have my own identity and thoughts.
<prayank>
Organizing a dev meetup because that will help me and everyone involved achive their goals. Mine is to improve Bitcoin doesn't matter if it affects my own life.
<TallTim>
ok thx
prayank has quit [Quit: irc thread exit]
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
grettke has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
jespada has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_arc has joined #bitcoin-core-dev
grettke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_arc has joined #bitcoin-core-dev
jabojangles has quit [Remote host closed the connection]
<luke-jr>
it seems to be missing logic for the {} init list with a comma?
<luke-jr>
ah, it was changed after my fetch of it. maybe still should fix the linter anyway?
<sipa>
wouldn't it be better to add __attribute__((format (printf, ...))) or something like that?
<sipa>
GCC/clang have built-in features for testing arguments to printf-like functions
<sipa>
ah, but LogPrintf and friends are less strict than printf is
<sipa>
so that might cause problems
<sipa>
luke-jr: why should it fail?
<Davidbak>
"LogPrintf and friends are less strict than printf is" - is that a good thing? (In what ways is it (are they) less strict?)
<luke-jr>
sipa: it shouldn't fail, but the linter doesn't parse the {} chars
<sipa>
davidbak: they're C++, so they can use the type system instead
<luke-jr>
sipa: so it thinks a comma inside them is a param separator for the func
<sipa>
LogPrintf("%i", x) works for any kind of integer type x
<sipa>
regardless of its size
<luke-jr>
LogPrintf("%s", CFeeRate{1,2}) lint-fails at the moment claiming 2 params for the one %2
<sipa>
davidbak: look at src/tinyformat.h
<luke-jr>
%s*
<Davidbak>
so ... they're _more_ strict? Because I thought they used tinyformat?
<luke-jr>
davidbak: if you feed the wrong size integer to %i, printf explodes :p
<Davidbak>
oh I guess it is a point-of-view thing: I consider tinyformat to be _more_ strict 'cause it'll do the right thing or complain at compile time; printf to be less strict because it'll accept garbage and die at run time. But the _other_ POV works too if that's the way you like it.
<sipa>
davidbak: it won't complain at compile time
<sipa>
because the format string is only processed at runtime
<sipa>
and you can still do things like "%li" or "%hi", the h or l is just ignored
<Davidbak>
oh. hmm. maybe it should be revved up to C++17 (does Bitcoin Core accept/require c++17?) and constexpr'd all the way?
<sipa>
we do use C++17 yes
<Davidbak>
guess I thought tinyformat was already there but looking at the code I see not.
<sipa>
it's just C++11 i think
<Davidbak>
yeah I think so. probably not an exploitable security hole though if only used for logging (just a potential reliability issue).
<Davidbak>
never mind what I just said please I didn't think it through
<luke-jr>
speaking of which, someone was complaining about C++17 in #bitcoin earlier
<luke-jr>
s/earlier/nowish/
c_arc has joined #bitcoin-core-dev
<Davidbak>
here on libera? (that channel doesn't advertise an archive in its topic, do you know of one? if not, is this c++17 discussion interesting enuf to recap here?)
<Davidbak>
(although I know of one issue right now w.r.t. using constexpr processing for format strings: compile times go way up. So ... nvm for a couple of years, until the compilers get that straightened out ...)
c_arc has joined #bitcoin-core-dev
c_arc has joined #bitcoin-core-dev
grettke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c_arc has joined #bitcoin-core-dev
cmirror has quit [Remote host closed the connection]