« first day (690 days earlier)      last day (4251 days later) » 

12:00 AM
It's not easy to grasp an idiom if it comes in 200 lines of code.
 
@R.MartinhoFernandes Yeah, I recognize that. One thing that I think detracts a bit from the 'corpus' is the fact that some of the content was written... a while ago now. Allthough, I'm subscribed to the RSS feed and it seems to be steadily updated
@R.MartinhoFernandes Actually, his writings in his blog cpptruths.com caught my interest. (Warning: here it is even more evident that his very old posts don't come near the quality of his more recent ones.)
The fact that he is 'quietly' working on a book on 'idiomatic' C++ made think about mentioning it in the lounge.
Perhaps we should find out whether he has an SO account
 
Ok, time for sleep. Have fun.
 
You too
@R.MartinhoFernandes still there? /cc @Shog9
> {PS- As the author of Meta-S (mentioned by several people above) -- I can most assuredly say that Thothic is neither defunct, nor is the software available for free. Perhaps I have worded this version of my response such that I do not get deleted or voted down to -3.} -- Quinn Tyler Jackson sept '11
Look who left a comment:
He seems to be referring to thothic.comIra Baxter Sep 9 '11 at 3:32
Interesting coincidence. I was searching for cpptruths... What dya know :)
 
I'm not sure what all that means. It could be the sleepiness.
 
@sehe that link appears broken
 
12:12 AM
@MooingDuck cpptruths.blogspot.com sorry
@R.MartinhoFernandes The link spammer helping the other link spammer by posting a link to his website for the other guy in a comment. Hmmm
 
Does anyone have any recommendations for good Sci-Fi shows?
 
As in, tele?
 
Yeah
 
@KianMayne BSG?
 
Also, I'm pretty spoilt when it comes to special effects and colourfulness
I'm not that into "We're in space. Look at space and aliens and robots"
 
12:17 AM
There's close to no space fights in BSG.
If you're ok with older stuff, I must recommend Babylon 5.
@KianMayne Does that mean "I don't like shows with aliens and robots"?
 
Maybe
I prefer near-future stuff
or something where humans get magic
 
Then I have no TV to recommend. I don't think there are any such good shows.
 
@R.MartinhoFernandes go to bed. I am going :)
18 mins ago, by R. Martinho Fernandes
Ok, time for sleep. Have fun.
 
I think that the possibility of encountering aliens within the next 100/200 years is very small
 
12:24 AM
Unless we somehow develop a way to get around the galaxy really quick
I don't know, I'm pretty bad at suspending disbelief
 
@sehe I'm still waiting for the people that will give me a ride home :(
@KianMayne Oh well, you'll have a hard time enjoying any kind of fiction then.
 
@R.MartinhoFernandes did you notice that (a) chat search isn't quite so slow anymore? (b) the 'username' box doesn't autocomplete your username anymore?
 
@sehe No, certainly not (b).
 
@KianMayne See this
As far as preference, does anyone of you use pseudo code or at least layout what the code should look like before starts programming?
 
12:26 AM
@R.MartinhoFernandes I'm having a suspicion that it is because of the dot in R.M. I'm also having a suspicion that the same breakage may be causing your gravatar to disappear from the 'Current Users' list on the right.
@MohamedAhmedNabil Yes. Mentally, mostly. I used to write it down. That was some while ago
 
@sehe Oh. I always search my username with "Martinho" (and then it's the last one).
 
Sweet, that at least works
 
I don't understand how using the equations Einstein developed we arrive at the speed of a massless particle being 0 * infinity * c^2 when there exists a known constant
 
@sehe Im fighting with myself, if either i should write it down or use my head :P xD
 
@KianMayne The speed of massless particle is c.
 
12:28 AM
@R.MartinhoFernandes If you search for MartinhoF it will be quicker (direct hit)
 
@sehe I found out a way to prevent errors in stoi without boost :D
 
@MohamedAhmedNabil write it down. If it becomes tedious/useless, you'll stop. No need to worry about such things. But: write it down first. No other way to check your thought processes
 
Ok, now I'm really going. Bye.
 
if (strcmp(s, "0") == 0) return stoi("0")
else if (strcmp(s, "1") == 0) return stoi("1")
else ...
@MohamedAhmedNabil ^ Like so?
@R.MartinhoFernandes Night
 
12:31 AM
@sehe differently
 
No kidding
I'm off to bed as well. See you tomorrow
 
@sehe a function checks if all the chars in the std::string are ints or not, If no it returns false and propmts the user again, if the string is ints only then it returns true, and then the call to stoi happens
 
@sehe ill send you the exact code tommorow and tell me what you think
 
@Cheersandhth.-Alf Heh. Hotmail uses dreamhost for server hosting?
 
12:36 AM
no, they just eat all mails from gmail, hotmail etc. all are swallowed. apparently.
 
12:50 AM
somedays I really hate my coworkers. Like when I realized our error code class is not copy constructable at all, nor assignable from const. So far as I can see, you can't do anything with a const error code object except destroy it.
 
1
Q: Strange git error

epic_syntaxWhat I'm trying to do is, to get local clone of dropbox project, make changes then push to this project. My PC Specs are: Os Win 8 X64, Git-1.7.11 I did following steps: Copied original project files into Dropbox folder Initialized git repo in project directory which located in local file sy...

 
1:06 AM
why is std::string always 32 bytes, no matter what is stored in it?
 
@epic_syntax hi back. drive by linking is not appreciated here. See the newbie-hints
@MohamedAhmedNabil Google or search Stack Overflow for "SSO". Also, strings are dynamically allocated from the heap (except for the small strings, hence SSO)
 
@MohamedAhmedNabil I'm sure that's been asked before on SO. Though I can't name the dupe off the top of my head.
 
Is the reason too advanced for a beginner to understand? Just so i dont waste my time :/
 
The string itself isn't stored in the std::string object itself.
It's stored on the heap.
When you do a sizeof() on an std::string object, you're really only getting the size of the meta-data of the string.
It follows the same reasoning that doing sizeof() on a char* only give you 4 or 8 bytes regardless of how large the string is.
 
@Mysticial It seems too complicated. I dont know what is a heap, dynamic memory, meta data
 
1:15 AM
963
Q: What and where are the stack and heap?

mattshaneProgramming language books usually explain that value types are created on the stack, and reference types are created on the heap, without really explaining what these two things are. With my only programming experience being in high level languages, I haven't read a clear explanation of this. ...

 
@Mysticial Ok thanks ill check it out :)
 
It might be a little too over-the-head though.
 
@Mysticial erm. depending on the compiler/architecture, maybe?
 
@sehe yeah
 
1:31 AM
@MohamedAhmedNabil While you're at, why don't you just write the whole damn thing yourself? See e.g. liveworkspace.org/code/2504670519f5563d82799f4479812833
 
@sehe What the hell is that :O
 
A contraption of my invention. Yes I'm bored.
@MohamedAhmedNabil Also, it is mainly a 'joke' to show you the futility of writing this stuff. I haven't even touched on different bases for numbers (hexadecimal?), floating points, thousands separators, infinities (pos/neg), NaN, etc. Seriously, what is wrong with standard library?
If you don't want boost (?!) you could trivially write lexical_cast yourself:
 
@sehe Ok ok, ill use boost alright.
 
template <typename T> T my_lexical_cast(std::string const& s)
{
    std::istringstream iss(s);
    T val;
    if (iss >> val)
        return val;
    else
        throw std::runtime_error("Unable to my_lexical_cast");
}
@MohamedAhmedNabil ^ see also updated demo at liveworkspace.org/code/770fb725263596c6865718e020823c8b
No rocket science, and you can have your cake and eat it. If you just wanted friendly names, see my inline functions stoi, stoui, stol etc. in the sample
 
2:09 AM
Is writing code while sleepy/sleep deprived , counter productive?
 
2:42 AM
Nah.
@Mysticial you got linked to by reddit again.
 
@MohamedAhmedNabil Yes, more error's and less code written
 
I write nice code while sleep deprived.
 
i don't i guess every one is different
 
3:11 AM
passing by reference in a function isn't working for me with a std::complex array

std::complex<double>A[n];
foo(std::complex<double>B&){
//use A here
}
foo(A);// error: in passing argument 1 of
foo(A*); //error: expected primary-expression before ‘,’ token if A is a pointer
 
@pyCthon Obvious alternative: use a vector instead of an array.
 
ah! thanks!
i was just thinking i can pass std::vector by reference
now here brings another problem? would that break this?

reinterpret_cast<fftw_complex*>(A)
yeah it does.. i guess a for loop to convert them?
 
3:35 AM
@pyCthon If your reinterpret_cast currently works, changing it to reinterpret_cast<fftw_complex*>(A.data()); should give essentially the same result.
 
@pyCthon On the off-chance you are currently starring those messages, consider that this feature is used to bring interesting messages to the attention of others. It's not meant as e.g. a way to personally bookmark messages.
No harm done but I'm removing them.
 
@LucDanton ah sorry now i know for next time
@JerryCoffin thank's it worked
 
@pyCthon Oh, cool.
 
4:13 AM
hello
i had a quick theoretical question.
 
Okay, so be quick about it.
 
i have a static lib where it is configured with the MFC with static lib option /MT. however, i am sharing it with someone who the asked me to instead use the
MFC with shared DLL /MD option. i did it without issues but i guess they still are having issues using this lib they asked for
i have used the lib without issues. but i am wondering other than the exact same copy of vs2008 version which should have all the
crt etc what else would they need?
 
I feel like this would have been better suited for SO.
Oh never mind.
 
@user245823 You might want to use Dependency Walker to find what else it depends on.
 
hmm ok. i will tell them to use that. when i was researching i came across this book chapter that was suggesting to not use mfc with shared dll when sharing lib because of issues but i guess they dont go into too many details about the kinds of issues per se.
 
4:22 AM
longest url I've seen in a while
 
So I somehow lost 8 reputation points between earlier and now, and I don't say how it happened looking at my profile. Any ideas?
 
sorry i should have used tinyurl
 
I lost 32 :P
It's the second time it has happened
 
@Rapptz Do you know how?
 
No idea.
 
4:24 AM
Hmmm
 
Did that do anything?
 
No.
 
@Rapptz Hardly ever does any more. Used to be your rep got out of sync with reality. Triggering a recalc almost always lowered it though -- most of what got "lost" was things that reduced it (e.g., deletion of a user who'd up-voted you).
 
@Rapptz any thoughts on that chapter? is it too old or does it apply here?
 
4:28 AM
@user245823 I didn't read the link due to lack of interest. Sorry.
 
that beat's getting randomly banned for posting a question that's popped up over 100 times on SO with upvotes but for different languages :p
 
@user245823 Looks to me like it probably applies as much as it ever did.
 
@JerryCoffin well i guess for now i will have to try to tell them to use the dependency walker. i don't want to end up integrating this static lib for them. i am afraid they going to try and force me to do it. need to find a way out where i dont have to...hahah
 
4:52 AM
fftw doesn't seem to like C++ std::complex nan
 
5:08 AM
Morning gents
 
5:49 AM
Mowning.
 
evening
 
evening :)
 
 
1 hour later…
sbi
7:09 AM
@pyCthon Please read the newbie hints, linked to from the right-hand panel. Among many other things, it explains whether/how to ask questions here, where to put, and how to format code. Thank you.
2 messages moved to bin
 
"Legitimate Rape" Pharmaceutical Ad http://post.ly/9AP4h
^ NSFW whouch
 
sbi
Thanks, @Tony!
 
<yawn> ohai
 
sbi
@JerryCoffin Indeed, the folks of both Dinkumware and EDG are very good examples of being active in the programming community in a way everybody likes. Over the last one or two decades, they provided a vast amount of great content, literally helping hundreds, if not thousands, of developers, and not annoying a single one with mentioning their business.
I should mention that to Ira, I am sure he knows those examples.
 
7:26 AM
Morning gents
 
sbi
@JerryCoffin FWIW, I looked it up yesterday, and the company claims to be founded in '95, so it likely isn't 20 years yet. But I hit Usenet in the mid-90s, and ISTR running into him quite soon. Interesting that you mention you complained to him about what he did in Usenet back them. This all confirms my suspicion that this isn't something he's new at, or that he has to get a feel for the medium first. He's just ignoring corrective shouts. Fortunately, SO has ways to deal with this.
 
@TonyTheLion Morning, Tony
 
Morning
What's up?
 
sbi
@sehe No, that's not it. He simply ignores the wishes of those who he pesters with his spam.
@TonyTheLion Comment suppressed.
Morning.
 
@TonyTheLion I need to take a dump, but the bathroom is occupied.
 
sbi
7:29 AM
@Chimera Several people.
 
@TonyTheLion Waiting for a programmer to finish a piece of a much larger and complicated program
 
sbi
@FredOverflow Huh? Weren't you living alone?
 
Sadly, so that I can assemble it into the program
 
@sbi I have been living with my roommate for two years now.
 
@sbi His bathroom check code is buggy.. he forgot to check first if occupant is himself
 
sbi
7:33 AM
@FredOverflow Ah. I had you pegged with having your own flat.
 
@sehe Who is? (The link is dead for me.)
 
good morning maties
 
@sbi Granted. The two are not mutually exclusive, by the way :)
 
@thecoshman Ahoy
 
sbi
@FredOverflow Google found this.
 
7:34 AM
@sehe The book is already 12 years old, what did you expect?
 
@FredOverflow Not all parts. As for the link, few messages down :)
7 hours ago, by sehe
@MooingDuck http://cpptruths.blogspot.com sorry
Good morning to everyone, by the way
 
@sbi Whoa, lots of template masturbation. I'd buy his book for sure.
4
 
man, work is 1 mile away and yet I'm taking a Taxi.
 
Respond to my trying to help yo by calling me Colin, and your email falls way off the radar
 
7:38 AM
@sbi That makes my eyes cross to read
All that just to be able to pass more than one multi-variable parameter
 
sbi
@TonyTheLion Feet acting up again?
@thecoshman Did you type this into the wrong window?
 
@sbi yep
 
all this headache in c++ and all we've managed to do is make a language that can be of almost any syntax we like
Some would say that's a bad thing, not a good thing
 
@sbi no...
 
sbi
@thecoshman Well, then. Would you mind to elaborate on that?
 
7:42 AM
I've been trying to work out what that means too, but I fail to parse it
 
@sbi ¬_¬ some one responded to my email helping them by calling me Colin... I suddenly have found a lot more important things to do
 
sbi
@thecoshman Erm, why would they call you Colin? And why does this offend you so much?
 
@FredOverflow That's what I thought. Based on the lastest crop of posts on his blog. I thought maybe we should invite him / team up with our own vague plans to write something worthwhile on modern C++
 
is your name colin? if so, that's a pretty odd reason to get offended... :)
if not, just come up with a name for him and have fun
 
sbi
@thecoshman, Athlone
Software Engineer for Ericssons
3.3k tweets, 70 followers, following 106 users
 
7:46 AM
ah
so, yeah. call him mohammed or something. :)
 
@sbi shows how much care I should put into responding promptly
 
sbi
Jerry Coffin has brought up an interesting comparison: In the C++ community, people like PJ Plauger, Pete Becker, Steve Adamczyk, John Spicer, Daveed Vandevoorde, Herb Sutter, and many others enjoy a great reputation in the C++ community — despite the fact that everybody around long enough knows who they work(ed) for. That's because they contributed vast amounts of knowledge to the community without mentioning their company/product all the time. It's their knowledge and contributions that advertises those companies. — sbi 4 mins ago
 
@sehe I'd imagine writing a book takes an enormous amount of time.
 
@sbi you still fighting this guy?
 
sbi
@thecoshman I want his spamming to end, and SO has the means to do this.
 
7:55 AM
@sbi make a new dummy site, fill it with lots of great UGC and get a community going, then push him over to it, leaving SO free of his crap. Perfect solution
 
@FredOverflow Just do what politicians do and hire someone to write your book for you, and give credit by putting their name in small print on the inside of the book.
 
sbi
@thecoshman What?
 
@sbi ¬_¬ what part confused you?
 
sbi
@thecoshman The part where you say "make a new dummy site, fill it with lots of great UGC and get a community going, then push him over to it, leaving SO free of his crap."
I have no idea what you are talking about. To begin with, what's "UGC"?
 
@sbi User Generated Content, of course
 
sbi
7:58 AM
@thecoshman Ah, now I understand. I'm afraid it wouldn't work, though. All you would do (and at great cost!) would be to offer him yet another medium to spam.
 
@sbi ah, that's the beauty of it, he THINKs he is spamming the world, but really, it's just a pretend site that no one really goes to, it's all fake traffic stats and what not
 
@FredOverflow I think the incremental approach works. As Herb Sutter, Scott Meyer have proven in the past, and Flaming Dangerzone and this wiki-book seem to reconfirm :)
 
sbi
@thecoshman Yeah. Well, why don't you start creating "a site with lots of great UGC", and I will make sure he hears about it as soon as you have acquire more traffic than SO?
 
@sehe First step 'awesome content', second 'awesome C++ content, third 'awesome C++ template content' etc.
 
The part where you actively court a spammer to more business.
@thecoshman Much easier to hell-ban :)
 
8:01 AM
@sbi you missed the part where I said 'fake traffic reports'
 
sbi
@thecoshman Oh, another hurdle, then. Well, I am sure you'll manage that as well.
 
gah, the story from tomorrow (?) about Ira Baxter... I mean, WTF? this guy has 33.2k
 
@sbi oh, I see the mistake you made here. Yeah, some ho you thought I had spare fucks to give out
 
@thecoshman You can submit pull-requests for daknok's cxx-book:
 
sbi
@BartekBanachewicz So what will "the story of tomorrow" have been? (In case it isn't clear: I am confused about what you are talking about.)
 
8:04 AM
I salvaged that from oblivion before he nuked his repo :)
@sbi The million dollar question
 
@sehe our very own daknok? the man who changes his avatar more often then his socks?
 
@BartekBanachewicz probably meant 'from this morning'/'from yesterday'
 
@sbi ah! so many time frames at once
 
@sbi I was parsing the future-perfect-in-the-past. Well, it was a mistype
 
@thecoshman You have clearly failed to follow the link
@thecoshman frames?
 
sbi
8:05 AM
@sehe Ah. So what did he do this morning/yesterday?
 
@sehe indeed I have
 
I just noticed you linking to the subject and dug in a bit
 
@sbi He read the backlog, and he called it a 'story'. He was probably just reading the starboard
 
@sehe I guess I miss read it
 
Keep guessing. You'll get there.
Somewhere
 
sbi
8:07 AM
 
@sehe for an early draft, faultless I must say
@sbi that garden tool, or the lady of night?
 
@sbi w
 
0
A: Buying the C++11 Standard (ISO/IEC 14882:2011) from an Authorized Body

FredOverflowYou can get the current draft for free, legally. It is even more up to date than the published standard :)

 
@JohannesSchaublitb good call there
 
sbi
8:09 AM
How in the world can the obtaining of a programming language standard be "off topic" in a programmer forum?! — sbi 13 secs ago
@thecoshman ??
 
Is Alf Swedish or Finish?
@sbi you seemed to care so much about it missing, I thought I would let you have it. better late then never
 
@sbi good point
 
sbi
@thecoshman Ah. Well, if you were trying to correct that typo, you should also, somehow, take back that superflous space.
@thecoshman Neither of the Alfs here is either Swedish or Finish.
 
@sbi erm... â–ˆ?
2
 
sbi
@thecoshman You got me there!
:)
 
8:13 AM
@sbi wait... there be Mr Here to help... who is the other one?
@sbi You're welcome :P
@sbi or are you getting pedantic over 'Swedish' and 'Finish'?
 
@thecoshman erm. no, just basic facts. Also: highly google/search-able
 
sbi
@thecoshman No, I am not. There's two regulars here with the name Alf that I know of, and neither of them is Swedish or Finish.
 
@thecoshman cheers, and hope that helps. "Here to help"? Man. I bet you don't mind listening to 64kbit mp3 - you wouldn't know the difference, right?
 
oh, Norwegian (Just noticed his mug shot on the side board thingy )
 
sbi
@jalfd, Copenhagen, Denmark
I write code! And stuff.
1.4k tweets, 130 followers, following 106 users
 
8:18 AM
@sbi silly you, that's Jalf, not Alf
and it is a most adorably bird like drawing
 
@thecoshman WUT? Who's silly, here?
Jun 17 at 20:44, by Cheers and hth. - Alf
https://maps.google.com/maps?daddr=68.656742,14.60887&hl=en&ll=68.660678,14.6047‌​78&spn=0.007246,0.073042&sll=68.652244,14.614391&sspn=0.031932,0.146084&mra=mift&‌​mrsp=1&sz=13&t=m&z=14&layer=c&cbll=68.660665,14.604774&panoid=mJrXvLypf-sRwQjUWbFVVw&cbp=11,357.51,,0,20.9
 
@sehe ¬_¬
 
Jun 20 at 10:36, by Radek Slupik
I thought Jalf was a snowman. :/
 
sbi
@sehe Oh, for some reason I thought he lives in Oslo.
 
@sbi :) You think they would have such repelling meals in Oslo?
 
8:22 AM
I wonder how he gets all the twitter links to people here -.^
 
Mmm. Mildly amused that (a) either he hotlinks all the food images from his FB page (b) he posts more non-food pics than I remembered: chat.stackoverflow.com/transcript/10?m=1431318#1431318
 
sbi
@BartekBanachewicz Have you tried Twitter for getting links to Twitter?
 
@BartekBanachewicz Who, me? I don't think it's twitter related. He posts food pics in chat, IIRC.
 
@sbi That might be worth looking at :P
 
At least, he used to. Perhaps, until I started nagging him objecting a bit, about that
 
sbi
8:25 AM
@sehe He didn't stop when I objected. Not for long, anyway.
 
Maybe it was our shear mass (as in we outnumber him now)? I think, only bacon is deemed acceptible now
Not for me, but hey, can't change the world
 
sbi
16 hours ago, by sbi
Oh, food porn again. Is Alf here?
 
Um, the current week was supposed to be bacon week, but the topic changed already
 
Yo fellows
 
@BartekBanachewicz Well, there's no contradiction. It can be bacon week. In fact, I think it was bacon week since, let's see, march this year
@Breezer braces for impact
 
sbi
8:36 AM
 
@TonyTheLion interestingly, I edited it after I apparently deleted it (but before it actually disappeared). I'm too fast.
Another thing Jeff mentioned is that he has called you out on Usenet several times years ago for dropping links to your company's website. So this is not something you are doing because you haven't adjusted to the medium you are using, or because you don't know better. You seem to have a long track record, across several mediums, of ignoring complaints about your behavior in favor of spamming the users with your advertisements. — sbi 49 mins ago
@sbi you think you can re-submit that ^ s/Jeff/Jerry/g? This might be confusing. if your attached to the star, I could restar it when you do
 
sbi
@sehe Oops. Done. I didn't see any stars, BTW.
 
Mornin'
@Mysticial here?
 
8:44 AM
@sbi Well, strangely I can't link to stars. But look for the one by 'you' linking to meta !
 
@LuchianGrigore Kinda, I just got in bed and heard the ping.
 
Another thing Jerry mentioned is that he has called you out on Usenet several times years ago for dropping links to your company's website. So this is not something you are doing because you haven't adjusted to the medium you are using, or because you don't know better. You seem to have a long track record, across several mediums, of ignoring complaints about your behavior in favor of spamming the users with your advertisements. — sbi 2 mins ago
2
 
@Mysticial so... you linked to one of my questions & I reached the rep cap @ 9 a.m.
just pointing that out... :|
 
@sbi Never mind, I dropped the old star.
 
sbi
@sehe Ah, you mean the star here in the chat, rather than an upvote on the comment. I linked to the first comment anyway, not the second.
 
8:46 AM
You should start an affiliate program
 
@LuchianGrigore It's your own fault. Don't write any linkable answers if you don't want to risk repcapping early :) It's what I do
@sbi Oh, my bad, didn't notice. Hope you don't mind trading the single star for a double on the other comment...?
 
I know, right...
 
@LuchianGrigore I linked it from that matrix question.
 
@Mysticial What is the matrix?
 
@Mysticial yeah I know.
 
8:48 AM
@FredOverflow What's wrong with you? First getting addicted to void ptrs and now learning Perl :) Personally I would learn Perl if I were an expert in C++, Scala, Java, C#, C, Ruby, Python, Factor, D, Go, Clojure, Haskell, F#, etc and if I read all proposals for further C++ standards.. but again there are also a lot of cool new algos to learn ;)
 
sbi
@sehe YOU STOLE MY STAR! I COULD HAVE HAD THREE STARS BY NOW!
3
 
being an expert and C++ is a contradiction by itself
 
sbi
I knew this would work.
 
@sbi I didn't star that.
 
sbi
@Neil I hadn't said, nor implied, you had.
 
8:50 AM
@LuchianGrigore holy crap, you got a lot of upvotes from that
 
@sbi I'm so sorry. It won't happen again. I promise
 
@sbi I said I didn't, damnit!
 
168
Q: Why is my program slow when looping over exactly 8192 elements?

user1615209Here is the extract from the program in question. The matrix img[][] has size SIZExSIZE, and is initialized at: img[j][i] = 2 * j + i Then, you make a matrix res[][], and each field in here is made to be the average of the 9 fields around it in the img matrix. The border is left at 0 for simpli...

 
Sorry, I'm feeling weird today, so forgive me if my responses are a little blue-green.
 
@Mysticial link spam!
 
8:52 AM
A link means a single element of a chain. It may also refer to: Education * Hands On Learning Australia, implements the HOL LiNK program (Literacy and Numeracy Knowledge) * The Links, mascot for Lincoln High School (Lincoln, Nebraska) Entertainment Music * Link (singer), an American R&B singer * Link (song), a single by the Japanese band L'Arc-en-Ciel * Links 2-3-4, a 2001 single by Rammstein * Link Wray, American rock and roll guitarist * WLNK (107. 9 the Link), a radio station in Charlotte, North Carolina Television and film * Link (film), a 1986 horror movie featuring a super-i...
Spam (its name a portmanteau of the words "Spiced" and "Ham") is a canned precooked meat product made by the Hormel Foods Corporation, first introduced in 1937. The labeled ingredients in the classic variety of Spam are chopped pork shoulder meat, with ham meat added, salt, water, modified potato starch as a binder, and sodium nitrite as a preservative. Spam's gelatinous glaze, or aspic, forms from the cooling of meat stock. The product has become part of many jokes and urban legends about mystery meat, which has made it part of pop culture and folklore. Through a Monty Python sketch, i...
 
sbi
@sehe Here you go. I linked spam for you.
 
@sbi As if... he couldn't work out what linked to it... Duh. He already knew @Mysticial linked to it?
 
@sehe oh yeah, like I'd really be fishing for upvotes when I'm 5x over the repcap.
 
@Mysticial fishing for votes
 
@sbi No... there are proper C++ experts:
10 hours ago, by sehe
OMG. This can't be true. Checkout this <puke>C++ guy</puke>'s site: http://torjo.com/
 
8:54 AM
It's what counts here - stackoverflow.com/tags/c++/topusers
 
@LuchianGrigore sigh...
 
:)
I caught on to your little scheme...
 
sbi
@sehe I am not clicking on that.
 
On average, 3.8 cans of Spam are consumed every second in the United States.
 
sbi
@LuchianGrigore What? Despite me not having answered much in two years you still haven't managed to kick me off the top twenty list?! Slackers and wimps, all of you!
 
8:57 AM
@sbi hey... I did my part... :P
 
@sbi Guilty as charged. Also, I'm completelt devoid of ambition and I hate popularity
 
sbi
@sehe Thank you, but I value my time too much.
@LuchianGrigore Always the excuse of the slothful ones.
 

« first day (690 days earlier)      last day (4251 days later) »