« first day (615 days earlier)      last day (4349 days later) » 

10:01 PM
@MooingDuck You around?
 
@Drise what'd I break this time?
 
@MooingDuck My boss found your stream override code, didn't compile with -std=c++0x and asked me wtf I was doing.
Does anyone know how to do -std=c++0x on the icpc compiler?
 
@Drise I don't see anything C++0x in that code snippit...
 
@MooingDuck std::array?
 
@Drise oh, right
 
10:05 PM
std::move?
 
@Drise there's no move in that code. Just replace the std::array with an actual array, and it should be fine
 
@MooingDuck How?
stringstream tempStream(move(line));
 
 std::array<e, N-1> buffer; //before
 e buffer[N-1]; //after
 
I asked how could I construct a stringstream with a string.
 
@Drise waaaait, which code are we talking about?
@Drise ooooh, oops. That code
@Drise can you show me the code? I don't recall it exactly.
 
10:08 PM
getline(inFile, line);
and the line above.
 
Oh, the ape is here.
 
@Drise oh, just change move(line) to line. It'll be slower, but it'll still work.
 
A Germany-Portugal final is still on the table!
 
"On Windows environment when using Intel C++ compiler with Visual Studio 2010*, the C++0x features supported by Visual C++ 2010 are enabled by default. Use "/Qstd=c++0x" to turn on the support for all other cases.
On Linux or Mac OS X environment use "-std=c++0x". " http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/
 
sbi
10:10 PM
@RMartinhoFernandes First you'll have to best either France or Spain. Good luck!
 
@MooingDuck It wouldn't accept the override.
 
 template<class T>
 T& move(T& rhs) {return rhs;} //C++03 version of move
 template<class T>
 const T& move(const T& rhs) {return rhs;} //C++03 version of move
 
@MooingDuck That doesn't preserve constness.
 
@RMartinhoFernandes does that one work? Or do I have to use type_traits?
 
10:13 PM
so, TIL that shared_ptr<int> p; and shared_ptr<int> p(0); have different effect.
 
@MooingDuck In C++03, I think you'd need two overloads.
@CheersandhthAlf Actually, those two don't have different effect.
 
@RMartinhoFernandes already done :D
 
@RMartinhoFernandes yes, they do
 
They both do nothing.
 
no, the second one does a lot of things
 
10:14 PM
None of them observable.
 
it gives you use count 1
which is observable
and due to that, also a dynamic allocation in there
so, it's not a good idea to specify the 0 or nullptr with a shared_ptr :-(
learned that the hard way by downvoting Jon Skeet :-)
 
Ok, so I get that unique_ptr is a smart pointer. Past that, i have no clue. Any help?
 
6
A: Does the standard behavior for deleters differ between shared_ptr and unique_ptr in the case of null pointers?

JonThe observed behavior is in accordance with the standard. For unique_ptr, 20.7.1.2.2/2 (destructor effects) says Effects: If get() == nullptr there are no effects. Otherwise get_deleter()(get()). For shared_ptr, 20.7.2.2.2/1 says that the deleter should be called even if it wraps the nul...

 
@CheersandhthAlf Oh, I thought you meant { shared_ptr<int> p(0); }, i.e., no more code, just call the deleter immediately.
 
10:18 PM
@CheersandhthAlf That's not Jon Skeet.
 
unless it does lazy creation of control block, is probably very inefficient
well, it's a "jon"
 
Jon Skeet posted some crazy evil code today.
 
sbi
Any day, I am told.
 
@CheersandhthAlf The constructor overload taking just std::nullptr_t is specified in terms of the default constructor, so good to go.
 
what do you mean
 
10:21 PM
hm...how long do you think should I expect an ATA secure erase to take til it completes?
 
pointer p; and pointer p = nullptr; have the same semantics for std::shared_ptr<T>, unlike pointer p(0);.
 
33
A: C# Get property value without creating instance?

Jon SkeetReal answer: no. It's an instance property, so you can only call it on an instance. You should either create an instance, or make the property static. Tongue-in-cheek but still correct answer: Is it possible to get value without creating an instance ? Yes, but only via some really horrible...

 
@LucDanton where do you get that?
 
@RMartinhoFernandes Jon like pain, obviously.
 
@CheersandhthAlf constexpr shared_ptr(nullptr_t) : shared_ptr() { } in the class synopsis.
 
10:24 PM
> THIS CODE IS FOR FUN ONLY. USING IT WILL INCUR WAILING AND GNASHING OF TEETH.
 
oh, so p(0) and p(nullptr) have different effects. methinks maybe that's a defect. :-)
 
lolz
 
who the fuck is Jon Skeet and why the fuck does he have 400+k rep?
 
@CheersandhthAlf pointer p(nullptr, some_deleter); and pointer p(q, nullptr); all take ownership as well. (I'm not double-checking.)
 
Nvm, he works at Google.
 
10:28 PM
So pointer p(nullptr); is the exception indeed.
 
Jon Skeet is world champion in Stack Overflow.
 
I must correct my previous self. No virii found, just some potentially unwanted programs in an iso I had laying around.
So, all is well, the world can rejoice.
 
@LucDanton yeah. but g++ gets that wrong by giving use count 0 for both 0 and nullptr actual argument, and visual c++ gets it wrong by giving use count 1 for both 0 and nullptr
#include <memory>
#include <iostream>
using namespace std;

int main()
{
    shared_ptr<int>     p( 0 );
    shared_ptr<int>     p1( nullptr );

    cout << p.use_count() << endl;
    cout << p1.use_count() << endl;
}
 
sbi
I don't understand it all but I still feel impressed ^^ — radbyx 3 hours ago
OMG, those C# pussies.
 
10:31 PM
[d:\dev\test]
> cl foo.cpp
foo.cpp

[d:\dev\test]
> foo
1
1

[d:\dev\test]
> _
 
sbi
@RadekSlupik You got that wrong. He's the Stackoverflow champion of the world.
 
@sbi It's understandable. It's not particularly trivial: it emits IL.
 
I like champions. Hmm mushrooms.
 
[d:\dev\test]
> g++ -std=c++0x foo.cpp & a
0
0

[d:\dev\test]
> _
 
I should go home and play DayZ. Fuck V-Lox
 
10:32 PM
@CheersandhthAlf GCC also accepts pointer p = 0; and I don't think it should, so I think it's using an std::tr1::shared_ptr with a fresh coat of paint.
 
hm, why it should not accept "= 0"?
 
@CheersandhthAlf What version of GCC and what does Clang say?
 
oh it's explicit
 
sbi
@RMartinhoFernandes Just a fancy way of inline asm, really. I have never looked at IL, but I still can make sense of the sequence OpCodes.Ldnull, OpCodes.Call, OpCodes.Ret. It's not like you'd need to be a master of theoretical information science to grasp that.
 
@rubenvb 4.6.1
i could try in Ubuntu, higher version compiler?
 
Ell
10:34 PM
Hi guys
 
I got 4.7.1 one second
 
Hi Ell
el:L
 
GCC 4.7.1 outputs:
 
@sbi So? There's lots of programmers out there that have no idea what any form of assembly looks like.
 
0
0
On Windows x64. In safe mode :)
 
sbi
10:36 PM
5 mins ago, by sbi
OMG, those C# pussies.
 
Even C++ programmers.
 
sbi
@RMartinhoFernandes Yeah, I know. In that one company, when the excrements hit the air conditioning and asm level debugging skills were required, they always called me, just because I could tell local vars from function args when looking at asm in the debugger.
 
looks like a defect in the standard + two non-conforming implementations (in different ways)
 
@sbi I am disappoint
@StackedCrooked Who are you thinking about?
 
@Cicada no, i don't think you are disappoint. so far
 
10:38 PM
@CheersandhthAlf A defect in the standard? That sounds pretty exceptional
 
@Cicada It's not at all uncommon.
 
@Cicada depends whether you're used to perusing the official defects list ;-)
 
The standard is made by meatbags, not by me.
 
sbi
@Cicada Shrug. Such is life.
 
@RMartinhoFernandes Congratulations on entirely missing my sarcasm there
2
 
10:39 PM
Dammit.
 
sbi
@CheersandhthAlf You mean she's too young to have learned what real disappointment is?
 
@Cicada The one who is making a language as fast as C, powerful as C++, and that looks like C#.
 
@StackedCrooked Someone is?? I wasn't aware of that
 
You know, you can't just claim you were being sarcastic any time you say something you later realize was wrong.
 
10:40 PM
@RMartinhoFernandes Nice try
 
sbi
@Cicada Easy on him. He's a robot, and his sarcasm detection module could do with a few improvements to its algorithms.
 
@Cicada You'll figure out soon enough. It's not me :D
 
@sbi no, just that she doesn't seem to be disappoint
 
@sbi I'm sure you guys cheat.
 
@RMartinhoFernandes What!? Ah crap!
 
sbi
10:41 PM
@Cicada You must have him plonked, because the way he brags you cannot not notice him.
 
Oh. Suddenly everything makes sense!
Well damn.
 
Give it some serious and wide thought before you make a decision.
 
sbi
@Cicada Yeah, I had those moments, too, in my youth. It's quite disappointing when you later realize you were wrong.
 
@sbi I doubt I can be wrong about that. I don't have many "people" plonked.
 
10:42 PM
@sbi The Aha Erlebnis that wasn't.
 
sbi
@RMartinhoFernandes Of course we do! What did you _think?! Even chimps, dolphins, and crows cheat. Didn't you have us on your list?!
 
When I use PHP, do I cheat on the Lounge?
 
sbi
@StackedCrooked Oh, the Erlebnis was real, only it turned out later that it was, um, misplaced.
 
@RadekSlupik You cheat on yourself.
I just thought something stupid.
 
sbi
@RadekSlupik What logic does this "question" follow? ("When I take the bike, is it darker outside?")
 
10:45 PM
Also. Creating a language is a hell lot of work so by the time he finishes I'll probably be dead and / or buried.
 
sbi
@RMartinhoFernandes Yeah, we noticed.
 
No, I'm not telling what it was. I'm just letting you know what you're missing.
 
Ell
I always think stupid things
 
@sbi You could be missing a hidden correlation
 
@sbi The Aha Erlebnis that wasn't in the right place. Better? :)
 
10:46 PM
@sbi It depends on the colour of the bike.
 
sbi
@StackedCrooked Yes, I admit you know some philosophical German terms. Slaps shoulder. Satisfied?
@Cicada I didn't think you're older than him. Did I miss something?
 
@sbi Oh no, it's also common expression in Dutch. The part that I'm proud about is the in the right place extension :D
 
Whom are we talking about?
 
sbi
@RMartinhoFernandes It's some kind of opaque octarine, I think.
 
drums
 
10:48 PM
> Oprah has integrated this insightful occurrence into popular culture, encouraging the mainstream population to recognize these "Opr-Aha!" moments.
 
sbi
@RMartinhoFernandes What. And common expression in Dutch.
 
@sbi ^ you can weep now
 
@sbi Are you purposedly trying to confuse me?
Who is going to die after Cicada?
 
THE END OF SUMMER
 
sbi
@RMartinhoFernandes <eliza> Why do you think so? </eliza>
 
10:50 PM
@sbi Sad. Can't see it.
 
OMG VLOX IS DONE
6.5 hours later...
 
vlox?
 
24000 seconds
 
I think prolonged exposure to ICU is damaging me.
 
@melak47 See my profile.
 
sbi
10:51 PM
@RMartinhoFernandes Except for the last ones of the season (which hole up to make it through the winter), Cicadas only live a few weeks, I think. So everybody here will last longer than her.
 
sad chirp
 
@RMartinhoFernandes right
 
sbi
@RMartinhoFernandes ICQ would be worse.
 
@Drise zero results for vlox :/
 
Pre-historic times were cool.
 
sbi
10:52 PM
@StackedCrooked I am not sure about what I am supposed to weep. Can we sort this out, please, before I collapse into a sobbing heap?
 
@melak47 See my profile. More precisely, check where I work.
 
@sbi Sorry, didn't know you were an Oprah fan.
 
Ell
Any poets here?
 
sbi
@StackedCrooked I think you forgot an important fact here: I've been living without a TV for >20 years. I have only seen a few seconds of Oprah on YouTube.
@Ell We're all code poets. Or at least we all think we are.
 
10:54 PM
@Ell I used to write poetry. I don't think I could be called a poet, because it sucked.
 
@ell I write poetry with code.
 
Ell
What is oprah?
 
Poets in the lounge? The only poems you'll find here are about sex and template masturbation.
 
@sbi We think alike!
 
guys
 
10:55 PM
@Drise interesting. was it fun to make? :D
 
@sbi Fat black lady, hard to miss.
 
sbi
girl
 
Ell
Haha template masturbation?
 
my bed's attraction is increasing exponentially
i can't resist it
its just
 
@melak47 Shiiit I didn't write it, but I ran a simulation on it, took 6.5 hours.
 
10:55 PM
no
help
 
Ell
Ikr? I'll join you.
 
AAAAAAAAAH falls asleep
 
The last few comments are amazing when taken out of context.
 
sbi
@RMartinhoFernandes "I have seen a few seconds of Oprah on YouTube." Plus I have read about her. I know a few things about TV from reading reflecting media.
 
10:56 PM
@Drise oh. and what are the results?
 
@Mysticial Decontextification FTW.
 
@melak47 Expected, but is still puzzling as to why.
 
@Drise please tell me you accidentally discovered anti gravity
 
@melak47 Wish.
 
sbi
@Drise Aren't you overestimating yourself a bit here?
 
10:58 PM
Mediocre minds think alike.
Ow.
 
@melak47 It would be more likely that I would simulate it, and simulate it wrongly.
 
sbi
@ScottW All Merkins are stupid, uninformed idiots.
 

« first day (615 days earlier)      last day (4349 days later) »