« first day (782 days earlier)      last day (4151 days later) » 

6:02 PM
Throws up hands.
ALL THE INITIALIZER LISTS, ALL THE CURLY BRACES.
 
Those are the awesomez.
 
user784668
I hate signed shifts.
 
user784668
(index * 2654435761) >> (32 - TABLE_SIZE_LOG2)
 
user784668
Can you spot the error?
 
@ThePhD they're better than the alternatives. Why would you want to get rid of them?
 
6:04 PM
@MooingDuck Because MSVC is throwing the biggest compiler-related hissy fit to features I thought were standard that I have ever seen in my entire short life.
 
question:
 
@Fanael index times something with 32 bits already? index better be freaking small. Like less than 2, or you get an overflow.
 
will destuctors be called before or after return?
 
@ThePhD Not to defend MS, but maybe there's a reason they call it a "CTP"...
 
user784668
@MooingDuck Nah, it wraps.
 
6:05 PM
@bamboon after the return statement is evaluated, before the function "returns", in teh reverse order of construction.
 
because fuck you gravity!
 
@Fanael wrapping is one way to handle overflow, but it's still an overflow.
 
^ This
 
@thecoshman Looks suspiciously similar to a link that was posted weeks ago.
 
@MooingDuck yeah thanks, the last part is clear just wasn't sure about the other anymore.
 
6:07 PM
@JerryCoffin because fuck who ever posted it back then
 
user784668
@MooingDuck That's by design.
 
@ThePhD Fun Fact : Intel uses MSVC instead of our compiler too :)
 
user784668
@MooingDuck 2654435761 is an int, index is an uint32_t, which happens to be unsigned int. Multiplying them yields an int, which is then right shifted. But since an int is signed by definition, it's a signed shift. OH SHI-
 
@Fanael FTR, GCC only guarantees wrapping with -fwrapv.
 
user784668
@R.MartinhoFernandes Standard guarantees wrapping with unsigned. And it was meant to be unsigned.
 
6:08 PM
Oh, I missed that.
 
@Fanael I don't immediately see the problem. You can downshift signed numbers no problem.
@Fanael oh, the whole thing was intended to be unsigned? How could we see that from your code sample?
 
@MooingDuck ...but if they're negative, you can't count on the result.
 
@MooingDuck Not if they are negative.
 
@R.MartinhoFernandes wait what? I thought the problem was only with upshifting negatives.
why would downshifting be UB?
 
user784668
@MooingDuck The result ends up being a negative, which is large positive. And large positive indices suck.
 
6:09 PM
@JerryCoffin have this instead then
 
@MooingDuck It's implementation-defined.
 
@R.MartinhoFernandes oh
 
@thecoshman Why does this make me think of Troll Physics?
 
@R.MartinhoFernandes ... is... is the implementation implementation-defined?
 
-1
Q: How to write c++ real-time file encryptor?

master44How to write c++ real-time file encryptor? May be anybody has sources. Can anybody help me? Thanks!

plzsendtehcodez
plznuke
 
6:13 PM
@R.MartinhoFernandes bleh, flag
 
@MooingDuck Because it can do either a logical shift or an arithmetic shift. A right logical shift fills the vacated upper bit with a zero. An arithmetic shift fills it with a copy of the bit that was already there (at least on 2's complement machines). But, by the time they standardized C, there were implementations doing both -- so they didn't mandate either, just that you document what you chose.
 
@Fanael I don't recall if anyone called that, but that overflow is undefined behavior.
 
@R.MartinhoFernandes He's approaching downvote hell at the speed of 1/nb_of_fucks_i_give
 
user784668
8 mins ago, by Fanael
@R.MartinhoFernandes Standard guarantees wrapping with unsigned. And it was meant to be unsigned.
 
@JerryCoffin oh, I assumed unsigned->logical, signed->arithmetic
 
6:17 PM
Hm.
 
user784668
@MooingDuck In practice, that's what happens.
 
I think at this point I'm just doing shit and hoping it works.
 
@thecoshman My reaction is mostly "unnhh". General relativity is more accurate, but it still isn't really exactly right. Worse, nobody really has a theory that seems to fit with what we do know. Even if they did, would you like to explain some N-dimensional supersymmetric string theory to a first grader?
 
@JerryCoffin you don't explain it to them. You merely say "when a running sheep is on a running train, the sheeps total speed is approximately the two added togeather. There's rounding errors we're ignoring until theoretical physics. Next...."
 
Meh.
There is nothing wrong with lies-to-children.
 
6:24 PM
@R.MartinhoFernandes What'sthe _u literal operator's purpose?
Encode a ogonek::codepoint ?
 
It's just a shorthand cast. It is actually a relic from before I realized I could use \x.
 
Alright, changing all those...
 
@MooingDuck Do you honestly think this gains anything? Did you find it hard to deal with the fact that in a lot of cases, what you learned as a child was only an approximation of the truth? I certainly can't remember ever having a problem with that. For that matter, he has much the same in his video, giving the diameter of the earth, but ignoring the fact that it's a doubly-oblate spheroid instead of a perfect sphere. Percentagewise, thats's a much bigger error than 2MPH + 2 MPH != 4MPH.
 
mornin
 
@LuchianGrigore Good morning.
 
6:27 PM
@JerryCoffin I merely said that you don't have to explain N-dimensional supersymmetric string theory to a first grader. I think approximations are fine, even if we aren't clearly told they're approximations.
 
@JerryCoffin Sometimes people forget models are models.
 
@MooingDuck Okay, fair enough.
@R.MartinhoFernandes Indeed. Speaking of which, I'd like to point out that I'm a model citizen (a small plastic replica of he real thing).
 
You are made of plastic too? Cool! That's two of us.
 
@R.MartinhoFernandes I thought that would strike a chord with you. Speaking of which.
 
6:34 PM
Wait
is that a real person?
 
@ThePhD That was my first thought too. Apparently yes -- and she claims no plastic surgery either.
 
Well, christ.
I would hate to wake up next to those soulless eyes.
You know how scared I'd be if she came to me one day and said "One day, you'll be made of plastic. Just. Like. Me."
My pants would not be able to hold the crap I would have.
 
@JerryCoffin I've seen several barbie girls, but none that claimed no surgery before
 
Apparently I can't even have full sentences typed out. That's how scared I'd be.
... Ugh...
I can't do it.
ogonek isn't portable to MSVC without some serious tangoing.
.... Roflmao.
> error C3851: '\u0020': a universal-character-name cannot designate a character in the basic character set
Which mother fucker thought that this error was a good idea?
 
@ThePhD Could only hope that without contacts and makeup she looks at least vaguely human. I do find it curious that in video games we work really hard at realistic render of human skin -- and at the same time, women seem intent on exactly the opposite.
 
6:41 PM
@Mysticial HAHAHHAHA
 
@ThePhD Wait, what.
 
I'll have you know, that I use OpenID.
 
@ThePhD The C++ standard committee.
 
Oh please.
 
Even though I prefer bitkey.
 
6:41 PM
@Mysticial why is this being flagged?
 
Because it is clear libel.
 
@R.MartinhoFernandes It's from this line: { 0xA0, decomposition_type::nb, "\U00000020", false, false, yes_no_maybe::y, true, yes_no_maybe::n, false, false, false, false, false, ""},
 
Whatever. We don't need this here. Get a room.
 
ahhh haaa...
 
He brought this up.
I just found my name and it's Mystical talking crap.
 
6:42 PM
@R.MartinhoFernandes I saw the flag in my room, wanted to know why, so I came here
 
So I flagged it as abusive -- that's what the feature is for.
 
@EvanCarroll it notifies all rooms
please don't do that...
 
user784668
@EvanCarroll No, this feature is for annoying all 10k users.
 
If you must know the flag was dimissed even before I could see it.
We don't care.
 
You guys should ban Mystical if he is making false and insulting statements about fellow members of the Proletariet,
 
6:44 PM
We won't ban anything.
 
How about we ban you instead?
 
@JerryCoffin It's not the greatest idea: why can't it just down-covert it to the basic character set? Why would it be a problem if you use the Universal Character Set to specify regular stuff?
 
user784668
@EvanCarroll Let me show you something.
 
user784668
 
user784668
@EvanCarroll This is how much most of us care.
4
 
6:45 PM
@ThePhD Good idea or not, it's required by the standard.
 
@JerryCoffin What?
 
You care enough to find a transparent picture and paste it in a chat box, but not enough to click on Mystical and then click Ban.
 
It is not.
 
oh, makes sense.
 
"\U00000020" is fine.
 
6:46 PM
I clicked on Mysticial, but couldn't find the ban button :(
 
user784668
@EvanCarroll You're an idiot, good.
 
Flagged as offensive.
 
user784668
@EvanCarroll I'm barely at 3k and I'm not a mod.
 
And thus ignore was created in chat...
 
@EvanCarroll There's no flag button either :( wtf...
 
6:47 PM
@Fanael @Neal just ignored you.
 
@EvanCarroll And your flag lasted about 2 seconds before it was cleared.
 
@Mysticial HA
@EvanCarroll that was to u...
 
user784668
@Neal Thank you for reminding me about this great feature.
 
@EvanCarroll but I know what you mean, that Mystical fellow can be a jerk :(
wish I could ban him
 
@Neal then it seems as if your ignore is broke.
 
6:48 PM
@R.MartinhoFernandes "Additionally, if the hexadecimal value for a universal-character-name outside the c-char-sequence, s-char-sequence, or r-char-sequence of a character or string literal corresponds to a control character (in either of the ranges 0x00–0x1F or 0x7F–0x9F, both inclusive) or to a character in the basic source character set, the program is ill-formed."
 
ahhhh peace and quiet. cricket, cricket.....
 
@R.MartinhoFernandes Well, MSVC is trippin'.
 
Later ppl.
 
@EvanCarroll Neal was suggesting that you ignore the people here making you mad. You can't see, but he clarified that he wasn't deliberately telling people to ignore you. It doesn't seem to have been his intent to offend.
 
@EvanCarroll I know, right?
 
6:49 PM
Well I am going back to the JS room. bb
 
@Neal Have fun.
 
@Neal Have fun. We probably won't for a while. Sigh.
 
@R.MartinhoFernandes I am :)
 
@R.MartinhoFernandes Sorry.... (i got away and they pinged me right back!)
 
@JerryCoffin FFS.
Why is that?
 
6:50 PM
@JerryCoffin The person who thought of this is just plain... ... wrong.
 
@R.MartinhoFernandes Not sure.
 
Probably to prevent errors and typos? Maybe? Or abuse of the feature?
 
@ThePhD Given that it's in the standard, quite a few people had to agree before it got into the standard.
 
I don't want to write U" ". I really want U"\U00000020", because #1 it a hundred times clearer and #2 it is generated code.
 
6:51 PM
@JerryCoffin All those people are wrong, then.
 
Just FYI
in PHP, yesterday, by PeeHaa
Service announcement Please don't flag messages just because the posts are stupid. It's annoying to other rooms.
 
I don't want to write logic for this.
 
@ThePhD Feel free to submit a proposal to change the standard.
 
what if the posts are offensive? Can we flag them as being offensive?
 
I guess I will make a fuss on std-discussion.
This is nonsense.
 
6:52 PM
Like if the post is accuses you of evading ban because your account is not tied in with an OpenID, when you're logged in with OpenID?
 
No. One. Cares.
9
 
@EvanCarroll nope, you never flag.
 
user784668
@R.MartinhoFernandes I do. Bugs in the standard are annoying.
 
@EvanCarroll Hi. Who the fuck are you?
10
 
@Fanael I'm pretty sure that's not what he was talking about.
 
6:53 PM
@Fanael I see you have ignored the troll. Sorry if I confused you :)
 
Yay, I can finally read the forums on stdcpp.org! The pages were always blank in the past. Did they change something?
 
@EvanCarroll You replied to, and flagged a week-old post. You are not welcome here. I think everyone here would appreciate if you left.
5
@FredOverflow The URL perhaps? (it's isocpp.org)
 
user1182183
Warning 1 warning C4244: '=' : conversion from 'float' to 'cell', possible loss of data Z:\Programs\Microsoft Visual Studio 11.0\VC\include\xutility

How do you track this down?
 
user1182183
xutility-> template function copy
 
@GamErix go to the "output" pane, and track what called that function
 
user1182183
6:55 PM
it's a dll
 
@ThePhD or more likely they had a good reason we're not aware of
 
@EtiennedeMartel I am Evan Carroll.
 
user1182183
coult it be this? ->
> template<typename Iterator,typename Piterator> PassData(Iterator begin, Iterator end, int extraid_, cell MoveCost_, AMX * script_, Piterator Pbegin, Piterator Pend)
: Paths(begin, end),Polygon(Pbegin,Pend)
 
@GamErix double click the warning in the "errors' window. Then open the output window, and it should be at that warning in that window. Read what it says. It should be many lines.
 
@EvanCarroll And are you here to chat or to whine? If you want to chat, start. Otherwise, stop.
 
6:57 PM
@R.MartinhoFernandes Link me, I'll raise a storm with you.
 
@EvanCarroll Yes, I saw that. And from what I've seen, you really like stirring shit up.
 
@GamErix If you're still confused, post those lines on codepad or something
 
@R.MartinhoFernandes lol I meant isocpp.org stupid me
 
user1182183
I click in the eror pane on the warning, it takes me to the xutility include from VS2012 which is read only, now, where is the output pane?
 
@GamErix Should be right next to the Error pane. if not, go to VIEW -> and find it.
 
6:59 PM
@GamErix view->output
 
@EtiennedeMartel I don't stir up shit, or anything else for that matter. On the contrary, I'm here because @Mysticial felt the need to, not stir shit, but talk shit. And, by "shit", I mean allegations with no basis in reality.
 
@FredOverflow Also, lol, seems they just removed the stup they had with frames or whatever and made it open in a new tab.
 

« first day (782 days earlier)      last day (4151 days later) »