« first day (558 days earlier)      last day (4389 days later) » 

12:00 PM
What types can I use to check that my allocator aligns correctly?
 
SSE
 
Use alignas?
Or AlignedStorage?
 
Wut? This is a unit test. vector_type<alignas(foo) T> doesn't make sense, does it?
 
You need struct foo { alignas(n) char _; };.
 
Let's try that.
 
12:01 PM
if you use an SSE type, then access it and it's misaligned, you will get a quick easy crash
 
But AlignedStorage seems easier.
@DeadMG Not desirable in a unit test. Usually, you want the rest of the suite to run.
 
I don't have a particularly good implementation of alignas though. Better switch to std::aligned_storage.
 
Yep, the cross((a,b,c), (appropriate basis)) method I described only fails for (0,0,0), because it is meaningless anyway.
 
what do you mean, basis in the least magnitude co-ordinate?
 
I wish the spacebar was divided into two buttons
Then the left thumb could do space, the right underscore
 
12:04 PM
Today is cool.
 
(1,0,0) or (0,1,0), or (0,0,1), depending on min(abs(a), abs(b), abs(c)).
 
ah k
 
Or maybe even 4 buttons. It just feels like the thumbs don't do enough.
 
@Pubby Thumb buttons on the mouse?
 
@Pubby then buy a Mac. xD
 
12:05 PM
Macs have thumb buttons?
 
Well, I always press Cmd with my thumb.
Cmd is Apple's Ctrl.
 
@Pubby Inner Ctrls?
Damn timeouts.
 
Eh, those are too far away, not comfortable to press
 
@classdaknok_t Why. Please substantiate your claims!
 
@sehe examenstunt. :P I don't know the English word for it.
 
12:07 PM
Soooo, what are the odds that static_cast<unsigned char*>(alloca(500)) + 1 always happen to be an address properly aligned for typename std::aligned_storage<8, 8>::type?
 
Eew alloca.
 
@classdaknok_t cool
 
I wonder if a keyboard like this registers the spacebars separate:
 
@classdaknokt I'd say 'graduation mob'
 
Oh, misunderstood.
@LucDanton If you want it unaligned, align it first, and add one :P
 
12:08 PM
-3
Q: How shall I print caller object name inside a class member function?

user966379See the example class MyClass { public: void fn() { // Here I want to print caller object name,( here it is ***it1***) } }; int main() { MyClass it1; it1.fn(); return 0; }

 
@classdaknok_t Do they still do those. Was it you that mentioned Gertrudislyceum...?
 
Oh God, why would you ever want to do that? D:
 
Feb 23 at 14:46, by Scott W
@daknøk my friend went to Gertrudis apparently
 
Thank you Captain Obvious! — user919789 11 mins ago
 
@sehe yeah. :D Bombarding lower classes with balloons filled with water and soap.
 
12:10 PM
So, this guy posts a question, I answer it in a comment, he edits the question making my comment irrelevant and three months later, calls me Captain Obvious.
 
@RMartinhoFernandes your comment about GC implementations has got me wondering, is there any way to know if you have GC to be a lazy fecker with depend on?
 
Wow. :\
 
@RMartinhoFernandes Timeline, or it didn't happen :)
 
@sehe revision history.
 
@classdaknok_t examenstunt? Like "honderd dagen" or "chrysostomos"?
 
12:12 PM
@rubenvb wut?
 
@rubenvb nope, my guess
> Your answer to "Most efficient way in C++ to strip strings" was migrated to Code Review
 
@thecoshman Dunno. I haven't looked much at the GC support thingies they added.
@sehe My comment at 17:16, and the edit at 17:26. The timestamps are right there.
 
huh... can any one tell me a way to ignore 'user919789' so I need never get annoyed by his ignorance again? — thecoshman 16 secs ago
 
@RMartinhoFernandes probably for the better :D
@RMartinhoFernandes too far?
 
12:15 PM
Quick! Flag it as offensive before he removes it! :P
 
Really, I'd rather just dismiss the whole incident as some brainfart.
 
When starting a project from scratch, what is your first version control commit? I like the idea of having every commit represent a totally usable iteration of the software, but that's not always easy.
 
@RMartinhoFernandes but flame wars don't start that with that sort of thinking
 
I could remove my comment and make him (and now you too) look like a fool, but what would I gain from that?
 
@RMartinhoFernandes No joy
 
12:16 PM
@Maxpm "First commit".
 
@Maxpm after I set up the project and directory structure, I just commit it as "Set up directory structure and [Xcode] project."
 
@RMartinhoFernandes what's the point. my comment got deleted :(
 
"First commit" means "basic housekeeping crap".
 
That is, src, include, doc, lib, etc…
 
Can someone tell me why my answer was so 'uninteresting' that no-one even cared to comment?
0
A: Most efficient way in C++ to strip strings

seheUse the C locale. On some locales, isalpha and friends might be very slow. E.g. on UNIX LANG=C export LANG or use std::locale to activate the C locale from code std::locale::global(std::locale::classic); // untested draft Background For an example of how locales can slowdown performance o...

 
12:17 PM
@Maxpm commit to an unstable branch?
 
Right now it looks like a perfect question + answer down the drain since it was moved to Code Review. If my answer (and some others) make any sense, that is the entirely wrong place for it
 
Repositories themselves should be kept under version control for when you fuck them up.
 
@thecoshman amaizing, not
 
sbi
@IntermediateHacker Let's just say that it might be helpful to have at hand in a discussion with feminists.
 
@thecoshman Stop trying to imitate DeadMG. You suck at it :
ok... let me try again. user919789, if you want to get help, don't act like a dick. Is that better? — thecoshman 1 min ago
 
12:19 PM
Wow, @thecoshman is playing with fire.
 
sbi
@sehe Last time I looked the Scottish weren't particularly fertile, and no "good percentage" of the rest of the men wore skirts.
 
@sehe what? was there some vote that only @deadmg can be frank with people who act like dicks?
 
@thecoshman Why do you think he is acting like a dick?
If you look at the question as it is, my comment does look stupid.
 
sehe's comment clearly explains the source of the "dick" on the part of the questioner.
 
Thank you Captain Obvious! — user919789 21 mins ago
 
12:21 PM
user919789 rides a Trolls-Royce. Ignore him.
 
He may have forgotten and not looked at the revision history.
 
@classdaknok_t And your next commit? Do you push a ton of source files at once at the cost of losing some development history, or do you take it in baby steps?
 
@thecoshman No need to stoop to his level (and beyond).
 
Hanlon's razor.
> Never attribute to malice that which is adequately explained by stupidity.
 
sbi
@classdaknok_t Well, it started out much warmer, actually. For lunch, we sat down outside in the sun at an Italian restaurant, but by the time the bill came, most of us were freezing. That is annoying.
 
12:21 PM
@Maxpm you commit them as you add them. if you have a lot of work already done, just add it in one hit and explain int he commit message
 
"Imported existing crap"
 
@Maxpm Then I just commit after each change/addition, as long as the unit tests don't fail.
I don't write thousands of lines of code before I commit. Usually I commit per big function, per feature or per class.
 
@sbi you know, the scotts are mighty defensive about their skirts kilts
 
sbi
When I came to SO, it took me a while to learn that userXXXXXX is several different users, because so many of them behaved like dicks.
2
 
12:23 PM
I see.
 
sbi
@thecoshman And, in fact, I can see quite well why they would become defensive about it.
 
@sehe no reason to be scared of letting people know when they behavior isn't accetable
 
sbi
@Maxpm Why is that notable? Have you been blind before today?
 
@sbi especially those with prime numbers!
Apr 13 at 15:38, by R. Martinho Fernandes
> This user has been temporarily suspended by a moderator and cannot chat for 6 days. that user-prime-number-guy
 
@sbi That was a lame joke (pun intended).
 
12:24 PM
friday code
 
(I couldn't get a proper joke, so I had to put "pun intended" to make it a joke)
 
@sbi although, from my understanding a traditional kilt is more like a roman toga then a the modern skirt it has become
 
sbi
@classdaknok_t Temporary my ass. That user is gone now.
 
Xeo
@sbi In developer language, temporary == permanent
You should know that.
 
auto&& permanent = std::string();
 
12:26 PM
@sbi No he isn't.
 
sbi
@RMartinhoFernandes I wish I had been able early to tear my eyes from trying to find the pun in that, so I could have found this message if yours, saying there is no pun.
 
@sbi reminds me of this awesome answer:
Meh deleted answers don't one box.
 
sbi
@DeadMG Well, following chat.stackoverflow.com/users/1131997/user1131997 gets me to "Page not found."
 
perhaps they kicked him back again then
 
Xeo
@sbi Well, he made a new account
 
12:27 PM
oh, new Ubuntu... aka another week of getting my computer back the way I want it
 
Xeo
Msomething
 
but I know he's been back since his suspension
 
// somedev1 -  6/7/02 Adding temporary tracking of Login screen
// somedev2 -  5/22/07 Temporary my ass
3
 
the real WTF in those comments is the crappy American date format
3
 
@sbi you're not the only one :D
 
12:27 PM
who on earth came up with month/day/year?
 
sbi
@Xeo You mean with a new number? You might want to see this.
 
Xeo
@thecoshman *you're
 
Spell months out; it prevents all confusion, and people don't have to remember which month has which number.
 
Xeo
@sbi No, the nick starts with M
 
sbi
12:28 PM
@classdaknok_t It is, I think, kind of the point of deletion for the deleted thing not to be visible anymore.
 
Xeo
easy for parsing, bad for anything else!
 
@classdaknok_t not that I have to think about that at all.... <shifty eyes>
 
She blinded me with science.
 
sbi
@Maxpm That sounds like a line by Nick Cave.
 
It's a song, but not by Nick Cave.
 
sbi
12:30 PM
@Xeo Hold it right there for a minute. Are you telling me that this user has been banned, then got deleted (temporary my ass!), and now has a different account? And how exactly do you know that?
 
because he came in here and proudly announced it to everyone
 
sbi
@classdaknok_t BTW, that answer reminded me of the phrase.
 
:P cool
 
sbi
@DeadMG What's his new account?
 
10 mins ago, by sehe
@thecoshman No need to stoop to his level (and beyond).
 
12:31 PM
can't remember, I /ignored it as soon as I realized WTF was going on
 
^ I think I did that :)
 
@DeadMG I do find it funny we have day/month/year and then hour:minute:second, surely year/month/day hour:minute:second makes more sense, a constant flow of unit 'size'
 
sbi
@sehe You did what?
 
@thecoshman Not really. The "second" of a time is rarely relevant, and the minute is less relevant than the hour.
it's a bad idea to lead with the least relevant information
 
@DeadMG huh? I'm not saying lead with seconds, unless by lead you mean on the right hand side...
 
sbi
12:33 PM
@DeadMG When we are talking about something that happened yesterday, or last week, or in March, (how) is the year then still the most relevant information in the date?
 
@thecoshman Sure. Go with ISO so-and-so for date then.
 
@sbi It isn't. I don't lead with year, I lead with day.
 
Just use 1335443638.
 
sbi
@DeadMG Ah, but looking at history, isn't the year the most important part?
 
12:34 PM
no
 
sbi
@sehe Ah, now I understand.
 
for one, it's infinitely more likely that I will give a date within the current week than a historical date
 
sbi
@DeadMG So which week was the battle of Hastings?
 
and secondly, I usually refer to historical events by year, so only 1935 or something
 
@classdaknok_t anyways, 919789 == 13 x 70753
 
sbi
12:35 PM
@DeadMG That's because the year is the most important part of the date when you talk about ancient history.
 
@sbi Except talking about ancient history is a vast minority of all times I mention a date.
 
@sbi Oh that one's tricky. Do you use the Julian calendar or the proleptic Gregorian calendar?
 
sbi
@DeadMG So take very recent history:
9 mins ago, by R. Martinho Fernandes
// somedev1 -  6/7/02 Adding temporary tracking of Login screen
// somedev2 -  5/22/07 Temporary my ass
I find the year very relevant in that. The exact second the comments were made, OTOH, is totally irrelevant.
 
@classdaknok_t Weehoo. Thanks so much for the info. Mind you, I was the first to notice. And it didn't take me long either
Feb 16 at 23:00, by sehe
@user1131997 Did you know (trivia), that 1131997 is a prime number?
 
12:37 PM
@sbi I'm totally down with the second the comments were made being irrelevant. I just said that up there somewhere.
 
sbi
@RMartinhoFernandes It's irrelevant. Most people who remember any part of the date only remember the year — because this is so much more relevant than the rest of the date that it's almost the only relevant part of it.
 
I'm not sure I'm against year/month/day
all I said is that leading with the month is definitely dumb
unless you're gonna skip giving the year for some reason
 
sbi
@DeadMG So lemme fix that sentence pf mine up there: "I find the year very relevant in that. The exact day the comments were made, OTOH, is quite irrelevant." See?
 
@DeadMG like I said before year/month/day hour:minute:second
 
sbi
@DeadMG That I agree with.
 
12:40 PM
I almost certainly only use day/month/year because it's how it's done in the UK, instead of for any rational reason
 
What about 04/28, my anniversary? Leading with the month seems perfectly fine :P
 
"January 6th, 2012" I still find the least confusing format.
 
sbi
@thecoshman No, the / notation is burnt, because British and Merkins couldn't agree on what it meant. That's, I think, why ISO came up with year-month-day, which is unambiguous. I now use this exclusively in international contexts.
 
the Merkins pointlessly burned many linguistic conventions
 
@sbi god damn Merkins ruining everything!
 
sbi
12:42 PM
@thecoshman Incidentally: How old is the British notation?
 
@sbi probably not that old
 
William Shakespeare didn't even spell his own surname consistently
so I doubt that they had a consistent date notation for hundreds of years
 
sbi
@thecoshman That's too vague for me to accept that they did the bad thing.
 
@DeadMG don't you mean William Shakespeer
 
Sheyckespeer
 
12:43 PM
@sbi of course they did, they're Merkins :D
 
as far as I'm concerned, nobody did anything and everybody uses what they feel like, or what the one before him did.
 
Che spear
 
yeah, fixed it before any one said anything!
 
@Dev2rights Che Guevaraspeare?
 
@rubenvb huh?
 
12:44 PM
@classdaknokt +1
 
Can we go back to discussion DVCS vs. SVN? If we must, we can compare timezone handling and timestamp resolutions
 
FTR, only Merkins and the dudes from Belize use that middle endian crap.
 
@sehe NO
 
Surely the whole world isn't wrong.
 
sbi
@RMartinhoFernandes We're using neither of those two.
 
12:45 PM
As i just jumped in , how did merkins come up in C++ ? not moaning just curious
 
Which two?
 
Belize (formerly British Honduras) is a country located on the north eastern coast of Central America. Belize has a diverse society, comprising many cultures and languages. Belize is the only country in Central America where English is the official language. Kriol and Spanish are more commonly spoken. Belize is bordered to the north by Mexico, south and west by Guatemala, and to the east by the Caribbean Sea. Belize’s mainland is about long and wide. With of land and a population of only 333,200 inhabitants (2010 est.), Belize possesses the lowest population density in Central Ame...
 
@RMartinhoFernandes That sounds perfectly probable to me.
 
18 mins ago, by DeadMG
the real WTF in those comments is the crappy American date format
 
sbi
@RMartinhoFernandes m/d/y vs d/m/y
 
12:45 PM
huh... 1914 panroma photo :O
 
@Dev2rights You think we talk about C++ here? lol
@sbi m/d/y is middle endian, d/m/y is little endian, ISO uses big endian.
 
sbi
@Dev2rights You must not moan when seeing a merkin.
@RMartinhoFernandes There's an app a room for that.
 
@sbi well it depends what its covering, more so are we talking about the victorian style merkin or the modern day vajazzle merkin
 
I hope you're not talking about merkins.
Because we are talking about merkins, not merkins.
 
@RMartinhoFernandes he he he, merkins
 
sbi
12:47 PM
@RMartinhoFernandes We use neither of those three.
 
i heard you like merkins so i...
 
sbi
@RMartinhoFernandes You got that the wrong way 'round, I think.
 
Err, according to Oxford Dictionary:
 
@sbi Gosh, I'm having a big trouble understanding what you mean.
 
merkin |ˈmərkən|
noun
an artificial covering of hair for the pubic area.
 
12:48 PM
:)
 
@classdaknokt is correct, and oddly a common discussion that crops up with other developer friends of mine
 
sbi
@RMartinhoFernandes We Germans use neither m/d/y nor d/m/y nor y-m-d notation for dates.
 
What do you use then?
 
@sbi care to enlighten us
 
12:49 PM
I don't know what we Dutch people use, to be honest. I guess d m y with the month spelled out.
 
d.m.y?
 
I thought Europe west of Poland used little endian.
Oh, come on, let's not go into the separators.
 
Xeo
@sbi he/she/it told me him/her/itself
 
@Xeo /itself
 
sbi
@thecoshman Ordinals aren't created by suffixing with things like "th" in German, but by suffixing with a period/stop. And we start with the day, so this results in d.m.y for us.
 
12:51 PM
That's still little endian.
 
the UK uses dd mm yy which is backwards for sorting , i know Sweden uses YY MM DD for easier sorting chronologicaly
 
I said it 1.!
 
@Dev2rights who sorts by hand?
 
Accountants
 
sbi
@RMartinhoFernandes Yeah, but it was you who brought up endianess. I referred to the notations when I made my comment.
 
12:51 PM
or they used to
 
@Dev2rights That's their problem, then.
 
@RMartinhoFernandes wait... is that not big endian as years are bigger then days?
 
@sbi But we were discussing just the endians, i.e. which comes first.
@thecoshman No, it's middle endian because it has one end in the middle. The sheer absurdity of that previous sentence should be enough proof that notation is crap.
 
@DeadMG this is true but its british history and the hows and whys we do things the stupid way we do
 
I use Unix timestamps in binary!
 
12:52 PM
@Dev2rights Doing things because of history is dumb.
 
sbi
@classdaknok_t Who brought up sorting by hand? Common file browsers sort file names containing dates much better, too, of the order is y-m-d.
 
18 mins ago, by R. Martinho Fernandes
Just use 1335443638.
 
@DeadMG you neednt tell me, try running a comapny in the uk , all based on 16th and 17th century laws
 
sbi
@RMartinhoFernandes No, I never was. You brought up endianess only after I made my comment.
 
@sbi Didn't think of storing dates in strings.
 
12:53 PM
@Dev2rights On Sunday I wanted to buy some milk. It was 16:05. RARGH
 
@DeadMG buy a cow on the Monday, forward planning and all that
 
sbi
@DeadMG Right, that's so obvious when one learns your language.
 
@Dev2rights So I take it it's hard running a company in the UK because of accountants that want to write dates in their legacy format. Makes sense to me! I never trusted the lot.
 
12:53 PM
Shouldn't that be 4pm?
 
@RMartinhoFernandes but years are a more significant unit then months, which is more significant then days. thus big endian. no?
 
@RMartinhoFernandes Yes its 4pm
 
@sbi At least we don't have genders and stuff in English.
 
@thecoshman No, big endian has the bigger end first: YMD. It's what it says in the tin.
 
@DeadMG 24 hour clock + am/pm = slapp!
 
12:54 PM
@thecoshman Good catch
 
@DeadMG Yeah, no one says he/she/it.
 
Xeo
@RMartinhoFernandes But days go higher than months!
 
@RMartinhoFernandes well fuck me, iv'e had little/big endiannes wrong all this time!
 
Also, I decided to not link to TVTropes above. I'm being generous today.
 
@LucDanton no its actually because of the tax yer dating back to the 16th century and the gregorian calender so landlords and taxmen didnt loose out on 11 days of taxt and rent, same problem different situation, same greed
 
12:55 PM
 
google fiscal year wiki
 
lol
@RMartinhoFernandes thanks for your generousity
and thinking about my productivity :P
 
Xeo
@DeadMG And we're also case sensitive. I seriously wish he didn't have that..
 
I love the way in the UK we have three years (that I know off at least) calendar year, school year and financial year. Plus there are three astronomical years that can be used
 
sbi
@DeadMG Yes, you do. Only yours is absolutely crippled and inconsistent.
 
12:58 PM
@Xeo It does help learners a lot.
 
@sbi AFAIK only blonde has genders
 
@thecoshman there are also previous calender years that we used to use before gregorian, totally backwards ones when New Years was in march
 
sbi
@DeadMG And now make that very same table with possessive pronouns.
 
@classdaknok_t dd-mm-yy in my experience. Though occupational deformation has me using yyyymmdd everywhere
 
12:59 PM
Ew no separators.
 
@Dev2rights just more 'new years' to celebrate :D
 
@thecoshman Im english i need no excuse to celebrate....... i mean get drunk
 
@classdaknok_t Apparently you Dutch people use "hyphens as in “dd-mm-(yy) yy”, very often "d month (yy)yy""
 

« first day (558 days earlier)      last day (4389 days later) »