« first day (601 days earlier)      last day (4346 days later) » 

10:01 AM
or maybe I'll simply re-implement them, as a vast amount of their legwork would be much easier written in Wide
 
the stl provides specially named push_back etc. if and where they have amortised O(1) performance. It's a hint to API users
 
amortised O(1) is the best performance we can have
 
not necessarily
you could have O(1) with lower constants, or guaranteed instead of amortized, or both
 
@DeadMG I meant for functions like push_back
 
Niks
 
10:11 AM
I have a problem
let’s say I have a scoped_lock class which is used as follows:
 
ask in stackoverflow
 
oh gtfo jaffa
 
{
    scoped_lock sl(some_lock);
    some_action
}
 
@KonradRudolph Go on.
 
Ok.. go on
 
10:12 AM
this triggers a warning “unused variable name” with -Wall -Wextra
 
you can "call with resource" instead.
 
how could I write a macro that would create the variable, and also remove the “unused” warning? The latter can be achieved by casting to void, but I can’t wrap this in a do { … } while (false) block for obvious reasons
 
auto f = [&](const scoped_lock&) { some_action; };
f(some_lock);
 
Ok, people. Gentle reminder. Use that ignore button wisely. We don't need a repeat performance of last week
 
and I can’t find a way of combining it with a comma or similar …
 
10:13 AM
@KonradRudolph what gcc version? I thought it spotted side effects well enough to know what you wanted to do
 
@awoodland It shouldn’t spot the side effect
 
Jun 4 at 13:26, by sehe
EVERYBODY: Commit chatticide and PRESS IGNORE simultaneously?
Probelmo solvo
 
@sehe There was a performance last week?
 
@sehe You flatter me with your imitation.
 
@DeadMG Sorry about that. Won't happen again
 
10:16 AM
Any hardcore gamers here?
 
kek
 
@Insilico Ok, last monday. I have weekends on wednesdays, playing with my sense of time
Apparently, for some reason, TOAD devs think their crappy GUI is actually pretty WIN:
A 'Win' button. How cool
 
@sehe What does it do when you press it?
 
@Insilico It pops up a message box saying "You win one internets"?
 
@ScottW: You don't say
You can substitute for the help manual for some other piece of software I have to use
 
10:20 AM
Apparently it is there to apply windows lineends. How/why isn't completely clear
 
@awoodland That’s fucking annoying, now I can’t get it to fail, it always compiles without warning :/
it should complain
 
@sehe So it probably has to do with the whole CR/LF snafu
Why it didn't just say "CRLF" instead of "Win" baffles me
 
@Insilico Duh, win is more userfriendly. In fact, it's Epic
@KonradRudolph You compiled with the /Win flag?
 
@sehe taking a joke too far … ;-) I want a serious discussion here, people. Take off your bunny masks
 
Wokay. Sorry
 
Ell
10:27 AM
just thought of a use of arbritrary compile time code, checking if a file exists during testing. Not that you should hard code names, but still
 
@KonradRudolph I think people complained about exactly that scenario too much - the warning is useless if it complains about all scoped lock type RAII
 
@Insilico Hey, can we do bold and italic now? Woot.
 
you don't want it to complain about things you intended to do and the "side effects in ctor/dtor" heuristic is basically the only way to do that
 
@sehe: Yes. Use three asterisks surrounding the text.
 
sbi
@sehe You could always do that.
 
10:28 AM
shiny
 
sbi
@Insilico Or three underlines.
 
So, we're gonna have 4 asterisks soon ?
 
One * or _ : hello world
Two * or _ : hello world
Three * or _: hello world
 
@sbi Well markdown support in Chat/comments is not very consistent. Since I Had **_stuff like this_** fail on me, I assumed the implementation would be 'restricted' like in comments on SO proper. Apparently, just different and inconsistent. Not no mention multiline etc.
 
How do I do the crossing line over the text ?
 
10:30 AM
---so---
 
@ScarletAmaranth: You mean strikethrough text?
 
@awoodland I remain unconvinced, lots of classes have side-effects in their constructors and destructors and still that warning would make sense! I’d go as far as considering this a bug in the compiler.
 
@Insilico Sounds like it could be what I meant ^^
 
sbi
@sehe Three _ or * work in comments just the same. And you cannot mix them there, either.
 
Anybody here is familiar with programming MSP430 in C
 
10:31 AM
<strike>Test</strike>
Fail. It doesn't work.
 
@Insilico Vielen dank.
 
@awoodland As for all the scoped locks, they could simply (use a macro to) declare the guard variable as unused … which is precisely why I’m on a quest for that macro
 
@Insilico Oh ... :(
 
sbi
1 min ago, by sehe
---so---
 
Oh, I didn't notice it was an answer to my Q :)
 
10:32 AM
test
 
@sbi See, inconsistent with SO proper :)
 
Why thank you fine sir, @Sehe.
 
Presumably no HTML works here?
 
Now we're gonna be "three star programmers chat users".
 
10:33 AM
@KonradRudolph what about this:
 
hello world
 
1 message moved to bin
 
@ScottW We should ask std::dave for advice.
 
@KonradRudolph you under warn like this but at least you don't encourage people to ignore warnings or force them to write needlessly complex workarounds for perfectly legal, sensible code
 
template<class... T>
void nop(T const&...) { }
scoped_lock foo(lock); nop(foo);
 
10:34 AM
Damn. Why is it that impending network failures can detect when I'm doing a Paypal transaction? This will take some figuring out
 
sbi
@sehe There's always been a difference between Q/A and the mini-morkdawn in comments, and ´the chat largely follow the comments (except for things like multi-line).
 
@DeadMG Dammit, I was so moving that. Network failures
 
Ell
hi @sbi!
 
sbi
lo @Ell!
 
Hi @ScarletAmaranth (forever alone :()
 
10:35 AM
@awoodland Again, I don’t agree. After all, there are ways to get the cake and eat it too (meaning, you can get all variants to play nicely)
 
@ScottW I'd never heard of humblebundle. Looks nice. I immediately bought bundle 5. Or, well, Paypal's confirmation ajax thingie has been on top for, about 4 minutes now...
 
I want to get the most diagnostics possible from my compiler, not lose power just because they cater to some retards who write improper code and ignore warnings
 
sbi
@ScottW Michigan, huh? Well, as long as you do not know someone from Io, Jupiter, I am not too impressed.
 
@sehe Play Bastion, die from awesome music overload.
 
@KonradRudolph looks like there's a gcc specific attribute you can set to suppress the warning even in the cases where it is generated
 
10:36 AM
@ScarletAmaranth But tooootally boring gameplay
 
@ScarletAmaranth That was the main lure. People tell me it is great
 
@ScarletAmaranth it's in one of those indie bundles at the moment isn't it?
 
@KonradRudolph Good story, good music, gameplay ... let's just say playable :) All in all, so much better than so many games that have come out recently.
@awoodland That's correct.
 
@KonradRudolph I have kids :) $25 is worth the risk for me. Besides, I just decided I should try games once, so $25 is totally worth that
 
@sehe Buy the Indie bundle for the same price, get more awesome games
 
10:38 AM
I've had most of the games in the recent bundles already
 
@sehe For instance, Limbo … it’s gripping – but actually maybe not so kids-friendly. Bastion delivers that, at least
 
@KonradRudolph What is Indie bundle? And why is humblebundle earlier in the google results for bundle 5?
 
@sehe That’s what I meant – the humble (indie) bundle
 
How is "1 message moved to bin" offsensive?
 
Lol at the flag
@KonradRudolph Totally missed my point then:
3 mins ago, by sehe
@ScottW I'd never heard of humblebundle. Looks nice. I immediately bought bundle 5. Or, well, Paypal's confirmation ajax thingie has been on top for, about 4 minutes now...
 
10:40 AM
@RadekSlupik you don’t need that, you can just say (void) foo – but that doesn’t solve my problem: how to wrap it in a nice-playing macro (i.e. one that can be used in place of a block etc?
 
I'd compare Bastion to " UP ". While it may appeal to kids, it's actually not quite "a game for kids".
 
Damn Paypal transaction still hung. Let me check my email for confirmation
 
@sehe Ok, didn’t see that :) Good choice
 
Dustforce has an amazing soundtrack too
 
How can you people watch and play horror-ish stuffs .. voluntarily ... ?
 
sbi
10:42 AM
> Troll task: Convince all recruiters that HTML7 exists. Get them to put that on job adverts. — James Padolsey
12
 
@ScarletAmaranth Depends, the horror from Limbo is utterly entertaining
(even though I’m not usually a fan of the horror genre, and I abhor violence porn)
 
@ScarletAmaranth I can manage the judgement calls. The kids don't actually play games. We've got the Wii, but they don't think of it unless I mention it. Go figure
 
Limbo is deliciously wicked
 
@sbi It reminds me of the pedobear in the winter olympics logo.
 
@Cicada Sounds very enticing indeed
 
10:43 AM
@Cicada Yes, that’s probably the most apt description – “deliciously wicked”
 
@sbi: HTML7? See if you can convince others of the existence of SGAJAXHTML
 
@sbi Funny. However, would be funnier it the task wus actually something hard to achieve...
@ScottW The selling point for the bundle was: Pricetag + Bastion + Linux. I'm interested then
 
"Standardized Generalized Asynchronous Javascript Application Extensible Hypertext Markup Language"
 
@sehe Oh, there's nothing violent or anything like that in Bastion, if you saw UP then it's pretty much the same case. It's just there are some "things" that children can very easily miss in the game.
 
UP?
 
10:45 AM
Yes, the pixar (i think it's pixar) movie UP.
It is animated although it does not necessarily target the same audience as, say, Shrek.
 
@ScarletAmaranth It causes an emotional reaction. And one that tends to bring much adrenaline to your brain.
 
@ScarletAmaranth Not sure, Shrek also had very many layers (pun definitely intended!) and was smartly aimed at more than one audience
 
you can write a merge sort with bidirectional iterators, right?
 
Both Shrek and UP can be enjoyed by kids but they simply miss a lot of the underlying plot and (in the case of Shrek, dirty) jokes
 
@KonradRudolph Possibly, I may have missed all those, most likely due to translation issues, since I saw all of them dubbed (slovakian).
 
10:47 AM
@DeadMG Forward ones, I think. I remember seeing something about it working off on tapes.
 
@RMartinhoFernandes Wow. That can work for me.
 
@KonradRudolph Yeah I was kinda trying to compare UP to Bastion but Shrek may be a valid example as well :)
 
@KonradRudolph Yes Shrek is actually a very adult movie
 
Up (not an acronym) is cool.
 
@RMartinhoFernandes It's teh awsums.
 
10:48 AM
heyyy
 
to define in-place sort like C++, or functional-style sort..?
 
@Cicada: A lot of western animation has very "adult themes" in them that easily fly over the heads of children
 
right
 
Shrek is an adult movie?
 
@RMartinhoFernandes I thought it stood for Unlimited Possibilities?!
 
10:49 AM
Sacha Cohen movies are adult movies :D
 
Path finding Nemo? Is that a remake by A*?
 
@KonradRudolph Maybe that was an intended pun, but it isn't capitalized (unless written in all caps, of course).
 
erm, why the fuck is my last message duplicated?
 
@KonradRudolph Happened to me too. I think the SO servers had brain fart.
 
It was not ... I just saw one instance, now I don't see the message at all.
 
10:51 AM
ah. hmm
 
I saw multiple instances too
 
I'd blame global warming for that.
 
@KonradRudolph Don't worry, I saw both.
You're not insane.
Or rather, you're at least as insane as I am.
 
@RMartinhoFernandes Insanity is a prerequisite for Lounge<C++>.
 
Doesn't sound so good, actually.
I should stop trying to help.
 
10:53 AM
@Insilico Not quite a prerequisite, it's more like you enter and poff, so much for your sanity.
 
room topic changed to Lounge<C++>: Enter here and puff! So much for your sanity. [c++] [c++11] [c++-faq]
 
facepalm
 
Insanity is a prerequisite for Lounge< C++ >
 
the more I browse Stack Exchange, the more I become certain.
people are stupid.
 
@KonradRudolph You need to browse stack exchange for that ? o_O
 
10:54 AM
@KonradRudolph: What was your first clue?
 
room topic changed to Lounge<C++>: Enter here and poof! So much for your sanity. [c++] [c++11] [c++-faq]
 
Well the "average" human is scary in terms of smartness indeed
 
@KonradRudolph Einstein was also pretty sure about that.
 
> Think about how stupid the average human is, then realize that about half of them are dumber than that
3
 
@ScottW Thanks. Some Portuguese sneaked into that onomatopoeia.
 
10:55 AM
@ScarletAmaranth It certainly helps
@Insilico – George Carlin
 
In Portugal, things go poof with a different sound.
 
I drooled when i saw the new Unreal Engine 4 demo.
 
@KonradRudolph Yes, thank you. I was drawing a blank about who said it for some reason.
 
Just like dogs bark differently.
@Insilico We robots have a solution to that: start killing from low to high intelligence.
 
10:56 AM
@ScarletAmaranth coool
 
> Artificial Intelligence is no match for Natural Stupidity
 
Pratchett.
Hmm, apparently not.
 
@KonradRudolph Like this?
#define SCOPED_LOCK_BLOCK(foo, expr) {scoped_lock lock(foo); {expr}}
SCOPED_LOCK_BLOCK(my_lock, ({
  std::cout << "Hello, world!\n";
}));
 
Why can't I remember the exact names of the people who say these quotes today?
 
Totally confused it.
 
10:58 AM
@ScarletAmaranth did you saw FString or TArray with their AllocatorInstance member? Had fun debugging that crap?
 
@abyx Beg you pardon ?
 
@Abyx FString?
 
@RadekSlupik No. I don’t want it to take a block/expression, just to declare the scoped guard variable
 
@ScarletAmaranth it's from Unreal Engine (cc: @Insilico)
 
@Abyx (that may default to -> no :))
 
10:59 AM
i.e. I want to preserve the usage I showed above
 
@Abyx Oh, no no, not yet at least :)
 

« first day (601 days earlier)      last day (4346 days later) »