« first day (1438 days earlier)      last day (3508 days later) » 

11:01 PM
@Sofffia char_traits could be implemented differently bub
char_traits for char is simple
 
ah fuck
typically, there are no services going from here to Bristol for three hours in the morning
when I could really use one to be going
 
@user2913094 Oops, those were copy-paste errors while editing the post only (you can see that in the Coliru link), fixed. Like I said, "if you like obscure code" you can do that variation. In practice, it's not about the legibility. It's about the odds of you missing a subtle interaction that leads to UB. I highly doubt you would have thought twice if your compiler had seemingly done the right thing with just lambda(_a=_1)[arg1[_a]]. It's your call. (My principles: Code should express intent. Verbosity can be good. KISS)sehe 48 secs ago
@LucDanton ^ OP is defending the +_1 (slightly worse than +qi::_1 even). I feel bad for spelling it all out. I do this to learn for myself :S
I suspect a FP enthusiast. Should we tell him about Haskell?
 
@Sofffia Yes, and for one of them, it's going to take twice as long to load it from memory, etc.
 
11:23 PM
Err guys, does anyone know if destructors get called when you force close console?
I'm getting segfaults at 0xFEEEFEEE
Works perfectly when I run through my program correctly though.
 
Ell
If you force close the console they probably don't
 
@Nooble iirc thats a "standard" pattern for uninitialized memory/variables
 
Ell
I'm guessing that's windows
 
Dammit
 
@Nooble They don't. Unless you are referring to a custom console that's actually a terminal emulator that sends the application SIGINT, SIGTERM and your program handles those. Unless that's the case, the process is just killed
 
11:24 PM
So this is probably why I'm getting access violations, gonna go try to hack a fix.
 
Ell
Not likely
Aborting shouldn't cause an access violation
You're not even attempting to access anything
 
On windows, could happen. If the console was attached from a parent shell, the program doesn't own it and the program might keep on running but no longer able to write to the now-detached console. So, using the stale HCONSOLE will lead to a GPF
 
ehm, debugger?
cmon
 
Ell
Ah, excuse my inexperience
 
@LightnessRacesinOrbit you read my mind <3
 
11:27 PM
The debugger is not providing too much information
 
I don't get why people are so eager to break out the debugger. IME it's much more effective to reason about things first. And then maybe confirm hypotheses in a debugger. Yes
I hate using the debugger as a sort of hand-torch
 
Ell
@sehe I think so too
 
you can reason more accurately when you have the information given to you by the debugger
 
Ell
A debugger simulator would work for me :P
But then again I don't do much
 
@sehe Grandpa, we have things called flashlights now, fire is so last millenia
 
Ell
11:29 PM
I should stop talking
 
@Borgleader I'm no native speaker, but I have concluded that "torch" is a perfectly cromulent word for flashlight
 
Ell
I usually speak outloud what is happening in the next line and what values should be then step
 
I've never heard it referred to as a flashlight by any British person
always a torch.
 
Ell
Yeah a torch
 
o.o we call them flashlights over here
(not to be confused with fleshlights mind you)
 
11:31 PM
googling fleshlight
 
I'm canadian D:
 
Ell
Merkins eh
 
A phosphorescent merkin would do nicely
 
How could that possibly be good?
 
11:33 PM
LRIO doesn't want to think about it. He doesn't care. That's probably how it's good to see you fight the debugger
 
@sehe Erm if you've got a segfault and you've thought about the issue long enough to come into the fucking Lounge of all places and ask for random guesses at absurd scenarios that could cause it, then it's definitely time to break out the debugger and get a goddamn stack trace
it'll probably identify your problem within 20s
@Nooble Because too much of anything is bad?
 
Only 12 words to "fucking". Well then.
 
lel
 
Ell
@lightness I know I'm terrible and everything but I usually type my first guesses here
 
@sehe You've been a bit of an arse to everyone today. I'll unplonk you in the morning.
@Ell Sorry to hear that :(
 
Ell
11:34 PM
And then regret it
And apologise
 
@Ell Less sorry to hear that :)
@Ell Apologies accepted <3
 
@Ell You'll be made to regret it :)
 
Ell
It seems to be somewhat instinctive :L I guess its rubber ducking of a kind
 
Now we're all friends again, we should have a tea party with Victoria Sponge.
 
Ell
apart from it gets on peoples mind probably
 
11:35 PM
with who now
oh, right
 
Ell
Wait I forgot the phrase
 
Well that’s a new one, the favicon for #stackoverflow is being requested a ton because it’s being embedded in the top of a porn site. Yep.
lol
 
@sehe haha wat o.o
 
COMMA ABUSE DETECTED
 
11:36 PM
"Dick overflow"
 
Ell
"This gets on my mind" = "this bothers me" -did I just make this phrase up?
 
@Ell no
 
@overexchange ello
 
does any body have an idea of inmemory database berkeleyy DB, which is written in C
?
 
Ell
11:38 PM
I don't know what a berkeleyy db is
 
key-value database
 
You mean like std::map in C++?
 
Ell
Not relational? Idk
 
OH and also you need to post a testcase please. Disappointing to see a 63k user not bothering to post a testcase. — Lightness Races in Orbit 49 secs ago
@Ell Yes
 
not relational
 
11:39 PM
@sehe Oh, that's easy. Debuggers are far more effective as digging out bugs. Thinking about stuff on its own just does not work. Thinking about the whole system, with the evidence from a debugger and/or logger, is hugely more effective.
 
@Ell "This gets on my tits" "This weighs on my mind" "This does my fucking head in" all valid
never heard of "This gets on my mind", though "I have this on my mind" is a weak but valid alternative
 
Ell
Yeah I think I made it up
 
@MartinJames Evidence! FACTS!
 
That does my mind in my nerves
 
you right now
 
11:41 PM
@LightnessRacesinOrbit I have none. It's all empirical and experience.
 
@LightnessRacesinOrbit SYMPTOMS! Red herrings!
 
I've solved plenty of bugs without a debugger, but again I would not hesitate to expend a tiny portion of energy obtaining a stack trace in the case of a segfault, unless I could immediately spot a trivial fault in the code that was sure to be the culprit
@sehe Knowing what functions are on the call stack is never a red herring
 
Ell
@sehe nerves!
 
how do i reach moderator as nobody asnwered my query yet?
9
 
@LightnessRacesinOrbit Fuck stack traces. Sometimes they're useful, but mostly, I just need to see the current values of vars at breakpoints.
 
Ell
11:42 PM
That's the word I was looking for
 
am in need of an answer
 
Mentally stepping through is useful if you haven't seen the code in a while IMO, but if you've just been working with ti you'll probably read what you meant rather than what it says.
 
@MartinJames Oh I never look at the current values of vars. That really just takes all the fun out of it
 
@LightnessRacesinOrbit Yeah, right:)
 
@overexchange why does that require a mod?
 
11:42 PM
@overexchange What makes you think "reaching moderator" is going to help with that?
 
@overexchange Moderators wont help you with that. If your question goes unanswered thats just how it is.
 
Ell
Stack traces help me before variable values do
 
@overexchange Everybody who posts a question is in need of an answer.
 
@Borgleader It might, if you're a neutron.
 
11:43 PM
@LightnessRacesinOrbit Unless they're unrelated to the failure mode. Anyways, I get what you mean, you get what I mean (you really do, as always, you will argue this);
I was just balancing a bit for the "scolding" of someone who asks about the behaviour of processes in console windows upon being closed in general.
 
i am seeking help from technicians who are from berkeley-db group
 
@overexchange spend your time making the question as clear as possible, providing relevant information , and you're more likely to get an answer soon.
 
@Ell I generally know where my code is going. Why it is going there needs var values.
 
You are not entitled to an answer, you are simply asking for one. If you don't get one, well, tough luck.
 
11:44 PM
@overexchange i doubt youre in the right place for that
 
am here because berkeley-db programming is C
 
this is C++, not C
and not database programming either.
 
@overexchange i dont see how thats relevant =/
 
I used to think Berkeley DB used SQL
 
i see C programing queries generally answered here in the past
 
11:46 PM
@sehe its programmed in SQL and encrypted in base64
 
Oh. I learn everyday
@overexchange Are you sure you're feeling well?
 
@overexchange This isn't a fast track SO, this is a chat room. That said, some things are better suited to chat (like opinion based things)
 
You might be confusing this page with Stack Overflow
 
^
 
11:48 PM
@overexchange That's unfortunate. In the Lounge, we're either drunk, depressed, bankrupt, hungry or just don't care about SQL, (especially the latter).
 
And we specifically loath C.
And PHP
 
Hungry
Definitely hungry right now.
Need nachos.
Anyone want to donate?
 
$0.02
 
:)
Anyone else?
 
@Nooble I have bacon and sausages. Gonna cook and eat them. No Chinese for me tonite.
 
11:49 PM
Bacooonnnnnn
 
@overexchange: I downvoted your question. It links to a piece of documentation, quotes the first two paragraphs of it, then asks how to do a thing which is explored in depth in the rest of the same page of the documentation. In ten hours you didn't bother to read it, instead choosing to come here to spam your question.
 
@Nooble I have only one slice defrosted, the rest is an iceberg. It'll have to do:(
 
Ell
Meh bacon isn't really nice
IMHO
 
U WOT M8
 
Ell
Much prefer sausage
 
11:51 PM
But bacon!
 
@Ell prepare yourself for an onslaught D:
 
Bacon is, like, you know, nice, man.
 
Ell
I don't see what's so great about it :L
 
It's bacon.
 
Ell
The internet only makes me dislike it more
 
11:51 PM
That's what.
Well too bad for the internet.
Bacon > +Infinity
 
Ell
Pork belly is yum
 
@LightnessRacesinOrbit It's pointless reading the rest of the document if you want a unique answer. Someone else will have already handed the copy/pasted original in.
 
Pork belly? Gonna have to google this.
 
What.
Amazingly, pigs do have a belly!
 
They do?
 
11:53 PM
@Ell starred for you being wrong
 
Surprising.
 
They also have four heads and a unicorn attached to each nose.
 
Each?
 
Yep.
Each
 
Multi-nosed and Multi-horned and Multi-headed Pork with a BELLY!?
Madness.
 
11:54 PM
I have one as a pet.
His name is Derek.
 
Recursively.
 
Yes, because the unicorns too have pigs on their noses.
Infinite unicorn and pig recursion.
 
So the stack trace has lead me to std::locale::locale
Dafuq is a locale
 
Noun: locale (plural locales)
  1. The place where something happens.
  2. (computing) The set of settings related to the language and region in which a computer program executes. Examples are language, paper format, currency and time formats, character encoding etc.
  3. locale m (plural locali)
Adjective: locale
  1. feminine form of local
  2. locale m, f (masculine and feminine plural locali)
  3. locāle
 
Ell
I don't know how to pronounce locale
 
11:57 PM
Locahl
 
Ell
Local, lo-kahl
 
Cal as in california
Lo-kahl
 
Low-cal (cal as in calorie)
 
@Nooble it probably means you're doing something with the console (std::cout?) as that usually uses the imbued locale (the global one, by default)
 
> msvcp120d.dll!std::locale::locale(const std::locale & _Right) Line 324 C++
Idk
 
11:58 PM
Not enough locale :P
 
Is that a constructor or something?
copy constructor
 
It's not MY constructor
 
I gathered that much by the std::
 
Not too familiar with MSVC call stack
 

« first day (1438 days earlier)      last day (3508 days later) »