« first day (1665 days earlier)      last day (3288 days later) » 

12:03 AM
Yes, I made it! I got a downvote earlier today that get my rep back to a multiple of 5 (yay!) I was starting to worry that I was going to hit the rep ceiling though, which would have ruined the rep score again. I was one vote short of the ceiling, but it just ticked over to a new day without ruining it! :-)
 
My rep is a multiple of 3.
 
@Brian Glad I don't work for that company.
 
@JerryCoffin Do you like prime numbers instead? :P
Hopefully 267,733 is a prime number.
 
@Mysticial I almost wish I did. After all, the more they're doing wrong, the more room there is for me to improve things by changing their ways.
 
@JerryCoffin Good point...
 
12:07 AM
@Jefffrey I'm fine with multiples of 5.
 
@JerryCoffin I doubt there's a future in that company if you don't follow their rules.
 
@Jefffrey Not prime. Divisible by 17, sadly.
 
@Mysticial Thanks to your genius name, now when I read item names in games, its "Mysticial Belt of the Owl" D:
 
@JerryCoffin Did you start doing what I did? Keep a handful of answers with downvotes and use them to keep rep a multiple of 5?
 
@Mysticial I did for a while, but was too lazy to keep it up.
@Jefffrey Part of the joy of being old is that you tend to have a lot more chance to change the rules.
@Jefffrey Oh, but if I hadn't gotten that downvote (or if I'd hit rep-ceiling yesterday) I'd have been at 267,737 (which is prime).
 
12:41 AM
@Nooble did you play cs yet
 
@AlexM. Nope, I have a research paper due.
I want to play it so badly though.
Agh.
 
I played against a pro for the first time by chance today lol
he joined the 1v1 arena server I play on and proceeded to own everyone
 
Did you do well against him?
Oh nevermind.
 
I killed him once on a rifle round
 
Nice.
 
12:44 AM
I got lucky and had 3 pistol rounds in a row to get myself up to the first arena where he was
I kinda suck at rifles compared to everyone else but for some reason I almost always win pistol rounds
 
i played a couple hours this morning and got thoroughly destroyed
 
rifles are difficult because if you don't practice daily you quickly get out of hand with them
e.g. if I let 3+ days pass w/o playing I can barely control the AK anymore
I need ~2+ hours of practice to get it back
 
i usually just go for the mp7
 
with the new patch the mp7 is great for the 2nd round after a pistol win
 
@JerryCoffin Good luck with that
 
12:48 AM
only rifles i'm remotely proficient at are the SG/AUG and i have cod to thank for that
@AlexM. new patch?
 
a patch released weeks ago nerfed the awp and buffed some smgs
 
ah
 
here, some beautiful rifling at work
 
@Jefffrey I suppose it would be somewhat different if I worked at, say, Google, but for quite a while now the companies I've worked for have accepted me as enough of an authority on C++ that if I disagree with an existing rule, they usually at least listen pretty carefully to my reasoning. They don't always change it to exactly what I'd like, but usually at least pretty close.
 
pyth has some serious talent at getting one-shot kills with the AK
 
12:55 AM
@AlexM. nice, can't help but notice the FOV though
 
I have landed
@Dean Do you have another app I can contact you on?
 
im still running the default, for some reason i never thought to increase the FOV
 
those are not his settings anyway
when you spectate a game you use your own settings
 
oh right cuz spec
 
FWIW pyth plays at 1024x768 w/ black bars (i.e. not stretched)
 
12:57 AM
@Cicada On where?
 
@AlexM. that's disgusting
 
@AlexM. They just love torturing themselves with low resolution don't they?
 
it works for them
most pro players use similar settings docs.google.com/spreadsheets/d/…
it's a matter of what you're used to
 
@AlexM. i don't understand the reasoning behind those resolutions but ok
i do 1920x1200
 
1:02 AM
I tried both 1024x768 stretched and 1080p and switched back to 1080p because I was performing similarly in both cases so I went for the visual upgrade
although the lower stretched res had some of its own advantages
I never encountered any framerate drops (since I run the monitor at 144hz going well below 144fps shows)
the smaller FOV forced me to peek corners with the crosshair
 
nice
i do 300fps but my monitors are only 60hz
 
at 1080p I often "peek" corners with the edge of the monitor because they happen to be in my FOV
 
@AlexM. ah interesting, never thought of doing that
 
this is bad because if an enemy is there I need to flick, which is bad in case he's positioned properly
peeking with the crosshair fixes that
 
just dont be the guy who crouch walks around a corner haha
 
1:06 AM
also models are wider when running a stretched resolution so they seem easier to hit
 
@Nooble On your butt
 
@nick depends on the corner I'd guess
I can't think of any case where crab walking while coming out of a corner helps though
except for the obvious ones where you're not visible for the other guy regardless
 
@AlexM. yeah they're gonna see you or your gun before you see them
 
@StackedCrooked: Your test of parameter passing was interesting enough I decided to re-try it with VC++. The results were somewhat less interesting though. 3 out of 4 versions produced identical code:
mov eax, DWORD PTR [rcx+12]
add eax, DWORD PTR [rcx+8]
add eax, DWORD PTR [rcx+4]
add eax, DWORD PTR [rcx]
The fourth passed a couple of the parameters in registers, so it produced slightly tighter code:
lea eax, DWORD PTR [rcx+rdx]
add eax, r8d
add eax, r9d
The one that was different was explicitly passing four parameters.
 
@StackedCrooked What the fuck GCC
 
1:20 AM
The tuple seems to be the weirdest one. Apart form the fact that it doesn't use registers, the ordering of the instructions also looks weird to me: rdi+8, rdi+12, rdi+4, rdi .. why start in the middle?
I might be missing something obvious though..
 
classic case of a recursive stack leak on the memory heap
 
1:38 AM
@StackedCrooked Yeah, I noticed that too, but didn't see an obvious explanation either.
The only oddity I noticed in the VC++ code was the order of the implementations: their order in the assembly file is exactly the reverse of the order in the source file.
 
@Cicada Yes I do. Line, at "goodssh2"
 
I created an SO question:
2
Q: Passing parameters one by one, or by wrapping them in an array, struct or tuple

StackedCrookedWhen passing arguments to a function I always assumed that passing arguments one by one is not different from passing them wrapped in an array or a struct or a tuple. However, a simple experiment showed that I was wrong. The following program when compiled with GCC: int impl_test(int a, int b, ...

Maybe that will bring enlightenment :)
 
You already got a "witty" comment :v
 
@Rapptz done :)
@Cicada @Mysticial pretty please :)
 
1:48 AM
shush, I'm already reading it
Your first sentence is correct. The parameters in a struct are being passed as if they were individual variables in that order. It's just that the optimizer (or lack of) is doing something weird.
 
But
Those functions are visible in the object file, so the optimizer can't optimize too much I think, because calling conventions and such
If you don't export them then I'd guess they can be optimized further
 
The parameters are 32-bit integers. But the calling convention places them in 64-bit registers.
It's possible that the implicit down-conversion is messing with the optimizer.
But...
I don't understand how impl_test(std::array<int, 4ul>): is even correct.
If rax is negative...
Oh wait, perhaps (int)-1 gets passed as 0x00000000ffffffff instead of 0xffffffffffffffff in x64.
 
Yeah that totally explains it.
:P
 
I checked, if you don't export the functions they all get optimized identically
 
it's still stupid though
 
2:03 AM
mov rax, rdi
sar rax, 32
^^ That is completely stupid if the upper half of rdi is always zero.
Which it will be if the number was originally a 32-bit integer passed as a parameter.
 
the real question is why does clang produce similar output
 
@Rapptz Prolly because it's dictated by the calling convention
 
does anyone know about route53
 
sorry my knowledge stops at route47
 
2:08 AM
Something's wrong with impl_test(std::array<int, 4ul>):. It doesn't read ecx/rcx.
 
har har startrek har har
 
tuple is passing the array as a pointer. That's why it's doing relative loads from rdi.
Oh... @StackedCrooked ic...
The std::array isn't passing the 4 values as 4 registers. It's passing them in two 64-bit registers.
 
Erm, I'm not as smart as you maybe think I am...
 
instead of [int] x 4 it's [int64_t] x 2
 
@Mysticial Oh, that's good.
 
2:12 AM
In the first case, the 4 parameters are being passed in: edi, esi, edx, ecx
In std::array, it's only using rdi, and rsi. But all 64-bits of the register.
 
isn't a 64 bit int slightly different from two 32 bit ints?
 
I'm mostly "worried" about the tuple case since it requires ..memory access.
Not really worried. Just curious actually..
@nick It's different, but very slightly.
:P
 
@nick Operations on it are, but here it's just storing things, so 32 bits is 32 bits
 
I should sleep soon.
 
What does GCC's std::array and std::tuple look like?
Just the fields, not the entire thing which probably several thousand lines of TMP bullshit.
 
2:16 AM
std::array is really nothing more than a struct containing a C-style array as a member variable. Tuple uses recursive inheritance.
 
std::array<T, N> is just a struct with a T arr[N] member.
mandated by the standard
 
> TMP bullshit
 
@StackedCrooked Dunno if they probably applied that non-recursive technique. Flat something something.
 
std::tuple is a complex beast :v
 
@MarkGarcia No, it's recursive because EBO
 
2:17 AM
@MarkGarcia Flat like ..not your mom?
SICNR. I appreciate the help.
 
@Cicada Search for "template" on this one: chat.stackoverflow.com/…
@StackedCrooked But she's not recursive!
 
tuple should be make_tuple(Args ...args) { return [args....]{}; } :P
 
been done before
 
@MarkGarcia Ah, good! :)
 
> i just saw ur pgm.......hello.c ...as i am just beginning with mongoose server coding....i had a small problem...cld u plzz help me with command to see the output of ur program...i have been trying since a long time..bt all in vain!!
 
2:20 AM
@StackedCrooked Unlike your momma, his is a carpenter's dream (thin as a nail and flat as a board).
 
@JerryCoffin washboard - make sure you're specific.
 
isn't 64 bits quite a bit more data than 32x2?
all this thinking is giving me a headache
 
32 + 32 = 64, @nick
It's not rocket science.
 
@nick Don't trust your intuition.
 
but thats decimal
 
2:24 AM
Yeah, in binary 32 + 32 is actually 63. So 64-bit gives you that little extra.
 
i thought for every bit you added, you get like an exponential... uh
never mind i trust you guys
5
 
@nick Don't let the Lounge have any ideas about that.
 
2:48 AM
@Mysticial But washboards aren't flat...
 
lol, a question made exclusively of code
there is no question
and the title is the compiler error message
 
TIL Lightness is of Indian origin
 
"guys this is not indianreunited.com" my sides
3
 
2:56 AM
QUESTION HAS BEEN INTERPRETED WRONGLY.I wanted to ask when i square log 3 ON BASE 2 DOES IT BECOME 2 TO THE POWER LOG 3 ON BASE 2??? — Raunak Banerjee 10 hours ago
 
No, please, calm down. Flooding comments in all caps is very impolite. $\log_2(3)$ is the base 2 log of 3. Another notation you might be familiar with is $^2\log(3)$ — wythagoras 10 hours ago
^ How civilized.
Dammit chat, you're ruining the beauty of math notation!
 
Chat at math.SE must be pretty frustrating.
 
$yes$
> Wts app group is also photography
lol "Class War" have 59 votes so far
ffs
 
3:12 AM
quiet tonight. or did I plonk everyone?
 
i gave people too many things to think about
like how many times 32 goes into 64
 
31
 
42
 
3:36 AM
0
A: How __atribute__((packed)) is used?

Lightness Races in OrbitWell, you misspelt "attribute".

That's literally the answer.
FML.
 
And you misspelt misspelled.
 
58
Q: Is it ethical to limit marks based upon past performance?

mirgeeA professor has a habit of starting oral examinations by asking for or looking up grade averages and grades from other subjects and then taking them heavily into account when evaluating the student in question. For example, I was allowed to be even considered to get an A in Real Analysis III, bec...

l o l
 
@Dean Taking the plane soon, cya maybe? :)
 
3:53 AM
what were all those deleted messages?
 
@LightnessRacesinOrbit I don't understand.
Do they not know WhatsApp numbers is just their phone number?
 
> guys this is not indianreunited.com can you chill out please thanks
 
@Cicada I tried to edit it but apparently there's a 6 char minimum
 
4:34 AM
 
4:46 AM
hows everybody doing here?
 
user3010322
@Rapptz Lelwat.
 
5:04 AM
Morning.
 
user3010322
Mooorning.
 
5:46 AM
@Nooble yes, except no and that sentence is totally wrong.
@Ell I was talking in general I have no idea what pirate uses. The paid support distros are prollyuch better, but OTOH they're for enterprise use only. The free Linux distros are all shit.
 
6:04 AM
Only mundane stuff on news, must be a slow news day ...
 
6:17 AM
Templates for C arrays. Gotta love C++.
 
@fredoverflow hence std::array.
 
But I want to fuck with people.
 
well you can always go with unions :)
 
You can't spell unicorn without union!
3
 
6:32 AM
@fredoverflow is that a new thing?
 
6:44 AM
@fredoverflow well, it's generally considered an unpleasant deviation if one wants to fuck with something other than people
 
You can't spell unicorn without con
Also you can't write c++ without c
 
See anything wrong with that or is it ok?
 
your warning is wrong
 
why?
I use a different toolchain than the one MSYS2 uses
you don't want to mix/match exception/threading models
 
It's wrong because I don't know what MinGW packages are.
You need to install things through pacman to build GCC. pacman has binaries too.
I don't think I've ever installed a library through pacman.
 
6:56 AM
not all binaries are bad from pacman
only libraries
 
Also why build zlib?
Every distro comes with it.
 
all those libraries have *mingw* in their name, hence *mingw* packages
@Rapptz as an example workflow
@Rapptz although to be fair I wasn't aware of that fact when I chose it as an example
 
> cd cd C:\dev\msys64
 
refresh
already fixed that :)
spotted it right when I asked you
 
I don't even know why you're making a link :v
 
6:58 AM
@Rapptz so MSYS2 uses our toolchain
 
Is there any canonical dupe for "I did [forbidden thing] and nothing stopped me, what gives?"
 
@user2357112 No.
 
@Rapptz it makes sure that if you mingw32_shell MSYS2 uses the 32-bit GCC toolchain
 
@orlp When you do g++ -v you should see --with-system-zlib.
Along with --with-libiconv but that's mingw-builds only.
 

« first day (1665 days earlier)      last day (3288 days later) »