« first day (2560 days earlier)      last day (2387 days later) » 

12:39 AM
I need a list of most common errors of proprietary mail server and how to solve them
so I can solve the problem myself instead of calling for help of support from service provider, even though I get timely, free support
I am a hardcore DIY enthusiast
 
1:04 AM
@Telkitty Softcore DIY porn has a better story line...
 
"We wanted to go hard but didn't"
 
...
when you say something and someone else took it the other way ...
 
1:25 AM
learning to write code for a robotic cat
 
I don't want a robotic cat, I want a full functioning robotic tradie
 
 
2 hours later…
3:08 AM
Also std::fill should take a function/predicate
 
3:35 AM
@Mikhail So you want a fill_if?
 
4:40 AM
@LucDanton putain mais merde quoi
j'adore necro, fait chier
>mfw even ranger isn't as useless as necro
 
5:06 AM
Quick question guys: If we could maintain a linked list of free frames.
The linked list is maintained as a list of nodes where each node has a frame number, and a pointer
to the next node. Assume these pointers and numbers are 32 bits each.
Calculate the space requirements using each of those methods for the following system, give the
answers in bytes:
 
@DiegoPereira ranger’s been among the top dps spots for months
years? I kinda lost track of time
 
@Telkitty it can spill cups at maximum efficiency :p
 
dont worry i figured it out !
 
@DiegoPereira come to think of it, ranger has been one of the top utility spots from the start anyway
by the by, this year’s Halloween event has had just enough additions to feel fun again
an unexpected but very welcome surprise
 
5:24 AM
at the very beginning it was really shitty
remember bear bow?
 
@DiegoPereira ranger sword, Spotter, and Frost Spirit are all relatively unchanged from the beginning and it’s all you needed
what am I saying, ranger sword used to be bonkers lol
 
6:09 AM
yes, that's true
 
7:05 AM
@ABuckau huh? wut?
Is it me or does anyone else also think human body is awfully efficient? Think about how much oil a car need to drive 200km in congested streets. Then think about how much fat a person burns by moving the same amount of distance? Surely cars are much heavier, but they need to overcome resistance while human has to move legs up and down ...
 
Hi
 
7:24 AM
heyo
 
7:34 AM
Meow
 
Ven
8:01 AM
hi
@Telkitty nice fingering that pussy
 
8:29 AM
furry pussy not satisfied, kitty unhappy ... because of your finger pointing ...
 
@Telkitty At some point, some human could probably just roll out too!
 
9:24 AM
Came across this
> moral of the story: avoid C++
 
9:49 AM
My programming tasks for tonight: setting up CI and writing a README
So much fun ahead...
 
@Morwenn hosting your own CI?
 
@Morwenn Thats gonna take more than one night for sure
 
@thecoshman Of course not xD
I'll just copy-paste my Travis configuration from cpp-sort and apply the slightest changes
 
noice
 
I shouldn't forget to mention in the README where I stole code
I took most of the tests from libc++, and a part of the code too
The padding bits detection in integers comes from a WG14 proposal
And I straight took the endian detection from Howard Hinnan's WG21 proposal
Oh, and I added more tests by stealing cppreference examples
Also Boost testsuite, but it doesn't quite pass, so I won't upload it
 
9:58 AM
ISTR that detecting the host endianness is nearly always the wrong thing to do
 
10:15 AM
 callsInside(command).map { call -> commands[call.target.lexeme] }
// IntelliJ IDEA proposed the following change:
callsInside(command).map { (target) -> commands[target.lexeme] }
// Which one do you like better?
 
first version has a redundant space at the beginning of the line, otherwise better
 
Ven
10:30 AM
vOv
 
10:40 AM
@Puppy When you stick two unsigned integers in one twice as big, you generally need to know the endianness :p
It's surely the first time it acutally mattered though
 
@Morwenn No you don't.
that operation can be expressed with multiplies and bitshifts without knowing endianness.
 
I basically don't do operations, it's just that the order of my elements will change so that they can be reinterpret the right way
 
that sounds like a strict aliasing violation
 
memcpy
 
ah, so you actually do perform an operation.
 
10:43 AM
Elided by the compiler
 
in which case my original observation is still totally valid, which is that you can implement that routine without needing to know endianness.
 
I do
 
really? thought you just said otherwise above
 
I memcpy an unsigned[2] in an unsigned long in a pair-like class in to compare two unsigned long instead of two pair of unsigned
Thus the order in which I store my integers in the array depends on endianness
 
11:05 AM
@Morwenn Right, but it can be re-written to use bitshifts instead of memcpy in a way that does not depend on endianness.
 
But will the compiler be able to totally consider the bitshifts as a memory reinterpretation and elide them accordingly?
 
don't.. know
 
11:20 AM
The only reason I started to care about byte order is that I blindly thought the following would work:
unsigned int arr[2] = { 0, 15 };
unsigned long big;
std::memcpy(&big, arr, sizeof big);
assert(big == 15);
Turns out it didn't
 
11:38 AM
long big = ((long) a[0]) << 32 | a[1];   // you're welcome
 
Ven
@fredoverflow did you just assume my integer sizes
 
11:54 AM
@Ven that he did
Oh, the GCC bug I reported two days ago is fixed in trunk
 
Ven
link to the commit pls
 
Not sure about the commit, but here is the PR
 
Ven
@Morwenn wtf is this lisp-ish thing
 
gimple I guess
The internal representation used by GCC
@Puppy @fredoverflow Apparently GCC and Clang both manage to turn the shifts in a memory reinterpretation (aka no operation), I've got to say I'm genuinely surprised
 
Ven
12:12 PM
@Morwenn godbolt
 
@Ven Excatly what I'm using
 
Ven
@Morwenn link pls :c
 
Ven
@Morwenn ty <3
 
Sorry, I fucked up xD
But in this specific case I don't have the result I want though because I shifted the fields in the wrong order
It was only to demonstrate that it can totally elide the shifts
So... for max perf I need to reorder the array and the shifts shifts if little endian, otherwise it will actually make shifts instead of reinterpreting the memory .____.
 
Ven
12:17 PM
make shift, do work
 
On the other hand, the shifts can be constexpr while memcpy can't, so that solves one of my last problems ^^
Thanks people, you're awesome as usual, even when slightly grumpy <3
 
nwp
You take back "slightly" right now!
 
12:34 PM
@Morwenn By people I think you mean me ;p
 
1:11 PM
@Puppy Ssshh, I'm trying to be almost nice :D
 
1:47 PM
@nwp what a terminal does is unrelated, right. Terminals indeed need to return the carriage as well feed a line
 
nwp
@sehe Yeah, there is no actual teminal involved besides that the output is intended for a terminal to understand.
And maybe "character device" would be more accurate than terminal.
 
@sehe yay - that comment got deleted. Sillyness. Let's have the question lobotomized instead. Or Boost PropertyTree. Or let's fix the docs with HUG*E banner warnings
@nwp I didn't look at the code, just eyed it and spotted that you were dealing with termcap-like things, which is not what cout nor ofstream do
 
nwp
It's probably defined somewhere here.
 
 
1 hour later…
3:00 PM
:(
 
BREAKING
 
sadface
I used to like BBC news
 
nwp
The rest is what people actually care about?
 
a.k.a. entertainment
 
@nwp no, that's why it's so big
 
3:04 PM
the rest is just random noise
 
3:42 PM
@Puppy hahaha 13% rise in crime, yeah, Brexit was a really smart move (serious note though, over what time frame is that?)
 
the headline is misleading
if you read the article, they conclude it's probably mostly just more things being classed as crimes and better recording by police
 
sounds like an excuse to me :P
It's very easy to factor out the 'more things classed as crimes' by only comparing things that were so in both time frames
 
nwp
Changing metrics in order to be incomparable to past performance is pretty smart for a politician and appropriately dickish.
 
it's really dickish if they don't publish the comparable stats
 
nwp
They probably made sure there are none that would allow unfavorable conclusions.
 
thanks
 
I think that 1 hours is sometimes way worse than that
I tried to explain that to my wife for a whole year now
 
nwp
Are you working from home or trying to be productive in your free time?
 
working from home
the worst part is when people see you're not coding they assume they can just pop in and disturb you from actually focusing
 
@LoïcFaure-Lacroix You could shorten that to just: "the worst part is people", and leave it at that. :-)
 
4:35 PM
@LoïcFaure-Lacroix Turn your monitor+desk the other way so you're looking out the door.
 
@Mysticial how does that prevent anyone from opening the door that is closed?
 
@LoïcFaure-Lacroix Make it so that people can't easily see your monitor unless they enter all the way in. That way they can't see that you're not coding.
 
I found the most effective way to work is at night because people sleep
but it suck
 
I also don't like it when people can easily stand behind me watching me without me knowing. In my previous jobs where I had some control over the layout of my workspace, I try to keep as much in my peripheral vision as possible. IOW, facing the door/window. And back towards the wall.
Not sure if this is that feng shui stuff that Chinese people talk about.
 
If I could design my working area like Fort Boyard, I think it would help
 
nwp
4:43 PM
It's your home, seems reasonable.
 
This is particularly tricky to do at my high-rise condo. Since my computer room is in the corner, there's windows on two sides, and a door on the 3rd. But if I put my back against the wall, it means I'd need to put my desk in the middle of the room - thereby wasting all that space.
 
basically "a waste of space" vs "lack of privacy" tradeoff
I've chosen the former
 
@milleniumbug I actually face the wall. Windows on the left and back. Door on the right. But I lower one of the blinds behind me - though mainly to prevent the sunlight from sun-bleaching my wall scrolls.
 
I guess you could put blinds on the windows on one side
oh, right, wall scrolls
for me it's mostly not letting sunlight reflect from my monitors
 
@milleniumbug That gets quite annoying for about an hour in the evening during the summer. Now that it's fall, it's already dark when I get off from work.
Since I'm not in very high unit, there's a bunch of high-rises that manage to block the sunlight the majority of the time. But they also cause light to come in at weird angles from the reflection off their windows.
 
4:55 PM
light in the morning strikes me horizontally in the eyes for 20min
 
probably should look away
 
I do my best hiding behind the monitor
 
@LoïcFaure-Lacroix Morning light prevents me from putting up wall scrolls in the living room.
The blinds in the living room aren't entirely opaque. (I also don't wanna keep running them every day.) And there's no obstacles to the east since it's a lake. So sunlight comes directly in and bleaches everything for maybe 2 - 4 hours every morning.
 
wall scrolls?
 
5:04 PM
Mar 19 at 17:42, by Mysticial
user image
 
Ah, that was before I added carpet to that room.
(area rugs, since I didn't want to rip out the hardwood floor)
 
Ell
Because size_t is always positive... Of something?
 
5:29 PM
pǝuƃᴉsun
 
Ell
oh lol
 
@milleniumbug the lack of screens is disturding.
 
@FélixGagnon-Grenier Are you talking about window screens or monitor screens?
 
E_TOO_MUCH_LIGHT
tbh, that was a lame joke about the monitors, but now that you mention it
 
oh lol
There are blinds on the windows. They're just all the way up.
 
5:41 PM
neat
 
I just never lower those ones since they face north so no direct sunlight ever gets in from there.
 
so, no dreaded sun glare. lucky you.
I'm both blessed and cursed with floor to roof windows on two sides of my cubicle. I am developping a love hate relationship with the sun.
 
@FélixGagnon-Grenier I get it from the back side that faces west.
 
in a whiterun guard voice Something to be said about natural light too.
 
6:09 PM
I think I'm done with the code part of my pair class
Now, on to the CI...
 
So, apparently, the newest Ubuntu is going to switch from X.org to Weyland.
I am scared to update.
 
Sandbox test it first?
 
@Mysticial Hmm... I do not have a second PC like this. Testing it in a VM won't be a good test.
 
Technically, you only need a different boot drive. So if you have an old hard drive lying around you could do it.
 
Ell
6:25 PM
@wilx xorg session is still available
Try logging into Wayland, if that doesn't work select xorg session
 
nwp
@wilx I thought they had integrated with Wayland for years now. In a non-replacy way.
 
 
1 hour later…
7:28 PM
@Ell GDM has an auto fallback to xorg
 
8:17 PM
C++17 compressed pair: done
Now I still need to finish that poplar heap project...
 
nwp
@Morwenn Did you go with the "Let's bitshift for little endian which is a noop and screw big endian"-approach?
 
@nwp I went with "let's bitshift for both and order the elements differently depending on byte order so that it's always the fatest"
And "if any other endian which isn't supported by any C++17 compiler anyway, just use the usual pair comparison algorithm"
I don't even have what I need to check big endian, but little endian was tricker to get right anyway, so I'm confident :p
 
@nwp Just use the bitshift unconditionally as it is always correct..
 
8:33 PM
@Morwenn You're braver than I.
 
Wait, what's the endian problem here?
The pair thing?
 
yeah
Nothing new under the sun :p
 
You can fix it with one instruction.
 
Fix it? But it works (supposedly)
 
Which word is supposed to take priority in the compare? The first one (lower address) or the second one?
 
8:37 PM
The element returned by get<0> is supposed to take priority
 
So you don't know the memory layout?
I heard from somewhere that std::tuple has it's shit backwards or something.
 
Depends on the implementation
 
If it's backwards, then you don't need to do anything special on little-endian.
 
If just made the memory layout change depending on byte order so that the shifts would always end up as a no-op
It's forward for big endian and backward for little endian
 
> When the Revolution Came for Amy Cuddy - NYTimes.com -- Pretty interesting article about study replication in psychology.
 
8:40 PM
If you need to do the shift on x86: _lrotl
Rotate by half the size of the word.
 
With the byte order-depedent layout, there's no shit left to do
* shift
 
oooh.... aha, I can't read.
@Morwenn No, it's correct as it is. :)
 
If it's an exoctic endian, or if I can't optimize for the type, I just store forward
 
If it's an exotic endian, then: static_assert(false, "How about using a *real* computer?");
:)
 
xD
"but PDP"
> Today, no C++14 compiler targets a machine that is not big endian or little endian.
 
9:12 PM
Apparently, there is a dude named "Glenn De'ath." This is the coolest family name ever.
 
 
1 hour later…
10:17 PM
When I rub myself on a tree, I can milk my nipples a little.
6
 
O_O
 
...what
 
there, finished refactoring my finances
new features: keep savings separate from regular expenditure and set savings target by transferring in the ideal maximum every month immediately instead of just chucking in whatever's left over
now I merely need to figure out how to increase my saving from 25% to 35% of my monthly income
 
nwp
10:34 PM
@CaptainGiraffe Stop drinking.
 
11:03 PM
@Puppy are you gonna invest in funds or do just put it on a savings account?
I put everything on savings account which has a whopping interest rate of 0.25%.
I should probably have a look at other options..
 
Speaking of which, I need to freeze my fucking credit.
 

« first day (2560 days earlier)      last day (2387 days later) »