« first day (616 days earlier)      last day (4558 days later) » 

08:00
std::unique_mind<awesome> BAUS(new RMartinho)
@Liam Better, but it should be a unique ptr :P
@DomagojPandža Wouldn't that make me null and void?!
Well, allocate yourself, baus :P
These guys seriously need to stop mumbling, it's hard to hear this guy without them, let alone with them yappin' around.
Templates bring a tear to my eye. <3
So sexy.
Because they're so awesome?
So much power, so elegant. :D
With some C++11 magic, even more sexy.
Variadic makes me happy. Disappointed with VS2012 though. :(
Oh, well, there's gcc.
Clang also.
08:17
> I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests.
AHAHAHAH
Like father, like PHP, huh?
@DomagojPandža Erm, I wouldn't say "elegant", but I agree with the rest.
> C++
> Elegant
Pick one.
I somehow find it elegant, but I'm weird, so interpret that as you like. :Đ
@Cicada Are these quotes real or a practical joke?
PHP is rarely the bottleneck.
Right, PHP is a broken bottle.
user457812
Why so much PHP talk lately? This seems so dirty.
08:21
@DomagojPandža I'm afraid they are real (the tweets seem legit)
Hah, the Universe sure loves its jokes.
I don't blame the guy, I blame the Zend schmucks.
Everything related to PHP is rotten.
Dawnguard for X360 on 26.6.
I hate exclusive content for consoles.
:(
How do you play an RPG on a console? It's like a fish on a motorboat.
Interesting metaphor
It's close, but the fish belongs in the sea (PC).
Set the FISH free. :(
08:33
Free Willy?
Damn, I'm in the mood for some battlefield 3
You're crazy.
Ah, this is fascinating.
You pay €55 for a game.
And they introduce the concept
of a "premium user"
Just fantastic.
Which game does that?
08:45
Battlefield 3 (EA/DICE)
"I paid 55€ for a game and all I got was lousy grass and blinding flashlights."
Yeah, the screenspace flares are going on my nerves.
Unbearable in some places.
I wanted to spend a semester in South Korea next year, but I'm reading an article from a guy that lives there and apparently it's not very charming.
@Cicada Try North Korea :P
I might as well do that
08:52
I hear it's wonderful there this time of the year... Nuclear summer and failed rocket launches and shit.
lol @ "Nuclear summer"
I wonder why they tolerate the government, nobody strives for change.
Brainwash.
Besides, it's not the same culture at all.
They tend to be very obedient.
The French on the other side are masters at constantly complaining.
Asians react more as a "swarm"
09:00
Using unsigned is a bad idea when developing UI and layout managers. I should tell Koenig.
Invariably widgets are going to "disappear" when they near the left or upper border off your window too much.
@StackedCrooked It all depends on the origin of your screen space
Usually (0, 0) is in the top left of the Window. I believe OS X uses the bottom left corner. In both cases it's easy to accidentally go negative.
No
Oh sorry, that was an accident
@StackedCrooked In OS X it's the bottom left, unless you override -[NSView isFlipped] to return YES.
Could be for OS X, they're driven mostly by OpenGL and it tends to use the more natural mathematical approach where the y positive goes up
but as Radek points out, you can invert it.
09:05
The problem doesn't exist with int. However, if your widgets have a negative x or y value then that's still wrong. But the consequences will be less severe. Is one better than the other? :D
For an OpenGL view you'll need to scale by -1.0.
A little bit of fault tolerance does no harm I suppose :)
OS X uses double, not int, for positioning views.
In my case I'm using Qt.
And they try to push for the point system over naked pixels
09:07
Qt uses ints? How's that going to work on a Retina Display?
What's so special about those?
A pixel is 0.5 "traditional pixels" there.
@RadekSlupik So hipster
Huge density and variation of display resolutions, point system scales better
@RadekSlupik I guess they have to use Rintina then :p
09:08
What do you mean? It's half the size?
@DomagojPandža Is it because it scales better over different displays?
@Cicada Works better for different dpis.
Pixels are pixels, still naked, but when you have huge variance like with the retina display which offers a shitload of pixels, you get into trouble quickly if you don't abstract yourself a bit
I can't wait to see the new macbook pro
live
@RadekSlupik The APIs methods are overloaded for both integer and floating pointer versions. E.g. QPoint/QPointF, QSize/QSizeF, etc.
09:10
Hm, I should learn about dpis and stuff
where's the magic FAQ?
people need to see it more obviously, slap them in the face with it in a popup
Meh, just go away.
I think this one is a repeat offender.
@RMartinhoFernandes There has been so much back-and-forth on that std::optional proposal, and while the discussion is interesting, I'm still not sure what to take from it. What are your thoughts?
Has the username as the author of this stackoverflow.com/q/8839943/46642, which is known here.
@LucDanton I haven't caught up with it all yet :S
09:14
I'm pretty sure I'm going to add some optional<T> foo = emplace(bar, baz); feature to have unambiguous emplace construction.
forward_as_tuple-like?
@RMartinhoFernandes +1 on the answer for amazing artwork
@RMartinhoFernandes Ya, I figure template<typename... T> struct emplace_tuple: private std::tuple<T...> {}; will be a good start.
Strategy does cost two constructor overloads like std::pairwise_t construction but oh well.
@LucDanton Well, for one thing, I'm adamant on the idea that TDC is something we want.
I don't want class foo { optional<bar> b; } to come with a built-in bar.
It just doesn't seem right.
Yeah. I'm really torn on perfect-forwarding construction.
exceptional<exceptional<T>> e { fail_with = foo }; is problematic as well. All these things scream to me that I should only provide construction from T and that explicit emplace construction.
09:20
That's some exceptional code.
@LucDanton That sounds to me like the best compromise. Perfect forwarding constructor is too troublesome to make work nicely with the rest.
I'm still glad I have all those traits though, in case I put perfect-forwarding somewhere else than in constructors.
Woot! I can be a carnivore without annoying those pesky "don't harm animals" groups guardian.co.uk/science/2012/jun/22/…
@RMartinhoFernandes And if that doesn't work, there's always entomophagy.
Insects are too freaky.
'I have zero interest in making a new food for vegans, I’m making a food for people who want meat.' I like this guy's vision :)
09:28
Meat is awesome. Tasty.
@RMartinhoFernandes wat
> Two scientists on opposite sides of the world both claim to be on the verge of serving up the first lab-grown hamburger – and saving the planet in the process
Lol.
@Cicada freak·y/ˈfrēkē/ Adjective: Very odd, strange, or eccentric.
Alien.
Insects look like they're from another planet. ._.
Speaking of meat, I finally made 1 million in KoL.
09:37
"Could you make fake panda?"
"Sure."
"What about human?"
"Don't go there."
Soylent Green! But not made of people.
I'm so rich.
This cracks me up every time
@RMartinhoFernandes No need to SFINAE for emplace construction, right? Since it's an explicit request. On the other hand, some static_assert would help with diagnostics.
They're not against eating chicken. They're only against torturing them. Seems a perfectly valid position to me.
09:42
Delicious chickens.
@LucDanton How so?
Cat++, I have one in my backyard if you want it :P
Unless you're making an optional<emplace_tuple<T...>>, I don't think there's a need for that.
Some SFINAE magic would allow overloading in the case of void foo(optional<bar>); void foo(optional<baz>); foo(emplace(qux)); though.
static_asserts are always a good idea, check - check - check
09:44
@DomagojPandža Not always, no. It's incompatible with SFINAE.
@LucDanton Ah, good point.
@LucDanton Well, SFINAE is a bit of dark magic. Use with caution, as always. :P
But when you are in a position to verify the stuff that goes through, it saves kittens.
It looks concept-ish with a fresh coat of aliases pain paint.
@LucDanton But I still don't like that working without explicitness.
@RMartinhoFernandes So you only want optional<T> o { emplace(foo, bar, baz) };?
09:47
That's not great
:S
We're getting nowhere!
10:07
@ScottW the 5th element liked chicken
1
A: C-Style strings versus library string performance

Cheers and hth. - AlfYour conclusion that C style strings are faster with this example with your compiler & machine, is almost certainly because – one must presume – you forgot to turn on optimization, forgot to make the string length "unknown" to the compiler (this is tricky) so as to prevent it f...

^ See comments. I think the OP's claim cannot be correct; is it possible?
Hi guys
@ScottW Is it my live id you need?
@ScottW Can I send it to your email?
@ScottW That would be nice =)
@thecoshman Such improper language. Now go wash your mouth with ... erm, soap.
10:47
@ScottW I got the email now, thanks =)
11:34
@StackedCrooked That's kinda depressing, is it even defined behaviour to re-define language keywords?
6 hours ago, by Domagoj Pandža
I just chased a chicken through my backyard.
Is that a figure of speech?
2 hours ago, by Domagoj Pandža
user image
Oh, it seems not :)
Ell
Ell
hi guys
11:59
hey .. !
12:47
@jogo Since I said "You haven't addressed the error GCC gives" I didn't saying that GCC doesn't throw an error. I'm not sure how you come to that conclusion. — Johannes Schaub - litb 2 mins ago
I’m more and more of the opinion that TDD is fundamentally misguided and that its costs by far outweigh its benefits
0
Q: Implementing an interface for an iterator

BazI'm writing a class which will iterate over a set of handles. Here is its interface and its partial implementation. I need an interface so that I can Mock this iterator for the purposes of TDD. template<class HandleT> class IHandleIterator { public: virtual void operator++() = 0; ...

Now this just shows that C++ simply doesn’t mix with TDD
idiomatic C++ does as much as possible by value, while TDD, and especially mocking, relies on runtime polymorphism
Can't you have TDD without mocking?
I certainly write most of my generic types by writing the tests with the interface I expect. It's restricted in scope (i.e. it's not like I'm developing a whole application like that), but that seems in the spirit of TDD.
Also Boost.Concepts does provide 'archetypes' to provide dummy models of some concepts. Fulfills the purpose of mocks no? E.g. if you want to test that your foo_feature will indeed compile given a RandomAccessIterator.
13:02
@LucDanton Yes, to some extent
@LucDanton Exactly – that only tests compilability, and maybe a bit more – mocking usually extends way beyond that
@LucDanton Do you also write (and run) tests first, code later? That is difficult in general unless you use interfaces in the tests to make the tests compile
@KonradRudolph Well, you'd want to write your own archetypes anyway -- there are more concepts than those provided by Boost.Concepts. And you can put anything you want into those archetypes.
@KonradRudolph I've done it, but keep in mind that this is very much restricted in scope. E.g. usually no dependence on another component.
Well, I’ve tried that and found it very tedious in C++ (well, more tedious than it usually is). In my view, TDD replicates a lot of what a static type checker does, and mainly makes sense when you’re using a dynamic language
note I’m not against unit tests
I can imagine it's painful if you're developing two features that are interdependent to some extent.
13:19
a friend has a language that has op== and switch
both work fine. and now he thinks about making them work with types too
like switch(typeof(someVar)) { case int: ...; case bool: ... }
what do you think about that?
Verbose, can (should?) be achieved through another technique.
it somewhat complicates the grammar because he needs to diplicate the switch and "case-stmt" production for types
i said he should introduce an operator returning the type as a string representation then we could do switch(typestr(someVar)) { case typestr(int): ...; ...} and make typestr work on expressions awell as on types
that way, the area that needs to work on both expressions and types is much more limited
On the other hand, one could argue that thing like chaining if(typeid(foo) == typeid(bar)) { ... } else... or equivalent is a crutch and this is legitimizing it with a first-class language feature.
Would this work for static type or dynamic type?
13:23
dynamic type
Okay then my second argument does make sense.
Well it boils down to what you want to make easy to express in the language.
mawnin
You can decide to not encourage inspecting the dynamic type if you think your language should instead encourage e.g. dynamic dispatch. Or you can decide to encourage on the basis that people will do it anyway and you want the language to be 'pragmatic'.
13:53
man
I ate some food just now, and instead of subsequently feeling sick, I actually feel better
That's bad news, right?
@DeadMG Maybe you are delirious.
lol
maybe the gods of stomach problems are with me today
I could respond in various ways.
13:56
please response in truthful ways!
This is a word. This is a C++ chatroom. This is a C++ keyword. Etc..
playing google doodle. nice one
hey robot
did you sleep or something?
cause I could swear you were here when I went to bed
and still here when I wake up
Robots don't sleep silly.
he doesn't seem to be active
oh he is
13:59
@DeadMG Not yet.
lol he did not yet sleep
This isn't very uncommon here.
Churning out code in a semi-conscious state.
oooh i can chat, yay
Ell
Ell
hi guys
hi Ell
I'm new here, and this is awesome
14:05
May I come in?
@DeadMG Let's just say that like you always make the wrong decisions about your food habits, I always make the wrong decisions about my sleep habits.
Thank You :)
@RMartinhoFernandes Fair enough.
@NinjaTurtle Kinda hard to say "no" at this point, isn't it? :P
May be ;)
Anyways, I am in and I wont be going.
Ell
Ell
14:09
apparently "Google creates a conundrum that the majority of humanity simply won't understand"
regarding the doodle
Yay, new people who aren't here only to ask stupid questions and then run away.
tho if you haven't been in the informatics world i imagine it's hard to guess what's going on there
Also, I'm trapped.
Ell
Ell
14:11
you're trapped?
STOP, it's a trap!
14:11
What!
Where?
@NinjaTurtle nice site
@danuker I got it by searching it on Google ;)
it's perfect as scraper fodder :D
Not a regular user of site.
:D
14:14
:D
How did you recognize the tab?
@CatPlusPlus "Close other tabs" Yeeah
was it O(n)?
Ell
Ell
jesus christ how many tabs?
@StackedCrooked I haven't read them yet..
14:15
Actually I can reproduce that screenshot by holding alt-tab for 10 seconds.
@NinjaTurtlei guess he applies a magnifier
Ell
Ell
@danuker it says the complexity of an algorithm - it will complete in N relative operations or something where N is the number of items. I don't know I'm not good at this :L
I wonder what would have if I kept holding ctrl-tab down in Google Chrome. Would my OS die, or would it kill Chrome?
14:17
@NinjaTurtle I’ve got three Chrome windows like that open at once
you guys are crazy
Ell
Ell
I have a single tab open...
I used to have around 600-700 tabs in Firefox.
@KonradRudolph I've safari, chrome, firfox, firefox private browser and chrome private browser :)
Ell
Ell
@CatPlusPlus are you serious? what even are they?
14:18
Chrome will die before 100th.
Ell
Ell
each tab is a process is it not?
In Chrome, yes.
@CatPlusPlus I call bullshit, Firefox crashes at ~ 50 tabs
14:18
Today is sad day :(
Cool I just disocvered the chrome://memory-redirect/ page
(at least it did in the version I was using before switching to Chrome)
Today is my birthday :)
3
@KonradRudolph Ask @sbi, he used to have as many or more, too. Maybe still does.
firefox just has better AD blockers
14:19
and I am sitting on my Mac and chatting at Stack Overflow :P
Hey it's a Turing machine on Google!
Birthdays are overrated.
i guess they programmed the doodle with a template metaprogram
@StackedCrooked What. Where.
@StackedCrooked yeah, I think it is because turing was born 100 years ago
14:20
The homepage.
@NinjaTurtle That's the best thing to do on SO.
@CatPlusPlus I party harder yesterday night and missing my whole day.
it's his 100 birthday
I get Father's Day doodle.
@CatPlusPlus u live in the past
Ell
Ell
14:21
Yeah its a pretty cool doodle. I completed it :D
i guess the britain ppl will not get it
lol
Wait, you mean you can visit Google without making a search?
Blasphemy!
Yeah, I have no idea how people keep finding these things.
apparently it detects when the turing machine not stops and prematurely stops it
so it solves the halting problem!?
Who on Earth visits Google homepage.
14:23
nobody, except if the logo to the top-LEFT dammit looks funny
try searching for "gay". it shows the gay colors
There's a logo?
Oh, hey, there's a logo.
I did not know that
for a moment there I thought you were trolling
what are you using, lynx?
No, I don't pay attention to anything that's not search results.
oh, sorry then
@CatPlusPlus advice: look around you: youtube.com/watch?v=4xbmiNlvdJE
14:30
@JohannesSchaublitb hahgay.com
@CatPlusPlus I did, to play the Google Doodle
@JohannesSchaublitb wat
oh, google easter eggs
why does std::function not have operator! like boost::function?
because boost::function cannot have explicit conversion to boolean like std::function can
I'm pretty sure that !func for std::function still works
Yep.
!x is a contextual conversion, so explicit operator bool is enough.
14:38
@DeadMG I still need to make that payment, what's your account again? (Answer on IRC if you prefer.)
@StackedCrooked Same as the email in the wiki
lol
I'd probably have [email protected]
check out this question title
so many words, so little meaning
What was the exact amount again?
@DeadMG Looks like it's straight from some build log
14:41
$4.17
@DeadMG It's the error message.
oh, that's not what the link was supposed to link to
that's the question content, not the title
Bad IDE configuration, it seems.
> Newbie issue-Unable to compile, I get the following error message when trying codeblocks. Any idea on how I could proceed?
is the original title of the question
@DeadMG Done.
14:44
@StackedCrooked Got it.
Now you can buy cookies.
:p
Ell
Ell
hmm trying to give myself a beard with gimp is proving more difficult than I first thought
Get the Beardify plugin.
@DeadMG And here's the actual question. stackoverflow.com/q/11170241/235463
yes, I know that, since I edited it
it has the edited title, not the original title, which is what I wished to comment upon
14:46
oh xD
I saw it on the question list.
I'm not in the mood to entertain people that can't form a proper question, so I just ignored it.
hi, can someone quickly tell me if this code is safe to do? ideone.com/rm3Rs
@DeadMG well, expecting "toolchain" from a newbie is quite unrealistic, imo
@LukasSchmelzeisen looks fine to me - what were you worried about?
@danuker His error message explicitly mentions it.
14:50
@flexo i was worried about the fact that i create an object inside the loop but that it then lives longer then the loop
oh, xD again
thought this could cause a memory problem
@LukasSchmelzeisen The deque will clean up all it's contents. You have no problem.
@LukasSchmelzeisen It gets copied into the deque.
so if all members of myClass have a copy constructor defined this is fine?
14:52
if myClass has a copy constructor.
ah yes or that
Each object must be responsible for it's own resource management.
It's as simple as that.
@LukasSchmelzeisen No, exclusively that.
it just so happens that if every member is copyable and myClass meets some other requirements, the compiler will create a copy constructor for you.
kk that's what i meant :) thanks guys
std::deque gets an emplace_back in C++11 apparently too
14:55
I rarely implement copy constructor and assignment operator. It happens much more often that I make the class non-copyable.
for me, I usually go with either noncopyable, or the default copy works fine
is avoiding human errors the only purpose of explicitly making something non-copyable?

« first day (616 days earlier)      last day (4558 days later) »