« first day (916 days earlier)      last day (4046 days later) » 

user784668
3:00 PM
@Zoidberg You're Zoidberg.
 
user142019
I'm Boidzerg.
4
 
Xeo
Freakazoidberg?
 
Oh, another fun bit of Canadian politics: our government recently removed nearly all mentions of "Environment Canada" (the organization in charge of that) from the Weather Office's site, and changed the colors from green to blue (blue being the Conservative Party's color).
 
@Zoidberg For what's basically a beta product, I guess Bison isn't too terrible -- but even the author (Robert Corbett) admits he didn't know what he was doing when he wrote it. Once he knew what he was doing, he wrote byacc.
 
user142019
lol
 
3:03 PM
Hi All!
How are you all doing?
 
@GamesBrainiac You don't want to know.
 
@JerryCoffin : Well, it can't me worse than mine. I can't get a program to work, and I can't do anything else other than think about it.
 
@R.MartinhoFernandes The irony
 
user784668
@R.MartinhoFernandes lol murricans
 
3:05 PM
@JerryCoffin : Ever get that feeling? When a goddam problem is all you can think of, and the answer isn't self evident.
 
@GamesBrainiac I wish my only problem at the moment was non-working code.
 
@LightnessRacesinOrbit stackoverflow.com/questions/16103771/… Whoosh - over his head :)
 
> You may think this question is duplicate but i have a interface:
 
not a great surprise given that we already know he's incapable of higher brain function
 
3:07 PM
I want an interface too!
 
@LightnessRacesinOrbit Hey light, do you think you can help me out with a problem involving stacks and queues?
 
@GamesBrainiac stack your queues where the sun doesn't shine
@GamesBrainiac hope that helps
 
@LightnessRacesinOrbit Whats that supposed to mean?
 
@GamesBrainiac (yes)
ask your question
 
3:07 PM
lol
 
@GamesBrainiac Never! The answer is always obvious to me. Usually wrong, but always obvious. :-)
 
""s for std::string kicked out
 
well, you're gna have to look at the code
 
@DeadMG That blows.
 
and UDLs for std::complex also kicked out (but likely back after a small fix)
 
3:08 PM
Hmm, free donut friday.
 
@DeadMG Why?
 
Xeo
@LucDanton I think I'd rather have it for std::string_view
 
The thing is, LEWG directed that it should be saved for string_view, and then LWG basically just ignored them, and that's not how it should work.
 
No, keeeeeeeel it!
 
3:09 PM
@LightnessRacesinOrbit : pastebin.com/6y0rXXcg
Take a look at DepthFirstSearch
 
is this a joke?
where is your testcase? Why are you trying to debug 347 lines?
 
heck no man
just look at one function
 
DepthFirstSearch
I added the other bits in case you wanted context
 
just make a testcase.
 
3:11 PM
transformation type traits voted into working Standard
 
What is that?
 
template<typename> using remove_cv_t = typename std::remove_cv<T>::type;
 
anyway, I'm not good at search algorithms and other such useless shite
 
@DeadMG That's the syntax?
Hmmm.
 
yeah
 
3:12 PM
@LightnessRacesinOrbit I tried using recursion. Resulted in a stack overflow
:(
 
it's the same as before but _t on the end.
and secondly, it's only the transformation ones, like add_pointer, not all traits or even just all type traits
 
@GamesBrainiac What is the problem? Is there something that happens that should not happen? Is there something that does not happen that should happen?
 
"mystack" is such a retarded name for a variable
 
@MartinJames ideally, you enter A B
 
@DeadMG Well a lot of the traits are integral constant queries.
 
3:13 PM
@DeadMG The other ones don't "return" types, but constants.
 
and the program will find you all the possible routes and neatly group them for you
A B
distance : 100
From A to B, 100
 
@Games Looks like you forgot to narrow down your problem further than "it doesn't work"
 
user1357851
My intuition is recursion with less than 8 lines of code
 
@Telkitty Yes, it is
But here is the problem
recursion dsnt work
it leads to stack-overflow
 
3:14 PM
recursion does work
you wrote your code wrong, and forgot to debug it
 
it does
but not when paths get really long
 
user1357851
@LightnessRacesinOrbit consider boundary conditions ...
 
user1357851
fool proof ... like when there is nothing there or memory isn't enough etc
 
Thats the recursive solution
It works for paths that are small
 
3:16 PM
Use a debugger.
 
@LucDanton I did, it ends up with a memory problem.
 
@ScottW Will do, just wanted to make a point, that I did try recursion.
 
@GamesBrainiac Use it more. With watches and whatnot.
 
@LucDanton Using it with Visual Studio Code Map. How much better does it get? The problem is that there isn't enough memory.
 
3:18 PM
@GamesBrainiac How long of a path can you search before it has problem? With the call to markVertext commented out, is it, perhaps, revisiting the same nodes repeatedly?
 
@JerryCoffin 3rd Layer
 
"I used a debugger and the problem could not be found; I am sure some psychic debugging over the Internet without even mentioning all the information I obtained will find the problem"
 
@GamesBrainiac The goal of the debugger is not to prevent problems. It's to observe them
I must now recommend option 0: learn to use a debugger.
3
 
@LucDanton I did, but once you hit the third layer of the function call
 
3:19 PM
It just says you can't reach that particular memory layer
 
I don't recommend it to tell you off, it's just that if I faced the same problem I would be using a debugger.
 
ah, here's optional
motion 17
 
@GamesBrainiac If you believe the behaviour under the debugger differs, then assert that can't reach depth 3 without the debugger and see what happens.
 
anyone feel like looking at some C
 
3:21 PM
Gosh.
 
it is exciting
 
@DaggNabbit Presumably the people on Stack Overflow that watch the tag.
 
user1357851
@DaggNabbit show it to us, most likely we will find it dull & ignore it
2
 
heh
0
Q: Sorted trie implementation in C

DaggI wanted to store some dictionary data (key/value pairs of strings) in C, and decided to use a trie. I found what looks like a good implementation here, along with some nice notes. In this implementation, each node in the trie is a trie itself. Each node has next, prev, child, and parent proper...

it is pretty basic
 
Meh, data structures in C.
 
3:23 PM
i looked at some more interesting trie designs but they did not look fun
 
lol a paper with a triple negative in it
 
Wait, Boston is locked down?
 
@DeadMG On the off chance it's written by a non-native speaker, not too surprising.
 
@R.MartinhoFernandes nice rock
 
yeah crazy shit there
 
3:24 PM
@R.MartinhoFernandes What rock are you under?
 
I'm at work.
@LucDanton I don't know. Which language has triple negatives as a normal thing?
 
@R.MartinhoFernandes Yes, clearly.
 
ain't not no language I ever heard of
 
@DaggNabbit "...never heard of"
 
@R.MartinhoFernandes I was thinking how tacking on negatives doesn't always change the meaning of the sentence. It's a common tendency of some speakers to go overboard in English.
I know I have to watch myself on that regard.
 
3:28 PM
@R.MartinhoFernandes Not sure about triple negatives, but double negatives are normal in Russian.
 
@LucDanton It was just a typo.
 
user1357851
U.S. sure breed a lot of 'intelligent' educated mass killers, a lot of them not bad looking either. LOL oh well ...
 
n3465 goes through (in revised form)
 
@JerryCoffin wouldn't that make it a quadruple
 
Xeo
@DeadMG Including your revision?
 
3:30 PM
@DeadMG Would you say it still looks good?
 
@DaggNabbit Perhaps -- but you don't need to settle for three just because the paper did.
 
true! but i don't think double negatives work the same way in the south
 
@Xeo Mine was N3573. Similar principle, different container set.
 
you can just keep piling them on to indicate more doubt
 
@LucDanton Yeah, it's mostly about constraints to make it safe.
and optional goes through
 
3:34 PM
Neat.
 
Xeo
@DeadMG Ah, right - you had unordered.
 
@DaggNabbit The south of Russia, the south of the US, the southern hemisphere, ...?
 
southern US, where people actually say things like "ain't not never"
 
@Telkitty I'm prety sure that one of the bombers is looking real bad. Since the other guy has already killed one officer and wounded another, (apart from teh bombings), I haven't got much confidence that you're gonna see him smiling as he is asked to enter a squad car. I see plenty holes in his near future.
 
user1357851
 
3:36 PM
durka
he's a creepy looking guy
The one they were still looking for last night
did they ever find him? i've haven't changed the channel from msnbc since monday but i can't watch that shit anymore, it's depressing
 
user1357851
Why aren't there super hot, super sexy, super intelligent, super fit, highly educated female mass killers?
 
He's going to have so much lead in him that they'll need a fork-lift to get his body into the morgue truck.
 
-1 Why pointers instead of references? Why raw memory? Please do not advise this bad style on Stack Overflow. — Konrad Rudolph 1 min ago
 
where is this picture from?
they only had crappy surveillance pics before
 
@Telkitty Maybe there are, and are very good at remaining undetected.
 
user1357851
3:39 PM
^
 
@DaggNabbit Maybe passport/DL. They have his ID.
 
ah, ok
 
user1357851
@ScottW Don't think she's into killing people ... live people are more fun
 
@Telkitty, lizzie borden
she was hot for the 1800s
 
user1357851
@DaggNabbit you call this hot?!
 
3:42 PM
lol that's when she was old
not fair
 
user1357851
pic?
 
well maybe i just imagine her being hot
she was wealthy i think
ok, so she's got some jowls
i think there aren't many female mass murderers in general
 
user1357851
...
 
an axe murderer
i mean come on
 
user1357851
@DaggNabbit you have this 'babe'
 
user1357851
3:45 PM
Aileen Carol Wuornos (February 29, 1956 – October 9, 2002) was an American serial killer who killed seven men in Florida in 1989 and 1990. Wuornos claimed that her victims had either raped or attempted to rape her while she was working as a prostitute, and that all of the killings were committed in self-defense. She was convicted and sentenced to death for six of the murders and was executed by the State of Florida by lethal injection on October 9, 2002. Early life Childhood Wuornos was born as Aileen Carol Pittman in Rochester, Michigan, on February 29, 1956. Her mother, Diane Wuor...
 
lol
she looks like a hooker
i wonder how many actually were in self defense
 
user1357851
Damn you could have dated her when you were 5 :p
 
user1357851
10 mins were pretty close :D
 
user1357851
She was apprehended in 1991
 
only remaining motions are some concurrency bugfixes
 
3:50 PM
Are they fixing async?
 
yes, even though it's an ABI breaking change.
 
It's a breaking change at the API level, not ABI.
 
no, it's an ABI break.
 
because the async doesn't return the same type anymore.
 
3:52 PM
Oh.
WAT?
What does it return then?
 
@Telkitty Elizabeth Bathory was apparently all right looking.
 
basically, future was split into future (non-blocking) and waiting_future (blocking).
 
Woah, nasty development with the bombing in Boston.
 
0
A: STL String to lower case

manofchild//You can really just write one on the fly whenever you need one. #include <string> void _lower_case(std::string& s){ for(unsigned short l = s.size();l;s[--l]|=(1<<5)); }

 
3:53 PM
async now returns waiting_future, but you can move a waiting_future into future.
 
^^ Late answer to old question. It doesn't duplicate other answers, and I can see why it works. But does it break for any cases?
 
what is this async
 
What a fucking patchwork quilt that ended up as.
 
so if you have std::future<T> x = std::async(...), your code will now not block.
 
3:53 PM
@DaggNabbit std::async
 
@DeadMG So... they didn't fix it...
 
@DaggNabbit C++11 way to run things in parallel
 
ooh, neat
 
@DeadMG but just std::async without storing return still will?
 
@R.MartinhoFernandes Blocking was the thing that needed changing, as far as I am aware.
 
3:54 PM
std::async(std::launch::async, f);
std::async(std::launch::async, g);
// still runs sequentially
// WELL DONE
 
that's lame
 
ah, yes
if you don't take the value and give it to a future, then block.
 
Xeo
@R.MartinhoFernandes ahaha
 
@R.MartinhoFernandes what, why?
 
3:55 PM
@Mysticial Yes. It'll affect non-alphabetic characters, and is utterly broken for anything outside ASCII (e.g., ISO 8859-*).
 
@BartekBanachewicz scroll up
see what deadmg is reporting
 
@bamboon up only has the fix.
 
@BartekBanachewicz?
 
@JerryCoffin Ah. I figured as such.
 
@BartekBanachewicz Because despite accepting an ABI break they chose to use a hack that requires you to fix the code, but still allows you to write it wrong in the same easy way.
 
3:56 PM
why do you onebox me
 
@DaggNabbit we use that to laugh at people who don't have C++ in tags, move on
 
@Mysticial Well that's an interesting way to do it
 
@R.MartinhoFernandes mrgghmwlfrfgl
C++ allows you to blow your whole leg off, huh?
 
@BartekBanachewicz that stuff usually seems too big for SO, if I post it anywhere it's CR or a mailing list / ng
 
@Mysticial It's "to lowercase" and does not use ICU. I will guess it does.
 
3:57 PM
@Rapptz Yeah. Upper and lower case letters differ by only one bit. But as Jerry mentioned, it will break non-alphabetic characters.
 
user1357851
@JerryCoffin According to the paintings, yes. Although I generally hold my doubts towards paintings
 
but usually use interpreted languages =p
but c++ is nice. c is ok too
 
@Telkitty Fair enough -- but what I've read suggests she was considered quite beautiful.
 
also task-based did not make it into C++14
no future.then
 
Meh, fuck C++14.
 
3:59 PM
0
Q: Is a class with only static methods better than a namespace with only non-member functions?

user2207811I was inspired by the comments under this question. I didn't see any reason why a class with only static methods would be a better design than a namespace of non-member functions. Any list of pros and cons of these two approaches are welcomed. It would be great with some practical examples!

 
generic lambdas, I like, I'd rather not wait for C++17 to get them
 

« first day (916 days earlier)      last day (4046 days later) »