« first day (1039 days earlier)      last day (3903 days later) » 

7:00 PM
I need my bounds checked :P
 
> Exporting full revision 1/9 with 12585/0/0 added/changed/removed files
 
user1804599
CSS animations are cool.
 
A big question for today.
Why do I have VS2008, and why is it assigned to open .yaml files.
 
@not-rightfold Heh
 
user1804599
@CatPlusPlus Because the registry says so.
 
7:04 PM
Also I forgot how VS2008 looks like.
 
@CatPlusPlus I have no answer.
 
And how little memory it uses.
 
So you might want to keep it?
 
It's certainly more effort to remove it, so.
 
oh you
Pizza!!! for me tonight!!!!
Weeeeeeeeeeeeeeeeeeee
 
7:06 PM
Pizza is good
 
user1804599
VS2012 worked great when I tried it.
 
Evening
 
user1804599
It was fast and didn't use much memory at all.
 
Hello.
 
Xeo
You changer your avatar. Bad Jeffrey.
 
7:06 PM
changer?
 
Yeah, I don't like it. I might go back to the old one.
 
Xeo
Wait, is that the github stuff?
Or the retro ones from gravatar?
 
Retro Github thingy for Jefffrey
 
Xeo
... I just noticed you have 3 'f's in your name
 
Changed yesterday to match other accounts names (since most of the time Jeffrey is already taken)
 
7:09 PM
@R.MartinhoFernandes Ok, this looks silly, but do you think it's a correct implementation of dynamic array with non-pod values? (I avoided ~T() notation.)
 
user1804599
> Great repository names are short and memorable. Need inspiration? How about yolo-octo-nemesis.
 
user1804599
> yolo
 
@not-rightfold hahaha wut
 
lol
 
7:13 PM
@Xeo what was it you wanted to ask about my A to the vector Q?
 
Xeo
@StackedCrooked Your resize is badly broken.
 
Hm...
I don't immediately see how.
 
Xeo
Oh wait, you calculate the end iterator from the size
 
Actually, I'm requiring T to have a default constructor.
 
Xeo
You're still relying on default ctor though
 
7:14 PM
Which may be bad.
 
This code is a lump of fermented shit.
 
I was trying to avoid the POD requirement.
 
Xeo
Also, pop_back?
 
Didn't think of that.
 
user1804599
7:15 PM
Hmm.
 
user1804599
I'm wondering what algorithms are used for positioning HTML elements.
 
I guess I should use it->~T(); after all.
 
@Xeo poop_back.
 
@not-rightfold shitty ones?
 
user1804599
Eh.
 
7:16 PM
(I'm sure nobody has ever made that joke)
 
user1804599
"what algorithms", not "what kind of algorithms"
 
user1804599
@EtiennedeMartel Indeed.
 
Xeo
@StackedCrooked And emplace construction, maybe.
 
reminds me of this example
 
@Borgleader Oh great. while(1) test summat. Fucking brilliant.
 
7:21 PM
@Xeo Uh. Elfen Lied. Ka something. Fate/Stay Something. Uh. And yeah. That's about it.
SEE I PAY ATTENTION GOOD. :D
 
@MartinJames I know right xD
 
Xeo
Kara no Kyoukai, Fate/Zero, Fullmetal Alchemist, Needless.
 
"Spawn thread from main thread, block main thread until new thread is done" fucking genius
 
@Xeo FMA: Broootherhood
 
Xeo
If you're paying the same amount of attention to STL's talk...
 
user1804599
7:23 PM
Is it sad that I postponed a relaxing bath in order to get excited about trawling through the C# spec? Hold on - don't answer that :(
 
user1804599
Dat geekiness.
 
@not-rightfold I found this today:
> This thread is bad and you should feel bad for posting in it.
It has to be you :3
 
user1804599
Link?
 
404'd. It's from /g/.
 
user1804599
I once posted a comment "The singleton pattern is bad and you should feel bad." and it got upvoted 10 times because my username was Zoidberg back then. :P
 
7:25 PM
@not-rightfold not it got upvotes because of the comment
 
user1804599
@Tuntuni I don't do /g/, only /b/ and /mlp/.
 
@not-rightfold lol. That post even had a picture of zoidberg.
 
user1804599
@Borgleader the combination.
 
user1804599
Know your memes.
 
Nearly as good as:
MyForm::onClick(sender thingy){
myThread();
while(!MyThread.finished) Application.DoEvents;
};
 
7:26 PM
@not-rightfold i know my memes, but the comment itself is upvote worth
 
@not-rightfold hmm. :( the style was identical to yours.
 
user1804599
It's not.
 
the thing with feeling bad. you always say that.
 
user1804599
I wouldn't append " for posting it."
 
ahh, you're right :/. the picture of zoidberg reminded me of you though :D
 
7:27 PM
darn, again 5 minutes wasted for staring at "std::smart_ptr<T>" type undefined error
 
lol
 
lol wut
 
I think it's a bit "no shit" if you work at a strip club whose business is attracting men, then your success is going to be tied to whether those men find you attractive.
 
maybe she should relocate to Samoa
 
7:30 PM
Anarchy code. It won't meet standard requirements, but useful for me :P
 
heh
 
@Rapptz LOL
 
1
A: What is the performance penalty of using std::vector in C++?

Mike DunlaveyPeople are going to say "It depends on what you're doing". And they are right. There's an example here where a conventionally-designed program using std::vector was performance tuned, through a series of six stages, and its execution time was reduced from 2700 microseconds per unit of work to 3...

 
@ThePhD Ka something?
 
bad advice: "don't just sort of choose something that's highly recommended and then hope for the best. Rather get it built one way or another and then do performance tuning"
 
7:32 PM
OK, after a day of wierd and inexplicable, I need beer. BFN!
 
Xeo
> So the arrays were eliminated altogether, and linked lists used instead, producing another large speedup.
I have kind of a hard time believing that.
 
@StackedCrooked 26.5–40 GHz, IIRC.
 
Xeo
@StackedCrooked Read my message below.
 
@TemplateRex eh.. I don't like it.
 
Ah, Kara no Kyoukai.
I managed to get up to 2 Gbit of bidirectional TCP today (which is 170000+ packets of ~1500 bytes per second). I'm quite happy. (The goal is 10G though.)
 
7:35 PM
@Rapptz the guy is 69, so he has been in the trenches very long, that earns the right to some war stories, lol
 
@TemplateRex No, that's good advice.
 
@DeadMG at the very least, one should first look at some complexity guarantees of data structures that could do the job, and select from those
 
His advice could have been worded better
 
@TemplateRex Er, for many problems, cache concerns can beat complexity concerns.
especially when linked lists are involved, as their cache performance is horrible.
 
@TemplateRex that can be very broadly interpreted
 
7:38 PM
there's a reason why people recommend vector over list, and it's not for funsies.
 
@DeadMG of course, I meant: look at complexity + other interface guarantees (contiguity, iterator invalidation whatever), anything except just built it using anything that works
 
When you have huge buffers then cache is also a problem because it keeps getting overwritten.
 
@TemplateRex If you don't just build it using anything that works, how are you going to know whether that's going to be too slow?
 
@StackedCrooked I guess so, I interpreted it as "just code without design"
 
Xeo
@DeadMG Erm, the answer kinda goes the other way around.
 
7:40 PM
@Xeo Which is why I am really dubious as to the relevance of the quoted anecdote.
 
@DeadMG It's because they read a book from the 70ties.
Which was about tape algorithms.
 
@DeadMG out of the huge space of workable solutions, you should not prematurely pessimize by choosing something of very bad performance
 
> Games for Windows Live will be discontinued on July 1, 2014.
 
Xeo
@TemplateRex A linked list falls into that category.
 
@TemplateRex Of course not.
 
Xeo
7:40 PM
Also, I can haz vla
 
@TemplateRex You can't prematurely pessimize something if you don't know that you have, in fact, pessimized it unreasonably because you don't know how slow it is.
 
Aaand that also means multiplayer games that use GFWL will probably stop working.
Cool.
 
@DeadMG hence, the need to look at the library docs, which kind of complexity etc. These things can be discovered before coding
 
@TemplateRex Whether or not that complexity is actually relevant to anything isn't.
 
@CatPlusPlus Good riddance.
 
7:43 PM
@DeadMG if you know that you are going to performance tune later anyway? I find that hard to believe
 
@not-rightfold Cabal's getting native sandboxing.
 
@TemplateRex How could you know that if you don't have profile data for your app?
 
user1804599
@CatPlusPlus so no more cabal-dev?
 
and also, complexity vs cache often depends on exactly what your usage trends are, which requires real-world usage data to determine.
 
user1804599
7:43 PM
I want npm for Haskell.
 
user1804599
It just works.â„¢
 
@DeadMG that was precisel the point of that answer: code first, profile later. My point is: analyze first, then code then profile
 
@not-rightfold It can probably break in weird ways, too, except it's much less visible.
 
@TemplateRex Performance analysis is a waste of time if your code isn't performance-critical, and can't be done prior to coding anyway since there's a thousand usage trend factors (most powerful being cache) which require real-world data to accurately analyze.
 
user1804599
Oh well cabal-dev has always worked for me too.
 
7:46 PM
@DeadMG not convinced. before coding you normally have an idea how the product should scale (requests per minute, overall size of data input whatever), what kind of stuff it should do (searching, sorting...), that alone should give enough info for first-cut performance analysis
 
@TemplateRex That stuff can't tell you, for example, that 90% of real user requests are, say, read/write, instead of insert/erase, so your theoretically superior list turns out to be slower than doing it by hand on paper.
 
Horizontal scaling is cheap. Just throw more VMs at it.
 
and it also can't tell you, for another example, that the user's experience is slowed down more by some kinds of slowness in some places rather than others, so if you're trying to improve your application's user experience, you can't know in advance that any given piece is going to be "User is sitting smashing the keyboard slow" compared to "Completes before user can perceive it, a billion times, user never perceives slowness".
 
Also your careful analysis for 546.335 requests per minute on average (except Sundays from 5 to 9) will go out of the window on the first spike to 60000 because random reasons.
 
<333
There's union type punning in this code!!
And I didn't write it! <333
 
user1804599
7:50 PM
You imbecile.
 
user1804599
Why haven't you removed it yet.
 
It's even inside an unnamed union.
Vindication. <3
 
@CatPlusPlus you are distorting my argument: scaling is not the same as precise estimate
 
(Coding is less boring than not coding, programming-wise)
 
What's going on here? Premature optimization?
 
7:54 PM
I don't know but it's boring
 
@TemplateRex You might not necessarily do it.
 
Okay sleep time.
 
user1804599
Everyone should get a free server upon birth. For a life-time.
 
Performance is a feature. If your app does not feel slow, then you don't have to optimize it.
 
Everyone does get a free server upon birth. In the NSA's data-centre.
 
7:56 PM
@not-rightfold everyone gets one, from the NSA :-)
 
@CatPlusPlus Only Americans.
 
FIRST
 
@CatPlusPlus lol, same thought
 
@EtiennedeMartel You wish.
 
@EtiennedeMartel I think the NSA's programs are global.
 
7:57 PM
It's the NSA. Everyone's in it.
 
^ Relevant.
 
the mormons should subpoena the NSA to complete their book
 
Pretty sure Germany, France, UK, Netherlands, and other countries are in on it.
 
@EtiennedeMartel I don't remember that scene
 
8:09 PM
@TemplateRex fkcing mormons.
wont' leave me alone
Answering no to the question if I found God does not imply I'm looking nor does it mean I'm inviting a sales pitch.
 
@Chemistpp I was in SLC once, and they mormons are a friendly but tenacious bunch
if they were on SO, they would get the Tenacious badge in no time
 
@TemplateRex lol. Tenacious is a good word to describe them. never made it down out to Utah but my undergrad was filled to the brim. I used to lie and say I was my gparents religion but when my gf was catholic and I was protestant, neither of us religious, our lies fell apart. They were asking questions about whether our parents were okay with this, how we thought about conflicting ideology... I don't even know man, I don't care!
The lie caught me in a longer conversation
 
I smell an XY-problem. Also, how are you defining characters? Just code-points? Or grapheme clusters? Are you looking to correctly treat combining characters? IOW: Tell us what you are trying to achieve, not howsehe 54 secs ago
 
now I just stare them down and say no one time.
 
Ohai gentlefolks
 
8:17 PM
@sehe hai
 
@sehe say the magic words from the book of mormon first
 
@TemplateRex Lemme grab it from the shelve
 
shelve!? better not let dust cover the holy book
 
Cute. I got two copies
 
dust to dust ashes to ashes
 
8:18 PM
@sehe I only use the one next to my shitter.
Oh, and only after I've run out of Charmin TP
 
> "Een door Mormon op platen geschreven verslag, overgenomen van de platen van Nephi" - Dutch version, sorry
 
There is a dutch version of the book of mormon?
wow
 
Of course. Any ambitious religion should have language penetration
 
@sehe Yeah, but Mormon is to religion what java is to programming
well
I can't say that
because I don't know java well enough
 
@Chemistpp if only Java was as small as mormonory
 
8:21 PM
Being flabbergasted at how many people add milk at the wrong stage of the tea making process
 
i'd say more like Eiffel, relative late comer, and quite eccentric guru
 
@Rapptz where do you get that stuff?
 
This is just people from tumblr being nuts.
 
yeah but how does this particular thing pop up?
 
8:26 PM
looks like the petition worked
 
hey look, another reason not to buy a PS4.
 
i can smell your cynicism from here
 
lol
 
My program outputted a list of pairs<timestamp, int>. I would like to import in into Excel and draw a graph, however the timestamps are not evenly distributed. How can I transform the data so that the timestamps have regular intervals?
 
Also that game is cross platform so that should be "another reason not to buy a console"
 
8:29 PM
I buy Nintendo consoles for their exclusives :v
 
i buy the non-nintendo consoles for their exclusives :P
 
kek
 
@Rapptz I think you'd know? :)
 
Hm?
 
Or maybe excel has a feature to do this automatically for me.
Ah well.
 
8:32 PM
Last good PS3 exclusive I played was actually LittleBigPlanet, I liked that game.
 
@StackedCrooked why do the timestamps need to be at regular intervals?
 
Because they will be used as x-coords in the graph.
 
so?
 
Hm...
 
if youre ready to adjust the timestamps, im guessing they dont matter, so just give them indices?
but i still dont see why the interval needs to be constant
 
8:37 PM
I saw this on /r/gaming yesterday (I unsubcribed from it since it was pretty shitty and just check in monthly intervals or so)
 
and this is what exactly? someone hoping next gen will do multimonitor?
 
someone being an idiot
Anyway the title was: "This is what I'd like to see with the new gen. No idea why it hasn't been done already."
 
Except that the IndexOf/Substring version is wrong (returns \\build\PM\11.0.25.9\ Destination, before you fixed it) and lacks any error checking whatsoever, making it evilly wrong. This is why you write code that expresses intent, instead of writing brittle index manipulations :) — sehe 3 mins ago
 
for the map thing specifically i think xbox might be able to do it with smartglass
 
@Xeo, does this avatar makes you happy? :)
 
Xeo
8:41 PM
lol
 
@Chemistpp Of course not. Java is somewhat deservedly popular and not quite so backwards. Also, Java doesn't make you give most your income to the "church". In that respect, Visual Basic comes closer
@Chemistpp wait, do you have hands-on experience with Mormonism?
 
@sehe lived with one
well, lived with one that left the church because he was gay
 
Ah. That's gonna be... interesting.
 
but also because they were rampant in my undergrad and I particularly hate having zealots push their ideologies on me.
 
I lived with Jehova's witnesses. Twice, actually. In dependent situations. Interesting as well
 
8:43 PM
@Borgleader lol
 
That was an unexpected 'lol'
 
@ScottW Of course they are. Who gives a shit about your soul, it's all about the money.
 
1 hour to STL's presentation.
I managed to do my hair.
@ScottW That's okay, because you're an expert in other things. <33
 
@ThePhD which presentation? any link?
 
@TemplateRex It's private for me and STL. <33
 
8:48 PM
@ThePhD What is he presenting?
 
... And a dozen other people, but they don't matter.
 
Some list family name and donation amount as a form of public shaming
 
@DeadMG I'm... not sure if I can say. :c I have no idea if he's announced it.
 
internal MS course? private tutoring?
 
@least here in the US for catholic denominations
 
8:49 PM
dogging?
 
It has to do with the GoingNative thing, though.
 
@ThePhD has your recent answer on VS2013 "abysmal" C++11 support not given you any flak then? :-)
 
@TemplateRex I don't think anyone's connected I work at MS yet.
Plus, uh.
I really don't want to show that to STL. ._.
 
@ThePhD he doesn't work on the compiler, which is where most of the bugs are
 
@TemplateRex Yeah, but he's still part of the VC++ team.
That's like kicking a person's dog and then being offended when they punch you. It may have been a dumb dog but it's still their dog.
 
8:53 PM
anyway his lectures are nice, but I'd like to see more of mr. McNellis, he was very smooth in that interview segment the other day
 
Arhem? You got it wrong the first time, have magic constants (not repeated anymore, now: kudos), no error checking means you'll get ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Cannot be negative. if end is -1, but silently wrong results if start is 11 [sic]. How is that not brittle? — sehe 2 mins ago
 
@sehe so why don't you downvote him?
 
@TemplateRex Because he has the rest of the answer, too, duh?
 
@sehe Hey! I saw that. :c
 
:/
 
8:56 PM
@TemplateRex Link?
 
Also, there's a little of it. Thankfully it's not like my head hair or chest hair. As comfy as an ass afro would be, there's a lot of unfortunate implications.
@TemplateRex "Even PHP if that counts as programming" ZING.
 
I HATE when SO won't format my text as code. I indent four lines and in the preview it indents the paragraph four lines. Trying to edit code into someone's question but SO won't let me :(
 
@MooingDuck empty line before code segment?
 
@TemplateRex four
ah, I must have a line of actual text between bullet points and code apperently.
 
9:01 PM
it happens all the time when I paste from the Standard
 
i have great sympathy for any c++ frontend developers, even at microsoft
don't hate on them!
 
9:32 PM
Tell me again how the simpler solution was simpler? It wasn't even complete, and making it complete would be... not so simple :) Anyways, +1 for the rest of the answer. I take the comments as sufficient warning for passers-by — sehe 4 mins ago
And then the clincher:
Amusingly, I'll fix another error in your updated code :/ (really, they were three, in a single line) — sehe 3 mins ago
@MooingDuck I always use <!-- --> at the 'unindented' level. Note this is because bullets can contain code snippets (just double the 'code indent' to see what I mean)
 
Should I use std::size_t here? (I don't see why I would ever need more than 2^32 rows or columns.)
 
@EtiennedeMartel The cat will cough another furball
 
@StackedCrooked typedef [whatever] size_type
 
I hate having to change my password.
 
go to bed.
 
const T* operator[](unsigned row) const
{
    return &data_[row * columns()];
}
grid[1][2]; // returns data_[1 * columns + 2]
 
You know what would make passwords really fuckin' hard to break?
Allowing people to use snowmen, stars, piles of poo, and using a random encoding for each account.
Talk about fuck you to all kinds of regular ASCII-based attackers.
 
actually im curious how people actually download these records in the first place
 
All the salts I use will be A random combination of everything from U+0000 to U+F1000
 
9:50 PM
@ThePhD Yes, you should implement that.
 
I will. :D
 
You got experience with the shit water.
Btw, how did STL come to know you?
Did you show him all you codes just like you always show us?
:)
 
>.>
STL doesn't quite see my code
For, uh, y'know. He's a busy guy!
He doesn't need to see my code.
Anywhooo time to go PRESENTATION GOOO.
 
I feel like I learned as much about C++ in the last two years, than I did in the 5 years before that.
And two years ago I thought I knew much..
 
I learned I'm an idiot!
 
9:54 PM
I already knew you were an idiot
:P
 
user1804599
> codes
 
I like to use that word occasionally.
In non-serious contexts.
Like not when discussing a raise with my boss.
 
user1804599
There are many different dress codes.
 
posted on August 20, 2013 by Pat Brenner MSFT

Hello, I’m Pat Brenner, a developer on the Visual C++ Libraries team.  In this blog post I would like to share with you the changes that we’ve made in ATL and MFC for Visual Studio 2013. One of the major changes we made was to eliminate the ATL DLL altogether.  All ATL code is now static, either in the header files or in the ATL static library.  We also reduced

 
I hear Moscows' vodka is strong
lol
 
9:59 PM
I think I'll post this as a quiz question for my colleagues: if you have a Grid<T> class which is implemented in terms of a (private) std::vector<T>(width * height). Then how can you enable grid[x][y] getters/setters?
 

« first day (1039 days earlier)      last day (3903 days later) »