« first day (902 days earlier)      last day (4039 days later) » 

10:00 AM
@KhaledAKhunaifer No. You got the syntax wrong. Like, really wrong.
 
user142019
@KhaledAKhunaifer no.
 
@KhaledAKhunaifer cringe
 
@TonyTheLion OMG your day is terrible.
 
@KhaledAKhunaifer: (a) fix your syntax; (b) pointers-to-base I'm afraid. derived class templates
 
@R.MartinhoFernandes you could say that
 
user142019
10:00 AM
@KhaledAKhunaifer you can do this if you really want, but please do not:
 
Speaking of liquids
@Zoidberg It's not doable in that form
 
@CatPlusPlus nice
 
@CatPlusPlus how do you find these games?
 
@KhaledAKhunaifer You want : typedef boost::variant<int, string> var; vector<var> v; v.push_back(3); v.push_back("hi");
 
@TonyTheLion On Steam.
 
user142019
10:01 AM
class base { public: virtual ~base() = default; }
template<typename T> class var : public base {};
std::vector<base*> v;
v.push_back(new var<int>);
v.push_back(new var<std::string>);
 
@R.MartinhoFernandes d'uh
 
user142019
Anyway, vector<var> v(); is a function declaration.
 
@Zoidberg eeek pointers
 
@kbok sounds like union
 
@Zoidberg Where the fuck did base come from?
 
user142019
10:01 AM
@TonyTheLion that's why I said "do not".
 
@KhaledAKhunaifer it is
 
@TonyTheLion Let's Plays!
 
@KhaledAKhunaifer It's a variant, of course it sounds like a union
 
@CatPlusPlus I'm at work :(
 
user142019
@R.MartinhoFernandes I was showing an alternative approach that is actually possible.
 
@Zoidberg hahahaha you suck.
 
user142019
It came out of my imagination.
 
@R.MartinhoFernandes common base for element type...
 
well, I never understood what is Anonymous Union
 
user142019
I didn't say it was a good thing to do.
 
10:02 AM
@LightnessRacesinOrbit I... only saw one type in the example given.
 
Is there a website where I can convert a multi-byte char to an int?
 
lolwut
 
Oh wait, I get it now.
 
Don't mind me.
I'm sleep-typing, it seems.
 
user142019
10:03 AM
@LuchianGrigore how would you want that to work?
 
@LuchianGrigore coliru.stacked-crooked.com_
 
user142019
Don't multi-byte character literals have implementation-defined values?
 
1586: Gracian complains about ill-mannered gentlemen who pick their noses and "make cakes of the wax which they pick out of their ears".
^ Gentlemen please
 
That's fake. Gentlemen don't bake.
 
@KhaledAKhunaifer You can do this.
 
10:05 AM
@R.MartinhoFernandes That's right. The others are instantiated from a template.
 
104
Q: Something is burning in the server room; how can I quickly identify what it is?

hydroparadiseThe other day, we notice a terrible burning smell coming out of the server room. Long story short, it ended up being one of the battery modules that was burning up in the UPS unit, but it took a good couple of hours before we were able to figure it out. The main reason we were able to figure it o...

 
@BartekBanachewicz What thingy?
 
@LucDanton how can I use the items ? coliru.stacked-crooked.com/…
 
You can't. That's a different question.
Start again from the top, this time stating the whole problem at once.
 
user142019
Oh my fucking God.
 
10:09 AM
Please be careful with this. Next time someone says "do you smell something burning?", don't immediately do the sniff test, taking in big lungfulls of air... He might be just tricking you to smell some silent but violent. (True story) — Dave Beer 1 hour ago
 
wth is that question ?
 
user142019
My teacher writes "function signature" in Dutch, as "functiehandtekening".
 
@Zoidberg ahahahah
 
10 mins ago, by Khaled A Khunaifer
is this possible in C++? vector<var> v(); v.add(new var<int>(2)); v.add(new var<std::string>("two"));
 
user142019
Please, somebody come to rotterdam and take a guillotine with you.
 
10:10 AM
Starts with a question.
1 min ago, by Khaled A Khunaifer
@LucDanton how can I use the items ? http://coliru.stacked-crooked.com/view?id=0306c51f7251bb1edb6ba6d393ec9bf2-50d9cfc8a1d350e7409e81e87c2653ba
Also starts with a question.
 
@sehe Perl is probably the only language with regexes usable for trivial non-ASCII stuffs so it can be excused.
 
If you wanted to use the items from the start, you should have said so (and how). It's not a detail. It's important.
If you ask an incomplete question, you'll get an incomplete answer.
 
Type systems be hard
 
well, I tried std::cout << v[0] ;
 
you suck
 
10:11 AM
Yeah that wasn't in the original question. Otherwise I wouldn't have showed you that code.
 
you need to find out how to extract from boost::any and then overload operator<< with that.
 
Excessive pedanticism detected. Sure, he wanted a vector of objects that he could never use.
 
You need to find out what you want to do first.
 
I want to output the items of the vector<boost::any>
 
10:12 AM
Why?
For what purpose?
 
Unconstrained existential type, can't print it :v:
 
what's the point of a list that I can't use its items then
 
@KhaledAKhunaifer There is no guarantee at all that the contents of the any can be output.
 
"output" and "use" are not equivalent
 
@KhaledAKhunaifer You can't.
 
10:13 AM
2 mins ago, by Cat Plus Plus
Type systems be hard
 
apparently I learned something
 
@KhaledAKhunaifer It is only natural that underspecified tasks get unsatisfying solutions.
 
@R.MartinhoFernandes Take the evolution, development and spread of the human race, for instance.
 
@KhaledAKhunaifer If the question is 'what can I use Boost.Any for', I'd recommend starting with the docs.
 
@R.MartinhoFernandes 'room would be sealed and flooded with Argon or CO2 automatically' - anyone want to work in such a room?
 
10:15 AM
Argon is a noble gas!
 
@TonyTheLion Isn't that done with the Visitor Pattern or something?
 
It's a server room, nobody should be in there anyway
 
@FredOverflow no idea
 
@CatPlusPlus Servers require service...
 
Who will serve the servers :v
 
10:16 AM
In some rare instances
Normally server room should be locked and nobody should be in there
Because a) security b) temperature c) noise
 
Yeah, don't go make parties and wake up the servers.
 
someone told me that I can use this instead: vector<spirit::hold_any> v;
 
@CatPlusPlus It's a good thing they violated that rule!
 
You're very good at programming
 
10:18 AM
@KhaledAKhunaifer Yes, you can use std::unique_lock<std::mutex> too.
 
@KhaledAKhunaifer Just like any other popular library components, boost::variant and boost::any have documentation. Read it.
 
But no one knows if that will solve your problem, because no one knows your problem.
 
No way I would enter a room that could be flooded with asphyxiant automatically, (not without oxygen gear, anyway).
 
spirit::hold_any have streaming operators <<, >>
 
@KhaledAKhunaifer Is that a statement or a question?
 
10:19 AM
@FredOverflow statement, I'm talking about boost::spirit::hold_any
 
Okay then. Does that solve your problem? Good for you.
 
So you want to create a vector of things and then print them
Seems useful
 
@CatPlusPlus Astyle. Welp, I am going to try what sehe suggested
 
@BartekBanachewicz Yeah but I'm not sure why do you ping me
 
ask a question, get an answer. with a ping.
 
10:23 AM
@CatPlusPlus I learned about it from you, so I thought you might have some input on that.
also, wow. TIL about how "gmail app" integrates with Ubuntu
nicely done.
 
user142019
We have to test a pure function with 90 different values and noobs from my class enter 90 values manually, rather than just mapping over a list of 90 random values. T_T
 
QuickCheck
 
user142019
Indeed.
 
user142019
Don't know if there's an R port of that though.
 
@KhaledAKhunaifer Here's a great article on the use of boost::any
 
10:29 AM
Do you have to write a Report about it?
 
@Zoidberg 90 random values is not the same as 90 different values, noob.
 
user142019
@R.MartinhoFernandes you can pick the values yourself.
 
user142019
So you could just as well have the computer generate them.
 
user142019
That's what we have computers for, after all.
 
Read my message again, now with emphasis.
 
user142019
10:32 AM
Oh whatever.
 
different != random
 
user142019
The exercise doesn't specify that the values must be unique.
 
ITT Zoidberg fails class because he only tested 89 different values.
 
user142019
Just 90 values.
 
user142019
If you're pedantic, you could use [1..90] and it would be correct.
 
user142019
10:34 AM
But the teacher will obviously complain if you do that.
 
And then you'll complain
 
@Zoidberg Have you asked your teacher: "Why not Zoidberg?"
 
user142019
@TonyTheLion That's a terrible idea. :P
 
user142019
"I DON'T LIKE JAVA!"
"Why not, Zoidberg?"
 
10:36 AM
Also I am lame. Meaning I can't OpenGL ES.
 
ITT Bartek lost a leg.
 
Where we're going we don't need legs
 
I've got an email of about A4 size of all the fuckups I did
Now I feel really really sad.
But that's the fault of writing without being able to debug or even run at all :/
 
user142019
@CatPlusPlus Sure they're not soft?
 
@BartekBanachewicz wait hwa th wa?
 
10:39 AM
@BartekBanachewicz You're bad
 
Also VS Update 2 is official I think
 
@TonyTheLion thanks for the article, explains alot
 
@R.MartinhoFernandes I was writing a test for a nonexisting piece of code
@CatPlusPlus look 5 posts up
 
You are not making this easier.
 
10:40 AM
@KhaledAKhunaifer :)
 
@BartekBanachewicz What
 
user142019
 
@TonyTheLion I think he wanted to create a dynamic union that works with anything magically
 
@CatPlusPlus also this is extremely retarded
 
user142019
 
10:41 AM
@BartekBanachewicz What
 
Aporkchops are tasty.
 
I need afood
 
@CatPlusPlus say what again, say what again, I dare you, I double dare you motherf*cker
 
I need alife
 
@BartekBanachewicz No, seriously, what's retarded
 
10:41 AM
@TonyTheLion "I need an alife"?
 
@CatPlusPlus OGL ES is supported by OGL DT
 
@CatPlusPlus Yes, "what" is retarded. So why do you keep saying it?
 
user142019
"You don't write alittle, abunch, acantaloupe, aporkchop, so don't write alot." This makes absolutely no sense in English.
 
so translating OGL ES calls to DX is extremely unnecessary
 
@Zoidberg like you're talking English
 
user142019
10:43 AM
You do write can eat, can suck, and cannot. :v
 
atop is a word
but you only know that if you don't asuck
 
@TonyTheLion online dictionaries will show slang terms too
 
@TonyTheLion you should send that to Matt
 
@KhaledAKhunaifer "atop" is not slang
 
10:44 AM
I'm sure they didn't think of that when they started this project
 
@BartekBanachewicz Who is Matt?
 
@Zoidberg Matt fails at semicolons.
 
There surely were no problems with that approach
 
@TonyTheLion The Oatmeal.
 
oh
that guy
 
10:44 AM
Hey
 
@R.MartinhoFernandes How so?
 
user142019
Hello @ExCluSiv3.
 
Wait for it...
 
10:45 AM
@ExCluSiv3 Run. Quickly.
 
user142019
inb4
 
user142019
2361
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are released every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a good C++ book...

 
go there and don't come back ^
 
user142019
lol
 
Mar 21 at 19:18, by Lightness Races in Orbit
Welcome to the Lounge! Here are some handy hints. Enjoy them with salad.
 
10:45 AM
@LightnessRacesinOrbit Nevermind, the fail is not in the comic. Zoidberg fails both at transcription and semicolons.
 
wait.. why hasn't that expired?
@R.MartinhoFernandes And commas.
 
" I stand atop the pyramid of software development skills and, in my magnificence, gaze down upon the milling crowds of clueless javascript coders".
 
@MartinJames :)
 
@MartinJames "acoders" would be snide.
And clever, I think.
 
Your abunch of grammar nazis.
 
user142019
10:47 AM
I'm a grammar communist.
 
you have none yet you try to share?
4
 
@BartekBanachewicz That was very well put, sir. Have a cup of tea.
 
user142019
I don't get it.
 
I feel a bit like this today:
 
10:51 AM
WHO RAN OVER THE PUPPY?
You have to admit it looks a bit flat :)
 
It's a fluppy
 
ahahah
 
If top-left is a door with a gap at the base, you could push most of it into the next room.
 
user1357851
In contrast to this one here:
 
user1357851
10:54 AM
 
> ATI/AMD note: The ATI max component values are wrong. To get the actual number of components, you must divide the result from GL_MAX_*_UNIFORM_COMPONENTS​ by 4.
 
oh it's Friday
 
@Abyx TGIF
 
@BartekBanachewicz No documentation is bad, incorrect doc. is even worse. Crap like that has cost me days of pissing about, trying to find non-existent bugs in my apps.
 
user1357851
10:58 AM
@TonyTheLion should be the sign for this lounge :p
 
@Telkitty IIRC, the topic had been almost exactly that, sometime in the last year :)
 
@MartinJames that's not bad docs, it's bad driver actually. IOW incorrect implementation
 
user1357851
@MartinJames Oh you have been violated on the internet, please report it to the cyber police while we laugh at you
 
Sometimes spec can be understood in many ways. Which obviously is a bad situation, leading to stuff like this
 
11:03 AM
@BartekBanachewicz I had both. The docs said that the CAN controller indexes started at 1, but my driver was badly written and assumed they started at 0. The driver worked fine until I fixed the bug :)
Khaled starboard re. 'blinded by process optimization' should have more stars.
 
std::map<std::pair<C*, C*>, C*> the_map;
ALL THE POINTERS
 
@TonyTheLion ddddd-double fail.
 
indeed
0
Q: Validity of pointers after moving a std::set

Peter OgdenI have a structure which conceptually has the following class C {/* expensive class */}; struct mapping { std::map<std::pair<C,C>, C> the_map; }; This is less than ideal as a large number of copies of C end up being stored. My current solution is to create a set of C and then store pointe...

 
@Zoidberg that's very beleefd. What do you suggest?
 
Xeo
The idea itself is actually half-sane - aside from the mapping from pair<C, C> -> C in the first place
 
user142019
11:15 AM
@sehe using English terminology like normal programmers.
 
Xeo
@Bartek, you fail
 
user142019
Ideally, speak only in English.
 
@sehe beleefd = polite
 
@Xeo OP is doing bad things to his classes
 
user142019
OP is a fag.
 
11:18 AM
> make my brain feel like there's tumbleweed blowing through it.
lol
 
user142019
Tumbleweed badge.
 
Xeo
Btw @Tony, your comment is the correct answer to another question :P
 
hm, 9 upboats more to OpenGL badge
 
The GLSL question guy asked me to "reflect" on hist last comment. Well, reflect on it I did:
@MrTJ the question that comes to my mind is not whether wrote this code for fun, but rather, whether you wrote it. If you did, rewriting it as a logic expressions should be trivial. And more fun. Have at it! (I have a suspicion this was generated, and in the generation step all useful explicit information was lost. I'm not about to recover it for you. Also, the size of the truth table doesn't matter. As is obvious from your code it is expressible using a limited set of conditions. Finally, the function really doesn't take 16 floats, it only uses 6-15.) — sehe 3 mins ago
 
@Lightness you may want to update your iterator invalidation rules with what happens with moves. (I'm too busy to find standard quotes now :P)
 
11:21 AM
@Xeo which question?
 
> u shall have the same elements as rv had before this construction;
^ I cringed; until I realized u was an identifier
 
user142019
Dammit R.
 
user142019
With your 1-based arrays.
 
user142019
lol
 
user142019
11:24 AM
I'm typing a command in Z shell and suddenly this nice error pops up out of nothing:
 
user142019
2013-04-05 12:54:41.497 MacVim[17726:707] Lookup: Unhandled exception 'NSInternalInconsistencyException' caught in __56+[LULookupDefinitionModule focusTermUsingQueue:handler:]_block_invoke_0
 
user142019
MacVim y u release debug builds or y u debug output in release builds.
 
TIL x64 doesn't care about calling conventions
 
@TonyTheLion at all?
 
This article describes the calling conventions used on the x86 architecture. Calling conventions describe the interface of called code: * The order in which atomic (scalar) parameters, or individual parts of a complex parameter, are allocated * How parameters are passed (pushed on the stack, placed in registers, or a mix of both) * Which registers may be used by the callee without first being saved (i.e. pushed) * How the task of setting up for and restoring the stack after a function call is divided between the caller and the callee This is intimately related with the assignment of siz...
there's your answer
before I start making mistakes
 
user142019
11:28 AM
lol
 
@R.MartinhoFernandes Well, there's a C++11 answer.
Is it incomplete?
 
6
Q: Can pointers be of different sizes?

Luchian GrigoreThis answer comes with an interesting statement - "on machines where int* is smaller than a char*". (let's exclude pointers to functions) Is it possible for pointers to different types to have different sizes? Why would this be useful?

heh interesting
 
everybody hooray for direct state access.
 
user142019
Even I knew about that. :v
 
@Zoidberg it's 4.1+
 
user142019
11:31 AM
Oh glProgramUniform. Whoops, nevermind.
 
I am going to read the whole fucking 4.3 spec over the weekend
Too much stuff I don't know about at all.
 
How boring.
 
I find C++ standard a lot more boring than GL spec.
 
I fail to see the point.
No one I know took a weekend out to read the whole thing.
 
I bet'cha @Xeo reads it in bed
And waits for the movie adaptation.
 
11:36 AM
@R.MartinhoFernandes Well, I was planning on reading a couple thriller novels, drinking beer and wine and watching soccer. Now I feel guilty and must find the most verbose and boring spec imaginable and read it until understood completely.
 
@MartinJames oh you
 
Mar 28 at 23:07, by R. Martinho Fernandes
Dude you need to get out more.
I knew I had told you before.
 
But... but... OpenGL.
Wrappers for Bullet.
Lundi and TMP wankery.
I need to get such an absurd amount of knowledge it's kinda sad.
 
Old Hookey and very dry chardonnay.
 
@BartekBanachewicz Go drown your sorrows at a local pub
 
11:39 AM
@Borgleader that won't get me closer to learning all this stuff
And oh, probabilistics "exam" on this friday. Thank you, uni, for helping me learn.
 
No but the robot'll be happy
 
I'm sure that the public bar will be chock-full of developers reading specs.
 
Xeo
@BartekBanachewicz Wut, no
I never even attempted to read it from beginning to end
I read the clauses I find interesting, and that was it.
Namely overload resolution and templates :)
 
well, C++ standard is nearly two times the GL one in size.
 
Xeo
11:42 AM
Robot, bananas, quick!
 
It seems I am the most nerdy one here without any disputes.
 
@BartekBanachewicz If you are that desperate to read specs, I can send you my 'all time record' test spec. It weighed in at 740g after printing it out.
 
@MartinJames :< save trees, don't print specs
 
@BartekBanachewicz Depending on waht you mean by "nerdy", hahaha, fat chance
 
Xeo
Robot, where were my bananas. :s
 
11:45 AM
@BartekBanachewicz The floor in the lab was uneven, and one of the racks wobbled. The printed spec jammed under one corner worked fine!
 
hi guys... im trying to insert a record to boost::unordered_map
 
Xeo
3 mins ago, by Xeo
Robot, bananas, quick!
 
map.insert(key,instance_of_class);
 
@R.MartinhoFernandes They're all fruit loops.
 
11:46 AM
@Xeo My question still stands.
 
@JishnuUNair map.insert(make_pair(key, instance_of_class));
 
Xeo
@R.MartinhoFernandes I needed it for a comment.
@BartekBanachewicz map.emplace(key, instance_of_class) :3
 
thanks @BartekBanachewicz :)
 
Xeo
Edit confusion.
 
@Xeo no map::emplace in 4.7
 
Xeo
11:47 AM
I also noticed it's boost::unordered_map.
 
I don't know about boost one
 
@BartekBanachewicz Heh - must not have read the spec :)
 
@MartinJames lazy fuckers, huh?
Oh, man
 
Xeo
@BartekBanachewicz Has emplace.
 
MSVC isn't bad. It's just lazily evaluating C++11 spec.
5
 
Xeo
11:49 AM
No it's not
If it was, I would get my using-aliases when I write them
And my variadic templates.
 
they wait for enough demand. It's a blocking approach.
 
Obviously new themes have more demand
 
caps in menu bars is important
 
I doubt their UI designers and engineers would have the capacity to work on their C++ compiler
 
11:53 AM
it's completely different team
 
They should fire the UI designers, and use the resulting money and desk space to hire more C++ compiler engineers.
 
VS UI is in C#
 
@DeadMG s/their C++ compiler/their IDE UI/
 
(Frankly they should fire the UI designers anyway)
 
user142019
lol
 
user142019
11:54 AM
Vim has the best UI.
 
@LightnessRacesinOrbit why? 2012 looks really nice IMHO
looks is really everything it has.
 
user142019
Looks really nice ≠ good UI.
 
user142019
Well, IMO, at least.
 
point taken
 
user142019
Good UI is completely subjective.
 
11:55 AM
nevertheless, VS dockable windows work quite nice
apart from the fucking shitfuck thing with vertical/horizontal split at the same time
 
@BartekBanachewicz Yeah, but they did work in 2010 already.
 
@BartekBanachewicz haha
u funny
 
I would like to apply divide-and-conquer to this function:
template<typename T, typename ...U>
T OnesComplementSum(T head, U ...tail)
{
    return OnesComplementSum(head, OnesComplementSum(tail...));
}
However, I don't see how.
 
Don't tell me what to do, punk.
 
11:56 AM
@StackedCrooked Forward as tuples.
 
it is already divide-and-conquer.
 
@StackedCrooked eval(H,T) is divide-and-conquer?
you narrow the problem until eval(A,B) or eval(A), which are trivial
 
also
your lack of && and std::forward is disturbing
 
I want: OnesComplementSum(OnesComplementSum(first_half), OnesComplementSum(second_half))
 
1 min ago, by R. Martinho Fernandes
@StackedCrooked Forward as tuples.
 
11:58 AM
@DeadMG heck, it's probably just an example
 
@DeadMG yea, it's an old snippit
@R.MartinhoFernandes I don't understand..
 
@StackedCrooked you don't have to divide a problem in two to make it d'n'c.
 
@BartekBanachewicz I guess, but, that's what I want to do.
 
@StackedCrooked Now we know
 

« first day (902 days earlier)      last day (4039 days later) »