BinaryByter
just dont look at the file where I do the template unpacking
Dima
webcpp is actually super easy to pickup and maintain
lol gotta warn you for advertisement everytime
BinaryByter
Anonymous
@Drazzy, never knew you design laptops
BinaryByter
just dont look at the file where I do the template unpacking
https://github.com/Wittmaxi/webcpp/blob/master/src/header/base_traits.hpp
BinaryByter
this is the messy file
Anonymous
Sure
Wim
Happy birthday Koyomi!
many
Is it appropriate to pack data into consecutive bytes e.g. packing 8 ASCII char to 7 bytes?
Jussi
why would you do that?
olli
Is it appropriate to pack data into consecutive bytes e.g. packing 8 ASCII char to 7 bytes?
Yes. why not? If I am not mistaken the UPER encoding for ASN.1 might do something similar by default.
olli
why would you do that?
To save bandwidth
Anonymous
Happy birthday Koyomi!
Thank you so much !!
Jussi
To save bandwidth
and waste computing power in a world with lots of bandwidth
olli
and waste computing power in a world with lots of bandwidth
That depends. IO is always slower. Especially in constrained environments
olli
and waste computing power in a world with lots of bandwidth
You can actually save up to 12.5% of the bandwidth. That's quite a lot.
Anonymous
Hye
Anonymous
Hi = "Hi" Bye = "Bye" Hye = ("Hi", "Bye")
Decoder_3d
Wew
Taherali
Programming c
Mihail
Koyomi
Anonymous
Mihail
.
Anonymous
Will do
Anonymous
HBd koyomi
Mihail
Will do
TL;DR std::endl is identical to a '\n' + std::flush (which is very slow), so like in the loop you shared in the OT group you should be using '\n' instead and then maybe flushing after it if necessary
Anonymous
Right now I can't, will watch it on PC tomorrow
Mihail
Well basically what I said above
Anonymous
std::cout << "Hello, World\n";
Anonymous
Ah , my phone
Mihail
Yeah it'll probably be flush even without explicitly having a std::flush
Anonymous
It's hard to type when you're used to touch type on pc
Anonymous
Yeah it'll probably be flush even without explicitly having a std::flush
I've thought an escape sequence '\n' won't flush
Anonymous
Now you cleared it up
Mihail
But having std::endl basically forces it to do so every single time
Anonymous
HBd koyomi
TY Meda
Anonymous
Usually I code in C, and TBH I suck really bad at C++, didn't pay attention to every detail yet.
Mihail
Yeah well idk about bad, but it use is very slow
Mihail
It's bad because it's slow
Anonymous
BinaryByter
Yeah it'll probably be flush even without explicitly having a std::flush
it will be flushed either when the buffer is not big enough or on destruction
j
on a wt-nwa cache, every write that's made will be a miss, right?
BinaryByter
You cannot cache writes
BinaryByter
So it wont even try
BinaryByter
@Drazzy
BinaryByter
am I right?
Rekha
Happy birthday Day koyomi
Rekha
Why we study switch cases in programming with c?
Anonymous
Decoder_3d
Thank you Rekha
Happy birthday
Decoder_3d
Koyomi
Rekha
Welcome😊😊
Anonymous
Koyomi
Thank you Yogesh
Anonymous
Why we study switch cases in programming with c?
Coz... When more than 3 or 4 conditions are to be tested it gets complicated with other control statements.... At that tym switch is proffered & even it consumes some what less time... Coz jump tables are created in switche cases so it checks faster... While in case of other control statements it checks one-by-one every cases.... Hope uh understood.. My point 😄
Rekha
Thank you
Anonymous
Hi rose
数学の恋人
I have following declarations double sum(const vector<double>&); vector<double> v {1.2, 8.5, 6.626, 3.14159}; const double s1 = sum(v); constexpr double s2 = sum(v); which one of the above is wrong, as for me, I think 4th one wrong. Please correct me if I'm wrong
Anonymous
Isn't constexpr a function expression?
Anonymous
constexpr int square(int x) { return x * x; }
Anonymous
And it tells the compiler to evaluate it at compile time
I_Interface
Anonymous
Right
I_Interface
Isn't constexpr a function expression?
it's constexpr function, coz compiler knows a value of funcs param
I_Interface
Yeah
if it's not, it will be just an usual function what will return a value in execution time
Anonymous
Of course ;
Anonymous
Thank u
Anonymous
😊
Anonymous
Any one know about android lang.
Mat
Any one know about android lang.
#googleit and then return with improved knowledge
🐰🐾 سمیه
what are the results of c |= 1 and c |=2 in decimal?
I_Interface
decimal ?
BinaryByter
if c is 0, it will be 1 and 2 lol
🐰🐾 سمیه
yes zero