« first day (428 days earlier)      last day (4515 days later) » 

sbi
8:00 PM
@RMartinhoFernandes Three.
 
@RMartinhoFernandes I would, if you had any :D
 
Hey, who changed the starboard while I talked?
That's not fair.
 
Xeo
@RMartinhoFernandes The world is unfair. Didn't get that yet? :P
2
 
room topic changed to Lounge<C++>: We know nothing about logic and it is suck. [c++] [c++11] [c++-faq]
 
@Xeo You're right, I shouldn't pass arguments in the constructor when really they're arguments to the function object
 
8:01 PM
There were four messages with a single star and one with two while I was talking!
 
especially since I just left myself with about a billion dangling pointers
 
STOP THAT!
 
sbi
@RMartinhoFernandes While you boasted about your logic skills (which had just failed), a single messages has been starred a second time. Aall the other changes had happened before that.
 
LOUD NOISES.
 
@sbi I blame my crappy Internets and the lousy chat software.
 
sbi
8:02 PM
@RMartinhoFernandes Loser!
@keithlayne Fishing for a present here?
 
Hey, who cancelled the stars on "STOP THAT!" It had four!
I know. The world is not fair.
 
I blame Java.
 
sbi
@CatPlusPlus That's always a good first guess.
 
Fuck, I missed Opeth two weeks ago :(
 
what is "a irreducible control flow"?
 
8:05 PM
Hmm, I can't star two connected messages :/
 
Something you write when you're a robot compiler taking over the Earth.
 
@jalf Something that can only be expressed with gotos.
@jalf Just a guess. I have no idea.
 
@RMartinhoFernandes such as..?
 
@RMartinhoFernandes Wasn't goto proven to be "not more powerful than what we have now"? By the way, how does such a proof look like?
 
We clearly don't know anything about logic.
 
8:07 PM
@FredOverflow By emulating goto with have we have now?
 
@RMartinhoFernandes I don't immediately see how that would be possible.
 
Continuation-passing style?
 
I don't know if there's a proof. If there is one, I guess that's one way it could look like.
 
goto is just a jump. Tail calls can be optimised into jumps.
 
@Fred Did you expand that question after you first posted it here?
 
8:08 PM
well, I think it's fairly evident
you could reduce goto into a function pointer where you accept the stack pointer as an argument
 
hmmm... is it OK if more and more code is moving into the "library" part of my project? And my main will just be a big try-catch with ~10 function calls and object creations? Even commandline-related stuff?
 
therefore, any use of goto could be expressed through functions
 
Bra*nfuck has no goto. Case closed.
 
@keithlayne Nope, it just got closed is all.
@DeadMG Calling a function is not like a goto, it is more like a gosub.
 
not if you passed in the stack pointer
 
8:10 PM
No I mean a function call eventually returns to the caller.
 
longjmp?
 
magic
 
Tail calls, dammit!
 
heh
perfectly equivalent
 
@FredOverflow It got closed? I hadn't noticed that. Maybe you should search before posting questions. :) Seriously, it was really well-written.
 
8:11 PM
Bra*nfuck does just fine with nothing but while as control flow (and even that while can only support one condition).
 
more importantly, it would be more than possible, imo, to transform goto into gosub
 
@DeadMG longjmp is implemented by compiler magic. You cannot implement it yourself.
 
I like the 8 flags that I'm seeing... :)
New spam/offensive flags show all

This message was flagged as spam/offensive by 8 users:
Hey guys, do me a favour and flag me so I'm muted from chat and can actaully get on with my work
posted by Raynos – JavaScript
 
@keithlayne Well, I don't agree with the closing :) But I guess there's more important things in life to worry about :)
 
Xeo
@Mysticial Invalid. :)
 
8:12 PM
@FredOverflow That's entirely true. But you can manually transform goto into functions.
it'd just have to be, less direct
 
How do you propose to pass the stack pointer without magic?
 
that'd just be the most efficient implementation
 
And what non-magic thing would you do with the stack pointer once you have it?
 
there's no obligation to not pass local variables by value
 
@FredOverflow yeah. But at least we got the entertainment of a riled-up sbi and jalf.
 
8:13 PM
or, indeed, by reference, if you have massive balls and thought about it very carefully
 
@RMartinhoFernandes there should be a magic keyword in C++ for stuff like that.
with an optional deep qualifier.
 
@Xeo, I gotta give you a big thanks for telling me to go ahead and post my answer to that loop question. :)
 
I'd prefer magic and more magic.
@keithlayne Is that a reference to something?
 
goto can be reduced, the same way that LLVM does SSA, I think
 
@keithlayne How about a magic pragma?
 
8:14 PM
#pragma __MAGIC
 
nobody likes pragmas
it should have 3 underscores ___magic
 
Xeo
@Mysticial Was it the solution? :)
 
sbi
@Pubby We're pragmatic about pragmas.
 
Xeo
@DeadMG #pragma dragons
 
@Pubby It's so magic, it's almost invisible: _____
 
8:15 PM
@RMartinhoFernandes It was a reference to my awesomeness
 
@Xeo, yes I reran it on a Core 2 machine and it gave the exact same results as the OP. So I nailed it.
 
@Xeo #pragma __here__be__
 
sbi
@FredOverflow invincible
 
It turns out that running, on your desktop-OS, a VM server-OS with 20GB memory can take quite a significant toll on the host OS!
 
@Xeo, and to think that question would get linked and hit 10k views... The OP already double gold badged on that question.
 
8:16 PM
by the way
 
@sbi For those really hard corner cases, pragmas aren't always enough. I want dogmas. For christmas!
 
Xeo
Noes, my mandarins are empty
 
how easy do you think it would be to implement a thread-safe vector?
that damn PPL decided that it was too easy to support move semantics
 
@DeadMG Depends on what exactly you mean by that. In and of itself, "thread-safe" is a meaningless term.
 
on the other hand, I really don't need to know or care about that
would be better to simply leave it in serial for now or swaptimize it in
 
8:17 PM
@FredOverflow We already have dogmas. That's what's written in the standard.
 
Xeo
@Mysticial Wtf!
I want to be lucky and answer one of those questions too. :(
 
@Xeo What question?
 
Xeo
94
A: Why is one loop so much slower than two loops?

MysticialUpon further analysis of this, I believe this is (at least partially) caused by data alignment of the four pointers. This will cause some level of cache bank/way conflicts. If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line. This mean...

 
@FredOverflow Just check the 10k tools page
 
@Xeo Oh, nice graphics.
 
8:18 PM
I hesitated to post that answer. So I owe Xeo a big one for encouraging me... :)
 
sbi
@FredOverflow We're dogmatic about dogmas.
 
@Mysticial And now you're drowning in rep. Can we have some? Starving here ;)
 
I would be drowning... if it weren't for that repcap...
:)
 
Xeo
Apropos repcap, I need to reach it
 
I say he should post bounties on questions we answered so we can get some of it!
 
Xeo
8:20 PM
I only got 90 rep today. :s
 
I got 19 :)
 
That's certainly more than my 10.
 
@Xeo "repcap: I need to reach it" sounds like it was taken straight from a motivational picture :)
2
 
I just realized that with the new bounty features we can actually bet rep now.
That is, until a moderator finds out we're abusing the system for betting and bans us.
 
sbi
I would have gotten 15 rep today (off old questions), but I answered a question last night, while I had to stay up because one of my sons was coughing his lungs out for an hour and a half, and I got a few upvotes on that one.
 
8:23 PM
@RMartinhoFernandes Just ask it on meta with a pony and you'll get a shit-ton of upvotes and an answer.
 
sbi
@RMartinhoFernandes What's the "new bounty feature"?
 
I got 0
 
I got no rep in days
 
ooh...
 
8:23 PM
FOREVER WITHOUT REP :/
 
who wants to be the 100 upvote?
 
@sbi It's not that new. But it wasn't there since the start. The one that allows you to give rep to an arbitrary answer.
 
Xeo
@Mysticial I already did :s
 
@TonyTheLion :'(
 
Xeo
@RMartinhoFernandes "Additional reward for existing answer"?
 
8:24 PM
and I just got it!
 
@Mysticial done
 
I get 5 rep each day from that silly "remove a git submodule" question.
 
sbi
@RMartinhoFernandes Ah, Ok. And how do we bet it?
 
COOOOOOOL!!!!
 
BET ALL THE REP
REPBETTING, sounds like something awful dodgy
 
8:25 PM
@sbi Like, "I bet you 100 rep that something something". If I lose, I have to post a bounty on a question you answered and award it to you.
 
No seriously, ask it on meta. And before we do, lets bet to see if it gets upvoted or downvoted :)
 
sbi
@RMartinhoFernandes Ah, I see. (Maybe @jalf got it wrong and I really am slow?)
 
ohhh was that NSFW?
 
gaming site started giving away bounties
 
so I have a custom build step in my project, it calls an exe which is provided a dir as argument, the dir has spaces in it, but the .exe doesn't seem to like it, what can I put instead of the spaces?
 
8:28 PM
Did you try putting quotes around it?
 
Xeo
 
How can I bitwise enum's?
I tried making a strongly types enum with underlying uint32_t
 
I wrote that.
 
harhar
fuck you Bison, I passed you a std::function as yylex
 
@RMartinhoFernandes It was a collaboration!
 
and enum_thingie = static_cast<enumtype>(enum_thingie ^ some_enum_value)
 
Well, I guess I was the moral support.
 
Luc helped with the ideas.
 
yesterday, by Kerrek SB
@LucDanton Er... wait? What? Did you post the RFC link? I mean, your presence in this room is a general moral boost, of course.
 
You've earned "Great Answer" and 85 other badges. See your profile.

Cooool thanks to all the extra upvotes I received (assuming from you guys) in the last like 20 min.
 
8:33 PM
Moral boost, not support.
 
@sbi well, don't tell that guy, because I don't like him
If you're slow, keep it to yourself. ;)
 
@Xeo Oh, I was just working on my own version :)
 
To be honest, I doubt Jon needs to care about the repcap.
 
Xeo
@FredOverflow Seriously, that guy did not reach repcap on 16 days in his entire time on SO
 
yeah
 
8:35 PM
And you should have used the vampire with fluffy bunny shoes picture.
 
@RMartinhoFernandes Well he's so awesome because he has that poster hanging in his office, what did you think? ;)
@RMartinhoFernandes Then nobody would have recognized him.
 
@FredOverflow Does "thread-safe" mean that you feel safe while using it with threads?
 
man, I'm going to be so glad when, whenever I get an ICE, I'll have nobody but myself to blame
 
@RMartinhoFernandes now I did, and it gives me this
1>Unable to open C:\Users\Tony\Documents\Visual Studio 2008\Projects\vcQt\vcQt\GeneratedFiles" for writing: The filename, directory name, or volume label syntax is incorrect.
 
@DeadMG There you go:
 
8:38 PM
thanks
but I already ate too much junk tonight
 
@TonyTheLion Wait, did you wrap everything in quotes or just the directory path?
 
@Xeo What is that cat staring at, btw? It looks somehow faked.
 
Xeo
@FredOverflow I don't know and I admittedly don't care. :)
 
Wow, the OP for that loop question got 10 badges for it...
Nice Question
Good Question
Self-Learner
Mortarboard
Popular Question
Favorite Question
Notable Question
Nice Answer
Great Question
Famous Question
 
lol
 
8:41 PM
@sbi Did you thank your son for keeping you up?
 
@DeadMG just the path
 
@TonyTheLion What?
 
Hmm. Dunno then.
Maybe the executable you're trying to run is broken.
 
Xeo
> goto is an adequate branching statement
Hm. I thought it was a jump statement.
 
You could try making a hardlink to it (or a join or whatever that thing is called) on a directory without spaces.
 
8:46 PM
you mean a symbolic link?
 
@TonyTheLion Something like that, yeah.
@Mysticial Where do I put the pony?
 
pony goes in all fields
 
You need to freehand the pony
and insert it as a image
 
although it continues to amaze me how many syntactic errors I MAKE
considering I defined the syntax
 
Xeo
Tells you one thing: Your syntax sucks.
 
8:48 PM
That's probably because you started with something and then winged it until it worked.
Or it sucks.
 
nah, just tells you that I had to make too many sacrifices :P
 
Right, "winged it until it worked".
 
how else was I gonna do it?
 
sbi
@FredOverflow No, I'm an ungrateful parent.
 
8:50 PM
If you were the genius you claim to be, you'd start with a working one.
 
it did work for it's original purpose
namely, C
but I had to make some rather extensive renovations whilst maintaining compatibility
as much as possible, anyway
 
@DeadMG Compatibility with what?
 
C syntax, in general
 
This a good pony?
 
8:52 PM
there we go... that's good
and also
put a caption on it and somehow relate it to the bounty
or betting
 
Ah, it has to be related. Hmm.
 
@DeadMG Why? C's syntax was such a hindrance to C++...
 
because virtually all common languages have a C-derived syntax
 
Yeah, like Ruby, Python and all that shit.
 
C#, C++, Java, even PHP
 
8:54 PM
huh, amazing how simple a ScopeGuard class is in C++11:
    class ScopeGuard
    {
    private:
        function< void() >  cleanup_;

        ScopeGuard( ScopeGuard const& );                    // No such.
        ScopeGuard& operator=( ScopeGuard const& );         // No such.

    public:
        ScopeGuard( function< void() > f ): cleanup_( f ) {}
        ~ScopeGuard() { cleanup_(); }
    };  // ScopeGuard
 
@DeadMG You forgot Perl.
 
Heh. :-)
 
That should tell you something.
@AlfPSteinbach Delete the copy things!
 
Xeo
@AlfPSteinbach Can get better, = delete the copy stuff
 
you mean pass by reference?
 
8:55 PM
ScopeGuard( ScopeGuard const& ) = delete;
 
that won'¨t compile with cvisual c++ (sorry typos0
 
"sorry typos0"? WTF? You're really lazy.
 
Xeo
We can only speculate when it will
 
8:56 PM
by speculate do you mean bet?
 
i'm not sure about passing f by reference or not. it will just be a couple of words generally
 
Xeo
> 1,356 questions tagged
 
ok i add reference
 
Xeo
I wonder if anyone would beat me if I went on a retagging rampage to get that copyeditor badge
 
I thought tag edits didn't count as edits
 
8:57 PM
retagging doesn't count
 
I don't think retags count for that.
 
Xeo
D:
Noes!
I'll test with one
 
I read somewhere that only "significant" edits count.
 
Xeo
Atleast one can see how many counting edits were done
 
Where?
In my time, there was none of that.
 
8:58 PM
@RMartinhoFernandes As far as I've seen, adding just one space to correct a whole block of formatting still counts.
 
Xeo
Noes, it really doesn't count
damn
 
@Mysticial Well, maybe "significant" was meant to exclude only retagging. I never saw a definition for it.
 
@Xeo, how far are you from the badge? I'm only 134/500...
 
Xeo
@RMartinhoFernandes stackoverflow.com/review
 

« first day (428 days earlier)      last day (4515 days later) »