« first day (1341 days earlier)      last day (3623 days later) » 

9:00 PM
Eva Peron was argentinian
 
@Rapptz Not a nursing home, but it's a senior residence.
 
@Mysticial plot twist: it was just a field trip :)
 
Ven
#thin #privilege
 
So if you're alone and you fall down, you're screwed. But my grandmother and grandfather are both alive - albeit senile. Either one can call us if something happens to the other.
 
Xeo
9:03 PM
what if the other falls over while going to the phone? :P
 
Then they're both screwed.
 
posted on June 18, 2014 by James McNellis

(This is the second of two articles on changes to the C Runtime (CRT) in the Visual Studio "14" CTP. The first article, The Great C Runtime (CRT) Refactoring , covered the major architectural changes to the CRT; this second article enumerates the new...(read more)

 
The chances of both of them getting incapacitated at the same time in a way that is still recoverable by external intervention is very low.
 
Question. I have an object TcpConnection that runs this in the constructor:
using namespace std::placeholders;
link->SetRecvCallback(std::bind(&TcpConnection::LinkRecvCallback, this, _1, _2));
 
9:07 PM
If a plane crashes into the building and incapacitating both (killing them), that's not recoverable. So it doesn't matter.
 
This segfaults. (link is a member object.) Moving the statement to a member method called immediately after the constructor does not crash. Why?
(I'd ask a question, it just seems too trivial.)
 
"I'd ask a question, it just seems too trivial, despite the fact that my "trivial" question is totally unanswerable."
interesting perspective.
 
Xeo
attach a debugger and check why it segfaults?
 
go ask a question and this time, try to either debug first or attach sufficient information to debug it
 
Xeo
cue 'link is null'
 
9:15 PM
Xeo, heh, no. I think it is because you aren't guaranteed that objects are initialized in the constructor body (only if you explicitly mention them in the initializer list, even if using the default constructor).
LinkRecvCallback is using a mutex that is crashing I think.
 
Xeo
SetRecvCallback doesn't sound like it would invoke the callback immediately
 
@thirtythreeforty What are you smoking? Unmentioned objects are default-initialized.
 
No, but the callback might immediately get called.
 
also, seriously, ask a question.
 
DeadMG, before the constructor body is run? OK.
Mentioning it didn't fix it. I'll ask a question.
 
user3010322
9:18 PM
All member objects are constructed before the constructor body is run.
 
I thought so, but then doubted myself ^
 
they are default-initialized but not necessarily constructed, assuming no NSDMI is involved.
 
user3010322
Mmm.
 
one of the many things I'm glad Wide does not have.
 
DeadMG, what is NSDMI?
 
user3010322
9:19 PM
Nonstatic Data Member Initialization
 
user3010322
E.g.
 
user3010322
struct woof { int arf = 20; woof () {} };
 
user3010322
Probably won't affect you
 
When does arf get 20?
 
everywhere.
 
user3010322
9:20 PM
@melak47 What kind of information would you want to track per ray?
 
before the constructor body is entered.
this is really "Read a book" stuff.
 
Oh, but not necessarily before the initializer list.
 
@ThePhD dunno, but how many bhv cells/whatever were traversed seems like worth looking at
 
I do need a C++11 book
 
user3010322
@melak47 So far I have color, optional<primitive>, hitcount...
 
9:21 PM
how could you possibly initialize every member before the initializer list that initializes the members?
 
user3010322
I might separate hitcount into primitivecontacts versus bvh traversals
 
user3010322
Oh, and undershadow
 
user3010322
I should have that too.
 
@DeadMG a later initialization might depend on an earlier one in the list. But is there a guarantee about when that NSDMI occurs in the list?
 
the list is irrelevant.
they are initialized in declaration order.
 
9:23 PM
Gotcha, still holds.
 
user3010322
@thirtythreeforty NSDMI always are initialized in declaration order: it's as if the NSDMI is automatically inserted into the constructor list.
 
Apparently Kira is now checking for errors in Donald Knuth's books.
 
The DeathNote was written in TeX obviously.
 
user3010322
DeathTeX
 
9:25 PM
@ThePhD I see, thanks.
 
user3010322
Sounds like a new LaTeX distro to me. :D
 
user3010322
@thirtythreeforty If you write a constructor where you manually initialize arf, then the NSDMI is not applied.
 
user3010322
It's basically a "default constructor initializer".
 
Makes sense.
 
user3010322
Going back to your question...
 
user3010322
9:26 PM
You may need to look into what TcpConnection::blahblahblah is doing when Recv is being called.
 
user3010322
Also, that's not a virtual function, is it?
 
like I said, he presented far too little information to have any hope of an answer and this whole thing was a total waste of time for all involved.
 
[this](arg1, arg2) { ... } :>
std::bind is lame
 
if only I could downvote people for wasting time posting shitty questions in chat as well as wasting time posting shitty questions on the main site.
 
It is not virtual. I'll see about it. The backtrace mentions a mutex I created... And Rapptz, I'm eventually gonna get stuck with C++03 so I am trying to avoid lambdas and other deep magic that old compilers don't understand.
(boost::bind drops in)
 
9:30 PM
Sucks for you.
 
The world would be a much better place if people were required to obtain a license before possessing a compiler.
 
But how would you obtain a license? XD
 
what should I do about JSON \uXXXX stuff
 
user3010322
What about it?
 
9:34 PM
idk what to do with them
atm they just pass through
cause C++11 supports it
so iunno if I should change them to \x or what
 
user3010322
Why would you change it?
 
I don't know if I should or not :v
p.parse("\"\\b\\f\\n\\r\\t\\u0014\\u0002\"", v);
What do you expect v to hold?
cause atm it's "\b\f\n\r\t\u0014\u0002"
 
user3010322
That's fine.
 
Xeo
raw string pls
 
@thirtythreeforty Bribes. With hookers.
 
9:36 PM
@ThePhD Yeah I guess.
I didn't see anything wrong with it but I looked around and people transform it into \x literals
 
user3010322
I still don't know what v is
 
user3010322
or what p is
 
user3010322
or what this is in relation to.
 
p is json::parser and v is json::value
 
@Rapptz People also rape, murder and steal.
 
9:38 PM
Nice comparison.
 
user3010322
It's like comparing Apples and Machine Guns
 
user3010322
Two totally similar things!
 
@DeadMG As long as they know how to effectively ask questions I'm ok with that.
 
the only relevant aspect they both share is that people do them.
 
yeah and that's not really much
 
9:39 PM
aptly demonstrating that the fact that people do them tells you absolutely nothing about whether or not it should be done.
 
the behaviour you listed is considered wrong
both behaviours I've listed are considered correct
 
are they?
by who?
 
yes
ask on Lounge<Philosophy>
 
also, I expect that rapists feel that rape is perfectly correct.
 
this is going downhill fast
 
9:41 PM
it started at the bottom of a hill when we started considering what "people do".
I'm merely pointing out that whether or not people do it or what people consider about it is utterly irrelevant to pretty much anything.
rape is just a convenient example of an all-too-popular negative behaviour that people do.
 
it's also totally irrelevant and quite frankly a retarded comparison.
 
nah.
 
I'm making a library so I see what behaviours people expect from other existing libraries.
Completely different
There should be a variation of Godwin's Law involving rape
 
if existing libraries effectively delivered what people wanted... why would you make a new one?
by definition, if you're creating a new solution, it's because the existing ones don't deliver.
 
APIs are terrible
the parsing is fine
the API is bad
 
9:44 PM
then what makes you think they'd be any less terrible at parsing?
you're making a totally unfounded assumption that they have an accurate picture of what their user base wants.
 
I'm not sure why I'm discussing this
@ThePhD I'll just take your advice and leave it alone.
It's easier for me anyhoo.
 
IMO it's good to know why they are wrong.
So you won't make the same mistakes.
 
I noticed there were two different behaviours -- leaving the \uNNNN literals alone or transforming them into \x literals. I asked which one would have been better/expected.
That's all.
 
it implies that, for example, they're not equally bad, or both unexpected.
 
They're both not bad.
C++03 didn't even have \u literals
 
9:49 PM
determining the answer to the question, "Is this behaviour expected?" requires that you know the expected user behaviour- in which case, asking the question is kinda pointless since you can just go with the expected user behaviour. Therefore, there's no benefit in asking that question.
 
IMO you should leave them alone.
 
Yeah I am going to.
 
steam summer sale so close
my wallet is already disintegrating
in the end tho all I want is the new rise of nations, the DLCs for Civ 5 and stronghold collection :\
not too much
 
@Rapptz I unescape them :v
 
why?
 
Xeo
10:03 PM
Hm, I wonder if you can change the alternate keyboard for the IME to be UK-based.
 
so I can do utf8<->utf16 for shitty windows api calls
 
user3010322
If JSON's string values are meant to be UTF8, then transforming them into their regular API things is good.
 
user3010322
But, this could also just be a template parameter on the parser
 
user3010322
or a runtime configurable option.
 
@melak47 lol
I'm only doing UTF-8
 
user3010322
10:05 PM
Making it the actual byte values might not be the worst thing.
 
@Rapptz well, yeah...but utf 8 with escape sequences is kinda meh :E
 
user3010322
But, the thing is, a developer might WANT to send escaped sequences through.
 
user3010322
So changing it for them could be mean.
 
that's on him then. go escape your own shit :p
 
user3010322
Honestly, it should just be a parameter that you can chance, but the default should be not touching it.
 
10:06 PM
I don't do validation at all on strings
I do validation on everything else though
 
make sure you watch out for huge numbers
I've seen crappy APIs return floats too long for double :/
when they were supposed to be ints :/
 
I kinda let std::stod take care of that for me
:v
 
if you don't mind truncated crap, that's fine :v
 
I don't know if it's supposed to truncate.
I think it's supposed to throw std::out_of_range
I might be wrong though
 
oh, yeah
 
10:10 PM
> std::out_of_range if the converted value would fall out of the range of the result type or if the underlying function (strtod or strtold) sets errno to ERANGE.
 
so
 
I "upconvert" to string if they're too big
because you might still want to have the crap and not except :v
 
Friday morning WGP want to see me so they can ask me what I've been doing to find work in the whole one day since they last saw me.
 
you can tell them that story about how you blew your last interview chance. :)
 
atm the parser is "strict" except for validation on strings and allowing inf/nan.
 
10:13 PM
WGP?
 
Worthless Government People
 
work...something
 
@DeadMG lol
 
Xeo
Ooh, apparently one can change the underlying keyboard layout, whee
 
Xeo
10:27 PM
Hm, there's a UK extended layout... but that changes ` to a dead key...
fuckers
 
10:41 PM
@DeadMG You can merrily tell them about the opportunity you flushed down the toilet the other day because :effort:
 
Xeo
Hm. Okay, the switch worked. But now alt+` doesn't change between alphanumeric and hiragana input anymore :(
 
lots of anime gets announced, no s3 of nyaruko
:(
why must I like what most people don't
 
user3010322
Because you're a sicko.
 
why would anyone want to watch a new sailor moon
anime about cthulhu is teh shit
 
@Chimera The people who were supposed to get jobs that would contribute to society, but evaded that by instead creating themselves jobs preventing anybody else from getting paid to do be useless drains on society like they are.
 
user3010322
10:54 PM
Either way, it's 6 hours according to google between me and a campus.
 
this just occurred to me
 
@JerryCoffin They also make jobs for their lawyer buddies
 
instead of going to the exam just to fail because my parents want me to go
I could not go and go to work instead
 
Xeo
@AlexM. waaant :(
 
AND LIE ABOUT GOING
 
10:54 PM
@JerryCoffin go it
 
Xeo
This is annoying. I want alt+` back for turning IME on/off
 
@Xeo ikr
 
user3010322
Welp.
 
user3010322
My first attempting at implementing a BVH went HORRIFICALLY.
 
@ThePhD BVH? Bad Vertical Handling? Bloody Ventricular Hospital? Bonded Vassals' Home?
 
user3010322
10:59 PM
Bounding Volume Hierarchy
 
user3010322
Specifically, this one.
 
user3010322
My body is not ready.
 
user3010322
I should go back to an Octree or a kd-tree.
 
@ThePhD I think I preferred my interpretations.
 
user3010322
A ventricular hospital sounds scary, though. D:
 
user3010322
11:00 PM
Especially if it's bloody!
 
@ThePhD Seemed like those went together (to me).
 
user3010322
Well, the majority of people do die in a hospital.
 
So, I have a bug I need to fix where safe search on YT for a particular app doesn't work.
I should probably warn the people around me before I try to repro the bug.
 
user3010322
Leave it off. For Anarchy.
 
user3010322
Better yet, close it as wontfix.
 
11:03 PM
The repro steps in the bug say:
> 3. Search keyword (e.g Dorcel, porn, nudity, fuck, 야동)
um... yeah...
 
user3010322
Lol
 
Xeo
Wat, since when does YT host porn?
 
it doesn't
but people can choose anything for titles afaik
I should probably turn safe search on google on, but I don't want to do that because at times it would be inconvenient
sometimes it really pisses me off
I was searching for something like people from mexico
and among the first results was this pic of a girl who was dismembered by some mexican mob or w/e
 
Success. Time to bed.
 
like seriously google I didn't want to see that
 
Xeo
11:20 PM
Okay, setting the layout driver to kbd106.dll was not the smartest choice
grmlgrmlgrml
I want both alt+` for IME on/off, and UK layout in IME mode
There does not seem to be a way to reconcile these two :(
 
I love writing Scheme
it feels like writing in a foreign language
 
11:37 PM
 
1
Q: Asking days badges

Jon EricsonA couple of months ago, I suggested a set of badges for asking questions. The responses were... mixed. The top answer can be summarized: In practice, all this would do is encourage people to ask yet more stupid, worthless questions and we have quite enough of that as it is. We believe that ...

 
@StackedCrooked One of my friends bookmarked coliru today because i kept sending him samples. Thought you should know :)
p.s: thanks for keeping it running
 
Xeo
@Mysticial Hm, I might like that
My score right now is apparently 72
 
My score is 2. :(
 
Xeo
Wrong site?
oh wait :P
Puppy would get gold with his 300+ questions right now
Okay, I should restart to get rid of the kbd106.dll driver
 
11:49 PM
I have 0 questions.
so I have 0/0
And I guess \lim_{x \rightarrow 0} \frac{x}{x} = 1
so my score is 1.
:v
 
Xeo
welp, bedtime
hm. 0/0 wasn't defined, right?
 
no
 

« first day (1341 days earlier)      last day (3623 days later) »