« first day (1118 days earlier)      last day (3845 days later) » 

8:05 PM
 
@Abyx D programming language seems to work reasonably well.
 
user1804599
s/`/"/g
 
@rightfold No -- or at least don't include the double quotes when you search.
 
user1804599
Don’t highlight non-code as code.
 
@rightfold I frequently highlight things intended to be taken literally with the same markup as code (since they don't provide a reasonable alternative).
 
8:16 PM
@EtiennedeMartel bwahahaha xD
 
Especially frequent in a case (like this) where this is no code or even a use for code, so there's no ambiguity.
 
WTF, you cannot have TreeMap<String, int> in Java, it has to be TreeMap<String, Integer>. Generics only for non primitive types.
 
@JerryCoffin uhm maybe I do something wrong but it doesn't work for me - chat.stackoverflow.com/…
 
With every assignment I am getting more and more sure that Java is so broken that every statement about its brokenness is an understatement.
 
by the way, do anyone use NetBeans for C++ ? is it good?
 
8:19 PM
@Abyx Ah--you're trying to use SO's internal search. I was thinking of Google.
@Abyx I've tried it a couple of times, but never continued to use it for very long.
 
Oh, an Integers are immutable, so every time I want to change the value in that map, I must create a new object.
WTF.
 
Oh, and you are not supposed to use Integer's constructor, it's considered bad practice and you are supposed to use factory method.
Why am I surprised.
 
Wasn't there something about boxes?
 
autoboxing and autounboxing, I think you mean
 
8:25 PM
The way I remember it - this may be wrong - you would make a generic structure like you did.
But assign normal ints to it.
And it did it for you. Or something.
 
that's autoboxing, @Pawnguy7
 
Sounds right.
 
user1804599
@Griwes Upgrade to Scala.
 
@rightfold All I want is to upgrade to C++.
But I have to deal with this stupid thing until the end of the semester.
 
user1804599
@Griwes Upgrade to C++.
 
user1804599
8:29 PM
@Griwes Upgrade to job.
 
Does Scala retain the simplicity of Java, but have working templates?
 
@rightfold Upgrade world to "we do not look at your past experience or your degree, just at your knowledge when hiring".
 
user1804599
@Pawnguy7 Java is not simple.
 
user1804599
It’s primitive.
 
It's retarded.
 
8:30 PM
Are those not the same?
 
user1804599
No.
 
Not really.
 
weird... string{1, 'C'} gives a different result than string(1, 'C')
 
user1804599
C is primitive and Go is advanced, yet Go is a shithell simpler than C.
 
@TemplateRex Welcome to C++.
 
user1804599
8:31 PM
@TemplateRex initialiser list.
 
except that on Coliru the result is the same (gcc, clang, doesn matter)
itś supposed to print just 'C'
 
user1804599
Different implementation of the standard library.
 
@rightfold are you saying it converts the 'C' to int, and then makes a {1, whatever ascii value C has}
 
user1804599
@TemplateRex I think so.
 
@rightfold Primitive to me means you do not get exceptions when you go out of bounds
 
user1804599
8:34 PM
And 1 is still written to stdout, but your terminal emulator doesn’t print it as it’s a control character.
 
hmm, mixed types in initializer-lists? doesn't ring a bell
 
user1804599
Dunno; C++. vOv
 
@TemplateRex 1 is '\1'
 
user1804599
I always use ()-construction except when I want initialiser lists.
 
@rightfold I always use {} until I get bitten ;-)
which is right now
 
user1804599
8:35 PM
@Abyx '\x01'
 
@Abyx but that means that the whole string(size_type, CharT) constructor is not to be used with {}
 
@rightfold \x1 then
 
user1804599
'\x01'
 
@rightfold nope.
 
user1804599
@Abyx yup.
 
8:36 PM
\1 also works btw, it's \ octal-digit
octal-escape-sequence:
\ octal-digit
\ octal-digit octal-digit
\ octal-digit octal-digit octal-digit
hexadecimal-escape-sequence:
\x hexadecimal-digit
hexadecimal-escape-sequence hexadecimal-digit
 
@Mysticial Recent changes to Youtube don't seem to be very popular..
 
user1804599
'\x01' works fine.
 
@Abyx so why can't Coliru reproduce it?
 
user1804599
BUT OH NO THE ZERO IS REDUNDANT WHAT DO WE DO NOW!!
 
@rightfold yep but 0 is redundant.
!!!1111 REDUNDANT!!!11oneoneeleven
 
8:39 PM
People always talk about Coliru as if it's a compiler.
 
@TemplateRex weird implementation of stdlib, perhabs
 
I don't compile your code dude.
 
@Abyx I use the one that comes with g++ (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1
but compile with Clang SVN trunk
 
@StackedCrooked ah so did you hire 1000 Chinese to compile it?
 
8:41 PM
@Abyx millions of them
 
lol so it just can't print \1
 
user1804599
@StackedCrooked How many Chinese people does it take to compile a C++ program?
 
wtf!
 
@rightfold 340569 on average.
 
oh my, racism ITT. I summon @EtiennedeMartel here
 
8:42 PM
@rightfold tnx! I still don't understand why the integer literal 65 gets turned into a char with {}
 
user1804599
So today mentioning an ethnicity is instant racism?
 
Apparently yes.
Also.
 
@TemplateRex string{1, 2} is "\1\2" and string{1, 2, 3} is "\1\2\3"
 
Do Chinese people get paid?
 
user1804599
Dutch Belgian American Brazilian Korean Ugandan Australian I’M SO RACIST
 
8:44 PM
@rightfold of course it it!
 
@Abyx I see, that makes sense, OK, thanks guys, I learnt something
 
user1804599
@TemplateRex No, it doesn’t.
 
@Pawnguy7 No, they are nice people and do everything for free.
 
user1804599
65 should always be int and implicit conversion from int to char makes no sense.
 
in any case, the big news of the day is that Clang has finished all C++14 features
including generic lambdas which is sooooooo nice
 
8:45 PM
@TemplateRex you're welcome. we're always glad to help you. isn't it what's this room for?
 
Initialisation with {} leads to unexpected bugs. I prefer the most vexing parse over that.
 
@Abyx lol, some folks here would slap a in no time
 
user1804599
@StackedCrooked I prefer variables over MVP.
 
@TemplateRex nah, big news of today is the clang-cl compiler driver
 
that's 2 days ago
 
8:47 PM
though it's still useless without libc++
ah
but I found it today!
 
user1804599
std::ifstream file("file", std::ios::binary);
auto begin = std::istreambuf_iterator<char>(file);
auto end = std::istreambuf_iterator<char>(file);
std::vector<char> file_contents(begin, end); // no MVP!
 
e.g. Boost.MPL foreach can now be used with a polymorphic lambda, no more handwritten functors
 
user1804599
@StackedCrooked Wat moet je met een goocheltouw? :v
 
Dunno.
 
user1804599
8:48 PM
(Wat is een goocheltouw?)
 
@TemplateRex it's only for noobs with "can I ask a question"-like questions
 
user1804599
I am going to try out Boost.Phoenix.
 
@rightfold It's the kind of rope used by magicians (or S&M).
 
user1804599
Oh, nice.
 
user1804599
Nu weet ik wat je ermee moet.
 
8:49 PM
real men just barge in and ask.
 
    boost::mpl::for_each<TypeList, boost::mpl::make_identity<> >([&](auto Id) {
            using T = typename decltype(Id)::type;
            // do stuff with type T
    });
how cool is that? no explicit type in sight, that used to be at least 20 - 40 more lines of functors and stuff
 
@Abyx I am pretty sure I started asking that after I was told to not ask questions.
 
@Abyx or as Sean Connery said in The Rock: real men go home with the Prom Queen
 
user1804599
@StackedCrooked
 
een kink in de kabel
 
8:51 PM
@rightfold both Phoenix and Lambda suck when it comes to data members, like y => some.x = y
 
@TemplateRex To be complete: an initializer list is to be preferred when possible, which mostly means "as long as no narrowing conversion would be needed". In this case, converting 1 to a char is not a narrowing conversion, because 1 is a constant expression that can be represented as a char and will retain its original value when converted back to int (§8.5.4/7, bullet 4).
 
@JerryCoffin tnx, Jerry!
 
user1804599
@Abyx functionify(&decltype(some)::x) :)
 
user1804599
@StackedCrooked lol
 
it was surprising as hell, especially since my terminal printed some weird control sequence, but online compilers didn't, which really made me wonder whether my lib/compiler were up to snuff
 
8:53 PM
@TemplateRex There's only so much you can do with T without knowing it's real type.
 
@StackedCrooked I use it for registring a bunch of types in a factory's registry
so basically extract a string and a creator function
 
@TemplateRex Real men marry the beauty queen who then became a model.
 
That didn't look classy.
 
@StackedCrooked Unless it was really classy beer! :-)
 
Jupiler isn't too bad..
 
user1804599
8:55 PM
It is beer so it is.
 
user1804599
Drink apple juice and milk.
 
@JerryCoffin lucky you?!
 
@TemplateRex For years, my tagline was: "The universe is a figment of its own imagination", and now something thinks I might be real?
 
@JerryCoffin I took a philosophy class once where this line of thought was discussed. I responded with "I don't think I would have imagined such a messed up universe." Needless to say, I failed that class.
 
Oh.
I saw something recently.
 
9:01 PM
Particle physics are the manifestation of my confused state of mind.
 
Something along the lines of, "If I didn't tweet about it, did it really happen?"
 
@Pawnguy7 oh god, not that again
 
Hm?
 
If @Pawnguy7 wasn't confused about it, did it really happen?
3
:D
 
Ah, clever.
 
9:02 PM
"If a tree falls in a forest and no one is around to hear it, does it make a sound?" is a philosophical thought experiment that raises questions regarding observation and knowledge of reality. History Philosopher George Berkeley, in his work, A Treatise Concerning the Principles of Human Knowledge (1710), proposes, "But, say you, surely there is nothing easier than for me to imagine trees, for instance, in a park [...] and nobody by to perceive them. [...] The objects of sense exist only when they are perceived; the trees therefore are in the garden [...] no longer than while there ...
 
I know the origin, yes.
I recently saw a commercial using the tree example.
 
@TemplateRex To my recollection, I only ever took one philosophy class. I think I kind of pissed off the prof on the first day. He said something about western philosophers dominating, and I couldn't resist pointing out that perhaps this had something to do with eastern philosophy emphasizing harmony instead of dominance, as well as the simple fact that being in the western world might warp our perception just a tiny bit.
 
Anyone here been to the prairie?
 
This from the company that brought you "Hump Day".
 
9:04 PM
I'd love to see it.
 
@JerryCoffin lol. OTOH, the Art of War was written somewhere 400BC, so domination was not a foreign concept for Eastern philosophers
 
@StackedCrooked I grew up (well, okay, I haven't grown up yet, but you get the idea) in a small town on the prairie. Not much to see, to be honest.
 
Ugh. Religion. I never hated it more than I do today.
 
I guess the lack of things to see is its main attraction.
 
Were you in a little house, by chance?
 
9:06 PM
That flatness is something I've never witnessed.
 
@Pawnguy7 As a matter of fact, it was less than 500 square feet.
 
@JerryCoffin But I can imagine the novelty wears quickly...
 
@StackedCrooked Aberdeen: it's not the middle of nowhere, but you can see it from here.
 
Perhaps "the ground is always flatter on the other side"?
 
The ground is flatter in the Netherlands than in Belgium.
 
9:08 PM
This girl's Christian father was complaining about how she always spends time with her Muslim friends (I'm not even Muslim, but sure, this assumption that other people make will keep me from being shot at least >:|) more than she does with her Christian friends and how we're "ripping the Christianity out of her" and it's fucked up and silly.
 
In case anybody cares: goo.gl/maps/qUDzT
 
user1804599
When should I make operator() on functors const?
 
@JerryCoffin It's surrounded by void.
 
@rightfold Whenever possible (i.e., any time it doesn't affect the functor's internal state).
 
I still would like to see the prairie.
 
9:09 PM
And the fact that I was going to ask her out on Sunday makes it worse on my end emotionally >:|
 
Well.
Is it an unfair assumption?
 
The code is always cleaner in the other file.
 
This thing is commonplace everywhere, I imagine.
 
@JerryCoffin ah Deadwood country, but I guess you didn't watch that series
 
user1804599
@JerryCoffin Hmm.
 
user1804599
9:11 PM
I guess I could use mutable for caching, right?
 
@MohammadAliBaydoun Not always O.o
 
user1804599
(I’m using the functor for caching stuff.)
 
@StackedCrooked It's surrounded by flat. You can literally go about 50 miles (80 Km) in any direction before you get to anything that qualifies as an honest hill.
 
user1804599
The side-effect of caching is not observable outside of the functor.
 
user1804599
Except perhaps using a thermometer. :)
 
9:12 PM
@JerryCoffin That's seems really foreign to me.
 
@TemplateRex No, but it's actually quite a ways (~7 hour drive) from Deadwood, and the terrain is entirely different (Deadwood is in the Black Hills, which are small as mountains go, but still mountains).
 
So if you get lost in the prairie, then you're a goner?
Unless you acquire the ability to digest grass.
 
@StackedCrooked There certainly aren't a lot of landmarks to go by. On a cloudy day, it can be almost impossible to even figure out which direction is which.
@rightfold Yes, in that case mutable can make sense.
 
@JerryCoffin because you can't see the sun?
 
@StackedCrooked ...or can at least figure out which mushrooms and such are edible. There's really quite a bit that people can eat.
@StackedCrooked Right -- you can't see the sun, and there's virtually nothing else to even give a clue in a lot of cases.
 
9:19 PM
so what should you do in that situation..?
 
@StackedCrooked Well, nowadays, you start the car, turn on the GPS, and follow the directions. Back when it was first being explored, a fair amount was apparently about like navigating on an oceal.
 
Are there any records of people who died of starvation there?
@Ell one isn't better than the other
 
@StackedCrooked Depends on exactly what "there" you mean. People have certainly died of starvation (and/or dehydration) in the Badlands, for example, but that's quite a ways from Aberdeen.
 
Badlands. I had never read or heard the term before.
 
A name coined by native Americans. nps.gov/badl/index.htm
@StackedCrooked There's some agriculture in some parts, but not a lot.
 
9:31 PM
I assumed it's called badlands because it's unfit for agriculture.
But maybe that's not right?
 
user1804599
Hmm.
 
user1804599
To take a shower or not to take a shower?
 
Entry fee: $15 - Valid for 7 days
that's nice
 
user1804599
I don’t feel like it but I don’t want to feel filthy tomorrow.
 
@rightfold Dude, it's 22:34.
Take a shower in the morning.
Unless you have a gf waiting in bed for you.
 
user1804599
9:35 PM
Eh.
 
user1804599
I already have to wake up at eight o’clock.
 
user1804599
And I’ll probably shower automatically by cycling through the rain. Oh hey thanks for reminding me.
 
@StackedCrooked more or less.
 
user1804599
@StackedCrooked Sometimes I take a shower at 23:45.
 
mauvais terres pour traverser
nice
@rightfold That's no 22:34 so that's fine.
 
user1804599
9:37 PM
lol
 
user1804599
It’s 22:37 right now so I guess I’ll go take a shower.
 
user1804599
See you in seven minutes!
 
baby this is serious is the funniest line from a song lyrics ever
 
I don't know why I keep reading internet comments.
They are so bad... but I keep going back.
 
9:45 PM
@Pawnguy7 Like the rest of us, you persevere in the notion that there is intelligent life on earth.
 
I suppose so.
 
Well, looks like Mother 4 really is coming out.
 
user1804599
Weeeee.
 
10:01 PM
In related news, I never realized how creepy that song was.
 
Today my colleague asked: "What is a logger apart from being a debugging tool?" (In reply to an other colleague's statement that a debugger should be used for debugging, and a logger should be used for logging.)
 
Well, you're fucked. Get out of there.
 
Is it an invalid question?
 
What a quandary.
 
user1804599
@StackedCrooked A bottleneck!
 
10:05 PM
Are logs not used to help fix problems?
 
@rightfold nice :D
It's funny because it's true.
 
user1804599
@StackedCrooked I can already imagine somebody there saying that.
 
Actually, none of my colleagues said anything like that. I just made it up to avoid people from pointing their arrows at me.
 
user1804599
“Wallops ge gebrukt en debugger om te debuggen ej zenne en een loggerske om te loggen allee.”
 
Huh?
 
10:07 PM
@rightfold I live in Ghent, not in Vilvoorde.
 
user1804599
@StackedCrooked lol :P
 
user1804599
I am going to apply for a job at your company.
 
user1804599
And I am moving to Flanders.
 
user1804599
@StackedCrooked lol Vlaamse muziek.
 
10:12 PM
@rightfold I'll put in a good word for you.
Vilvoords. (Antwerps actually.)
 
user1804599
@StackedCrooked I was kidding. :v
 
user1804599
I don’t know shit about the stuff your company does, if I have to trust its website.
 
The website doesn't really give a good idea of the company.
 
user1804599
Well, at least I get where the name comes from.
 
This is the product I'm working on.
 
user1804599
10:15 PM
@StackedCrooked I figured. :) You once gave vague details about “some application that generates traffic” here a few eons ago.
 
> Also, its line rates are up to 8 Gb/s or 5,952,380 packets per second with a latency precision of just 20 nano seconds.
Wow, I didn't know that.
Actually, I don't believe it :P
 
user1804599
20ns.
 
user1804599
Unacceptable.
 
user1804599
Do you run your software in kernel space or what? :V
 
It runs on linux with modified kernel.
Don't know much about the details about that.
@LightnessRacesinOrbit Did you just spam me on Twitter?
 
10:21 PM
Does twitter have spam?
Perhaps I am foolish to believe there is such a thing as spam-free.
 
Spam comes in a can and you can make a dip out of it.
 
I am hungry.
 
@rightfold @JerryCoffin @Abyx made a question out of the string example
0
Q: Which greedy initializer-lists examples are lurking in the Standard Library?

TemplateRexSince C++11, the Standard Library containers and std::string have constructors taking an initializer-list. All other things equal, this constructor takes precedence over other constructors. This leads to a few well-known pitfalls when converting all parenthesized () forms of constructors to their...

 
playn' with fire, huh?
@TemplateRex basically all containers which take initializer_list are affected
 
@Abyx well only vector / string seem to be affected at first sight, other containers don't have constructors taking a count, but perhaps I'm missing something?
for container<T> there has to be interference from the { size_type, T } initializer conversion
 
10:32 PM
@TemplateRex string and all Sequence containers (23.2.3)
...containers of arithmetic types
 
This is funny. Refers to this without breaking copyright..
 
a Sequence container has ctors C(n, t) and C(il) and they collide if t is convertible to n.
 
user1804599
-3
Q: Can anyone explain with sample please?

Erico AugustinI got an email : Create a function that takes parameters of two charater arrays (sentence and word), two integers of their lengths, return to the 1 if the word is in the sentence; returns -1 otherwise. I didnt get it clear by what he want. Thanks for your help.

 
user1804599
> I got an email
 
What language is that?
 
user1804599
10:40 PM
English.
 
The code example.
 
lol php and c++
 
> function(sentence[], word[], int a, int b,){
Did they switch languages midway or something?
Wait.
Why the tags O.o
 
after C++/CLI and C++/CX it's the next big thing: C++/PHP
 
user1804599
Is it possible to atomically swap to variables?
 
10:45 PM
int a=0, b=1; std::atomic<swap>(a,b); :D
 
@rightfold AFAIK no.
 
user1804599
Meh.
 
TIL there is a dating website for black people.
Which makes me wonder.
Is that racist?
 
user1804599
Does it state or imply that one race is superior over another?
Yes? It’s racist.
No? It’s not racist.
 
user1804599
I’ll once make a flow chart out of this.
 
10:54 PM
Not a bad idea.
As usual, web comments are not happy :D
 
@Pawnguy7 there are dating sites for virtually any group. Farmers, fat people, academics, beautiful people, you name it they have a dating site dedicated to them
 
I did see a farmers one. Cannot say for the others though...
For "beautiful people"?
 
yes... You have to submit a photo and they judge if you're good-looking enough for the site
if so, you get approved to create a profile
 
user1804599
lol
 
Interesting.
 
10:56 PM
@Pawnguy7 planning to sign up? :p
 
Whut.
No O.o
 
user1804599
Meta Stack Overflow is secretly a dating site for C++ programmers.
 
@rightfold Depends who you ask. I bet more people would think a "whites-only" dating website is racist than would think a "blacks-only" dating website is racist.
 
@rightfold If so, it is the least successful SE site, given that almost all C++ programmers on SO avoid Meta like the plague :p
 
Loungebook has that beauty requirement
Nobody has an account
 
user1804599
10:59 PM
@caps Who I ask? Oxford Dictionary.
 
@StackedCrooked I thought maybe it referred to the SNL "I'm your mother" skit
 

« first day (1118 days earlier)      last day (3845 days later) »