« first day (1612 days earlier)      last day (3338 days later) » 

2:01 AM
I'm not taking it as an attack, he has just made fun of me before, so it naturally leads me to think he is doing it again.
 
@Blob less than 5 minutes
 
Anyways, you said 6 is not right.
 
On the plus side I just noticed I typed #pragma instead of #pragma once in every single file since this morning
 
What if the question was changed from divide to multiply?
 
What is the question in the first place
 
2:03 AM
I think I should leave Lounge<BasicArithmetic> and go to bed or something
Fuck Mondays
 
change name to Lounge<GPSL> plis
or Lounge<GPSL/C++>
 
go to bread
 
or GPSL<C++>
 
Lounge<GNU/C++>
I'm on holiday this wednesday oh yiss
 
Lounge<Lounge>
 
2:05 AM
The question was "number of one bit shifts that will multiply an unsigned integer value by 32"
 
LoUNGe > UNG > rotate > GNU woah
conspiracy
 
@DemCodeLines "One bit shift" aka "shift by 1"? Then 5.
 
So multiply and divide is both 5?
 
Well yes why would it be different
 
lol
 
2:09 AM
lol
 
-5
Q: Căn hộ nào ở Thủ Đức giá rẻ?

Quan Nguyên PhátTôi muốn tìm căn hộ Thủ Đức giá rẻ? vay 30.000 tỷ?

what
what's that supposed to be flagged as? :|
 
Nothing?
It's just a vote to close as "unclear what you're asking"
 
lol
 
VOTING TO REOPEN
 
2:10 AM
@Blob gibberish with a touch of foreign language.....
 
It's actually spam
 
> deleted by Jefffrey, Park Young-Bae, David 4 secs ago
RIP
Oh it is spam.
I didn't notice the links.
 
Another question. What does "shortest sequence of shift and add operations applied to x that will produce 21 times x" mean. How do you answer that?
 
same
 
@Blob Even the OP's name...
 
2:11 AM
@MarkGarcia what was it?
 
@DemCodeLines Decompose 21 in a sum of powers of two as I said earlier
 
@Blob Quan Nguyên Phát
 
Would this be considered bad practice? coliru.stacked-crooked.com/a/26bcd5a9a61eb496
 
Preemptive yes
 
x*4 + 5?
 
2:12 AM
Actually it doesn't need to be completely factored
 
Using a struct instead of passing a gazzilion template parameters.
 
@DemCodeLines Exactly how do you decompose 21 as *4 + 5
 
You just need to find the closest power of two that's smaller than the target
And the remainder is the add
 
or the remainder is another bitshift
 
@Mysticial No. It's used in the stdlib kind of.
 
2:13 AM
and then an add
 
Or not, I'm thinking about something else
 
2^4 = 16
 
Trait classes, like e.g. std::iterator_traits.
 
Fucking Monday
 
2:13 AM
@Rapptz oh cool
 
HOW IS 5 A FUCKING POWER OF TWO
 
It's not
 
@ParkYoung-Bae well uh.....
It can be.
 
Not really
 
2:14 AM
@ParkYoung-Bae 2^2.32192809489...?
 
@ParkYoung-Bae Base something something...
 
@ParkYoung-Bae It is. It's a non-integer power of two.
 
Thanks guis
 
Then what should it be?
 
2:16 AM
A sum of powers of two
Not 3 not 5 not 171. POWERS OF TWO
2 <= this is the number "two" for reference
 
int TWO = 2;
 
@ParkYoung-Bae 2^1.58496250072, 2^2.32192809489, 2^7.41785251489?
1 << 7.41785251489;
 
2^4 is the highest you can go before going over 21
 
Thanks
 
@Jefffrey TWO is entirely different than TWO
 
2:17 AM
Decompose it
 
@DemCodeLines Yes. Decompose the rest.
 
2*2*2*2?
 
Good job
NO
 
lol
 
2:18 AM
Actually not sure if troll
 
Can I give him the answer
 
I'm not. I'm sorry I'm being annoying
 
no
@DemCodeLines You are not, they are just taking the piss.
 
21 = 2^4 + 5 is correct. Congrats. But 5 is not a power of two. Decompose 5 as a power of two. You have 3 hours.
 
You have 2 << 3 hours
 
2:20 AM
Not sure how to do that. 2^2 + 1?
 
2^4 + 2^0 + 2^0 + 2^0 + 2^(-1) + 2^(-1)
 
@DemCodeLines :applause:
 
Maybe not
 
So now you have 21 = 2^4 + 2^2 + 2^0. Magic. A sum of powers of two. amaze.
 
Such arithmetic
 
2:21 AM
very addition
 
Much wow
😲
 
@DemCodeLines you're not supposed to piss on yourself
 
Actually that's not true
 
@CatPlusPlus You speak from experience?
 
IT WAS A COLD NIGHT
 
2:23 AM
lol
 
Did you know they made 12 Monkeys into a TV show
12 is 21 backwards so it's kinda related
 
this time in Denmark, I opened my TV and there was this random thing on
dude was in a park
 
Eh I'm used to it. I help my friends and others and they still make fun of me, so I'm used to it
 
How do you even make 1 monkey into a TV show anyway
 
Actually 2^4 + 2^0 + 2^0 + 2^0 + 2^(-1) + 2^(-1) + 2^(-2) +2^(-2) + 2^(-2) + 2^(-2) is correct
 
2:23 AM
pissing himself. measuring temperature. saying how pleasurable it felt
 
Not my previous message
 
Praise the High Council
 
What the fuck is this High Council
 
Anyways, the question wanted the answer "expressed in a and x variables"
 
That makes sense
 
2:25 AM
I wear cheese, it does not wear me
 
@Jefffrey A council that's on drugs.
 
For example a=x
 
Ah yes
 
What
 
Does it also have to be binary coded
 
2:26 AM
Nope
 
This monday is starting particularly bad
 
Every Monday starts particularly bad
Namely, with a Monday
 
With a monday morning
 
I'm not sure you know what "particularly" means
 
@CatPlusPlus Yeah.
It sucks.
 
2:27 AM
@Jefffrey Go quoth the standard then
 
Bruce Willis + Brad Pitt > whatever that new stuff is
 
$ 3.2.1 On the usage of "particularly"
 
Oh, they made CSI:Cyber or something
 
If you'd like, you can see the question for yourself here:
 
The video's almost doneeeeeeeeeeeeeeeeeeeeeeeee
WHEEEE HEEE HEE HEE HEE
 
2:30 AM
> They can be used with other elements of the library, particularly strings,
locales, and iterators.
 
Woah there's subtraction in there, that's hard mode
 
same usage as in the standard
or at least similar
 
@DemCodeLines Well that's actually understandable
 
OMG I forgot about March Madness?
 
a = (x << 4) + (x << 2) + x; And we spent how many hours on that?
 
2:31 AM
Wow
 
x << 4
Now do 57
 
HINT it's different
 
(x << 6) - (x << 3) + x?
I have no idea what I'm doing actually
 
And there goes Jefffrey spoiling all the fun
 
pft
give me any challenge
i'll do it ezpz
what do i multiply by? C:
 
2:35 AM
Multiply by pi using only bitshifts and your left hand
 
@ParkYoung-Bae 1 << 1 + 1
that's as accurate as ints can store
ezpz. next?
 
that's not only bitshifts. you lose.
 
oh
damn
(3 << 1) >> 1
 
Why are we doing Dem's homework again?
 
now prove you didn't use your right hand
 
2:37 AM
You're doing his homework
 
Lounge<Homework>
 
@ParkYoung-Bae the fact that i took long to respond proves that
 
Oh wait, that's actually not that difficult.
 
7 mins ago, by Park Young-Bae
a = (x << 4) + (x << 2) + x; And we spent how many hours on that?
HE STARTED FIRST
 
guys...GUYS...it's okay.
 
2:38 AM
i even originally made a mistake. i can't think well with my left hand.
 
@DemCodeLines How did it go with that girl of yours?
 
@Jefffrey never worked out man
 
std::map<...> m_map;
std::vector<...> m_vector;
 
@DemCodeLines Oh, but you gave it a shot?
 
Good job
 
2:39 AM
im shocked
 
Did she ask you to multiply something using bitshifts on your first date
 
That's a serious red flag
 
@CatPlusPlus Really? I think people should be allowed to have standards
 
@Jefffrey Nah, I just let it go. It was high school. HIGH SCHOOL!
 
I remember high school...
 
2:40 AM
@DemCodeLines It was like... less than 1 year ago
 
@Nooble That was 2 whole days ago!
 
@Blob And a whole 3.4 years more in the future!
 
@Jefffrey More like 2 years ago
@CatPlusPlus a = (x << 5) + (x << 4) + (x << 3) + x
easy peasy
 
Yeah no, not the shortest one
 
2:44 AM
that's 57, isn't it?
 
Has he even noticed Jefffrey posted the solution half an hour ago
 
You got subtraction on the list of operations
 
This is seriously pissing me off now
 
Even g++ decided to multiply instead of converting to shifts in this case
 
Does it really matter how short it is?
10
never mind, the directions say so
 
2:45 AM
The out-of-context star strikes again
 
lol even in context I thought he meant his penis
 
Bwahahahaha.
B-b-b-bossa nova.
 
here we go sigh
 
@Cinch Oh dear lord
 
visual studio has a weird stdfx.h or something like that
 
precompiled header
 
@Rapptz lol
 
@Rapptz u w0t m8
 
@Cinch I'm sorry to tell you Cinch but your tutorials will never be as good as that video.
 
2:48 AM
@Rapptz I wish I can be good enough for YOU though.
 
Damn that song is catchy
 
Just noticed the channel name.
 
@Jefffrey ikr
 
5 whole minutes??
 
@Jefffrey You're done son.
 
2:48 AM
Screw that
sudo apt-get install g++
 
The zoom and screen rotation kill me
 
@Blob Have fun trying to explain printing in Linux though.
 
Uh what
 
it's.. just like windows printing
 
2:49 AM
@Blob until you get a multi-printer
 
are we talking about printing to the screen
 
and then it's just... ||
 
or a real printer
 
@Blob A REAL ONE.
And not one of those "let's print a picture"
NO ONE OF THOSE "LET'S SCAN THE WORLD AND FAX IT TO EVERYONE" kind
 
(x << 6) + (x << 5) + (x << 2) is the shortest I can think of for 100 times x
 
2:51 AM
@DemCodeLines Oh my god I just realized that << 1 = multiply by 2
 
Now you're thinking with potatoes
Oh no not another one
 
That seems correct, there is an alternate solution with 128 - 32 + 4
 
@DemCodeLines g++ decides it's better to just imul eax,eax,0x64
 
@Cinch Your Turing Award will come in the mail soon.
 
@Rapptz For just 29.99!
 
2:51 AM
@Blob Because g++ is not taking the exam, duh
 
Is the video good or bad though?
 
g++ will do shit like lea eax, [eax, 4]+eax to multiply by 5 for example
 
@Cinch sudo apt-get install g++
 
@Cinch Beautiful
 
or something
 
2:52 AM
It only takes 40 seconds to make a funny video, not 5 minutes.
 
@Blob Damn it kid it's Windows not Linux
 
lol
 
@Blob LOL
 
You guys should visit /g/.
They'll like your memes there.
 
Oh they fixed editing deleted messages. rip
 
2:53 AM
(x << 7) + (x << 6) - (x << 2) seems legit for 188 times x
 
rip
 
@ParkYoung-Bae Yeah, like 12 years ago
 
@Rapptz i don't advocate gentoo
 
@Rapptz btw are you really blonde
 
Don't know.
Am I?
 
2:55 AM
@Rapptz inb4 smurf
 
..what
 
I'm confused as fuck
 
Can fuck be confused though?
 
not these freaking 12-bit signed fixed-point real numbers again!
 
Sure.
 
2:56 AM
OH NO
 
Is it shitpost o' clock yet
 
fun
 
what's the largest positive value
 
sizeof(LRIO's_ego)
 
2:58 AM
Me
 
+inf.
 
I need to get of chat.SO i'm getting addicted
 
@DemCodeLines ∂
 
@Jefffrey what?
 
What what
 
2:59 AM
 
what "what what"
 

« first day (1612 days earlier)      last day (3338 days later) »