« first day (645 days earlier)      last day (4304 days later) » 

4:00 PM
@DeadMG No exception safety. No, it's not supposed to simply call new, it's supposed to recursively divide by 2 on bad_alloc and return the largest block the system can provide.
 
user784668
@Potatoswatter "derive"? On what planet a blob of bytes is a resizeable array?
 
@Fanael Um, you're the one who wants to implement a blob of bytes as a resizeable array. Don't pin it on me.
 
@Potatoswatter Strange, because the MSDN doc does not imply any such behaviour on bad_alloc.
 
@DeadMG You have an odd approach to interpreting the standard ;v)
 
@Potatoswatter I haven't. All I've done is read the MSDN page.
 
user784668
4:02 PM
@Potatoswatter ideone.com/rdJ7W
 
Hmm, the Standard doesn't specify that it must divide by 2 and retry, but that's the intent. Simply calling malloc or operator new(nothrow) is legal, though.
 
@DeadMG i have read msdn link's article .But,I can not understand argument which is passed in Pair and also which is assigned . pair<int *, ptrdiff_t> resultPair
 
then read it again, cause it's fairly clear
 
I am just asking that pair have dictionary type declaration ?
 
dictionary? wtf?
 
4:13 PM
My future favorite code review complaint: "We don't accept dictionary definitions."
 
DeadMG's coding style guide: No dictionary declarations.
soon I'll be as reviled as Google
 
[[MG:DICDEF]]
Do you actually own an MG?
 
no
quite illegal in my country of origin :P
 
Is your country of origin not also theirs?
I had a dead Austin-Healey at one point.
 
@Potatoswatter huh?
 
user784668
4:20 PM
@DeadMG He's talking about the automobile manufacturer.
 
@DeadMG MG made the quintessential British roadster. You're also English, no?
Is that not where your name came from?
 
no.
I was twelve and on a sugar high with some random friend, and I actually don't know where it came from
also, I thought you meant MG as in machine gun
 
I'm hardly aware that there's an MG Rover thing. I thought they went out of business long ago.
AFAIK, they were big before I was born, and not since then.
 
Yes, well the cars live on. Or die and continue to change ownership as empty hulks, as the case may be.
 
4:39 PM
Hey, I'm alive!
 
@EtiennedeMartel Another case of CAPTCHA euphoria?
Good night everybody!!
 
@Potatoswatter No. I went to a party yesterday. Drank my own volume in alcohol. Woke up this morning with a sore throat but no headache.
 
5:04 PM
Slow day today.
Nothing's happening.
 
I like their attitude: link. I told them how to find the answer, but apparently anything short of complete, working code is no good these days.
 
@RadekSlupik .NET code is never interpreted, it is always JITted.
@Cheersandhth.-Alf I have n3376 on my hard drive. Maybe there's even a newer version, gotta check WG21 site. Nope, n3376 seems to be the newest.
 
5:27 PM
@CatPlusPlus You could wrestle some bears.
 
5:45 PM
This summer's Steam sale was meh.
 
kinda agree, actually
I didn't get anythin
 
SPAZ and Bastion in final day, if anyone doesn't have it still.
 
picked up portal 2 and skyrim
 
I can't buy Skyrim on Steam, so fuck them I won't buy it.
 
I don't understand why anyone puts those restrictions on
 
6:02 PM
-6
Q: why does this code through a seg fault

user986437void f(int **m, int w, int h ) { int i,j; for(i=0;i < w ; i++) { for(j=0;j<h;j++) { printf("%5d", m[i][j]); // *( *(m + i) + j ) ?? } printf("\n"); } return; } this code is trying to print a 2d matrix but I've a seg fault.

Is that a new record for fastest downvoted post that's not spam?
-10 already
 
I was just thinking that.
lol someone upvoted
Okay, the downvoters have finished with the question, and are now attacking the answers.
 
lol
Come to think of it, I've never seen a question upvoted that fast - ever.
 
How? The upvotes came quite slowly.
 
-10 in 2 min. is probably a new record even if you include spam as well. Since spam tends to get spam-flagged and deleted before it gets to -10.
@chris Oh, I meant that I've never seen a question get 10 upvotes in the first 2 min. of posting.
 
Oh, I figured you typod.
 
6:13 PM
I didn't typo, I just commenting how people are much quicker to downvote than upvote.
Here we've just seen a question get -10 in < 2 min.
But I've never seen any question get +10 in < 2 min.
 
Yeah, too bad.
My poor question has been sitting one away from getting me my first nice question badge.
 
ftfy
 
@chris you repwhore^^
 
I must admit I was hoping it would get there after seeing it hit +9, then stop.
 
@chris It happens, I've had two answers that hung around 39 and 99 for weeks before it got that final vote.
 
6:22 PM
That would honestly make me a little bit mad getting that close.
 
I also have a LOT of answers at 9. But they are buried deep in my answers list. So nobody ever sees them.
Same applies to the majority of major users.
oh now, don't you go serially upvoted me... :)
Wow, that was the fastest Nice Answer badge script I've seen.
Under 10 seconds. lol
 
oh no, I just upvoted your java string answer because I think a lot of C/C++ devs stumble upon that when doing java for the first times(me included)
 
@bamboon link plz
 
10
A: String Comparison in Java...?

MysticialThis has to do with the fact that you cannot compare strings with == as well as compiler optimizations. == in Java only compares if the two sides refer to the exact same instance of the same object. It does not compare the content. To compare the actual content of the strings, you need to use s1...

 
@bamboon Oh right, because == is overloaded for std:string.
 
6:26 PM
> the exact same instance of the same object
@Mysticial ^ doesn't make sense, it should be "...of the same class"
 
Well, I didn't know that. I'll make sure to remember that next year.
 
@FredOverflow I don't agree, exact same instance would imply both.
Or rather, you can't have two objects of the exact instance, but are of different classes.
 
> the JVM decided to optimize the code so that s1 and s2 are the same object.
^ No, it's not an arbitrary decision; s1 == s2 is mandated by the Java language specification.
@Mysticial But there is no such thing as an instance of an object.
 
String pooling is mandated in Java?
Not just an optimization?
 
It is mandated. Let me give you a reference. Under 3.10.5 you will find:
> Moreover, a string literal always refers to the same instance of class String. This is because string literals - or, more generally, strings that are the values of constant expressions (§15.28) - are "interned" so as to share unique instances, using the method String.intern.
 
6:30 PM
I just deleted my repwhoring comment...
@FredOverflow Interesting. Should I add that to my answer?
 
@Mysticial Definitely yes. Here is the link for reference.
 
I would. It's different than C++.
 
edited
 
Do Java folks even know what a standard quote is? lol
 
One thing I (and probably everyone) should probably do is to go back and edit the titles of everything they've answers to something that's actually Googleable.
I've done that a few times already. I might do it here too.
@FredOverflow Yes, I've seen Jon Skeet pull that card every once in a while.
 
6:37 PM
Jon Skeet is mainly C# though, isn't he?
 
Yeah.
Jon Skeet should really write a book about C#. Oh, wait…
 
@FredOverflow I don't see a lot of C#. But I run into him a lot in Java, and he does pull out standard quotes.
 
lol
 
Not often though.
 
I've always wanted to learn C#, but I'm afraid it won't teach me too many new things if I already know C++ and Scala. Also, I use Linux at home.
@RadekSlupik He should write another book on C# then.
 
6:38 PM
is the most popular tag on Stack Overflow, but I must say I don't often see any C#-related questions either.
is also more popular than . :P
 
@RadekSlupik The questions you see on the homepage are heavily biased towards tags for which you have good answers for.
For me, even though I have all three: C, C++, Java on my favorites. I used to see almost exclusively C and C++ on the homepage.
 
How can a 184k user utter such nonsense?
 
@FredOverflow It's called "Fastest Repwhore Failure in the West".
 
Wow, that took me too long to figure out why I couldn't find the user.
 
@Mysticial My favorite tag is :)
 
6:42 PM
Just 4k more...
 
Indeed, I only browse C++ questions on stack overflow. I have just made "gimmeh-teh-code" my favorite tag, and the orange is gone. Thank you! — FredOverflow Dec 17 '10 at 19:08
 
@chris That answer was deleted.
 
People should really start using that tag.
Auto-close.
 
0
Q: What does delete command really do for memoty, for pointers in C++?

GreenI do not understand what delete really does when I want to free memory allocated with new. In C++ Premiere book is written: This removes the memory to which pointer points; it doesn’t remove the pointer itself. So as I understand delete must delete the value in the memory to which pinter ...

What's a good dupe-target?
I'm thinking of Eric Lippert's book in a hotel room, but that's for scope...
 
Hello everyone :)
 
6:47 PM
hi
 
hi
 
I can't really pull any dupes out that out of my head; nothing sticks out.
 
I finally got signal on my phone xD I'm out in the country haha.
 
0
Q: Read a chunk of a file using WINAPI's ReadFile or something similar?

iDomoWell, I'm working on a project, in which I'm handling potentially big files, that I can't load into ram all at once, so I'm going to treat them like a CHS hard drive, and grab the data one 0x800 byte chunk at a time. My problem is, I cannot find any functions in the WINAPI that allow me to read ...

Not a bad question.
But it's something that you can answer yourself in like 5 minutes with MSDN.
 
@Mysticial I was thinking the same thing.
@chris found one and voted to close
 
6:52 PM
oh cool
 
lol @ "access data from beyond the grave"
 
Wow, Mystical. I've never seen the hotel room one.
 
@chris It's only one of the most famous answers on SO ever :)
 
Someone dupe-voted the hotel-room answer. lol
@FredOverflow In another week or so, we'll know the long-term residual rate of the Branch Predictor question.
That'll determine whether or not it'll stay ahead of all the other 1k+ answers.
 
It really is an amazing answer.
 
6:58 PM
No, it's not an amazing answer.
Not enough jQuery.
 
-1 not enough jquery — Sam DeHaan 2 days ago
 
Okay, go spam "Not enough boost" comments to all the top answers of other languages.
 
-1 not enough boost. — R. Martinho Fernandes 2 days ago
 
@chris Not really.
it's a perfectly good answer, but there's nothing amazing about it whatsoever.
the only thing differentiating it from hundreds, if not thousands, of UB answers is that it was written by Eric Lippert and tweeted by Joel Spolsky.
 
I thought that was a really good analogy and explanation.
 
7:07 PM
it's perfectly good
but nothing more than that
UB is a simple thing to describe and explain
 
@DeadMG I think the analogy was very important. It's probably what made the difference between 500 votes and 2000 votes.
 
room topic changed to Lounge<C++>: Hello, this is a room. [c++] [c++11] [c++-faq] [fun]
 
there's nothing amazing about UB or his description or analogy of it.
 
If you can broaden the audience of a post, it makes a huge difference.
 
Someone famous tweeting it = instavotes.
 
7:08 PM
yeah, by being tweeted by Joel Spolsky and written by Eric Lippert.
 
It probably could've been one-liner and it would still be +2000.
 
beyond that, it's worthy of 10-20 upvotes and no more
 
@CatPlusPlus That I would doubt...
 
I'll try that when I'm famous.
 
Wait until 4chan gets involved by spam upvoting bad answers.
 
7:10 PM
Jon Skeet's been reddited a few times and he didn't get 1000+ votes in one day.
 
that's because Jon Skeet is Jon Skeet, not Eric Lippert, and reddit is not Joel Spolsky
 
Joel got Publicist for Jon Skeet's char[] password answer.
But it also didn't get 1000+ votes.
 
Skeet is still not Lippert.
 
@DeadMG That is true.
Also, Eric Lippert's hotel room answer was not only tweeted by Joel, but was also Reddited and on Hacker News.
 
The only one who's famous, is @JohannesSchaublitb.
 
7:14 PM
@Mysticial It's also printed on my bathroom wall, so I can read while taking a dump.
7
 
@CatPlusPlus Oh, there's a fun tag now? Haven't noticed.
 
> DO NOT USE - Removed as part of The great Stack Overflow tag/question cleanup of 2012.
Screw them, I say!
 
Good evening, sorry to interrupt, I'm kind of new on Stackoverflow, could I possibly ask one of you for help? (regarding a problem I have installing Eclipse in Ubuntu)
 
@CatPlusPlus REVOLUUUTION!
 
Or something.
 
7:15 PM
-2
A: Three egg pr0blem

assfuckerGet a cookbook, ya friggin' asshole.

going down
 
@Mysticial Well, "assfucker" is a very good name.
 
@CatPlusPlus Yeah it's more programmer related rather than Ubuntu installation related so that's why I came here
 
Hello, this is a room.
 
@EtiennedeMartel Sorry hadn't read that, sorry for disturbing
 
7:17 PM
Feel free to stay and chat.
 
@Oyibo It's a room for C++ and fun. Installing Eclipse on Ubuntu belongs to neither category.
 
@Mysticial I'm betting 4chan.
 
what's new in da lounge
 
@TonyTheLion The fun tag. And I'm still alive.
 
@CatPlusPlus Yeah sorry on AskUbuntu we don't have as many rooms so everything kind of falls in one category
 
7:18 PM
 
If this was a comment and you said it without the spam, this would have 8 upvotes by now probably. — chris 14 secs ago
 
oh fun tag
nice :)
 
This is the bestest room.
 
@Oyibo sudo apt-get install eclipse-platform
 
@EtiennedeMartel yeah sorry I assumed C++ programmers would be able to point me in the right direction
 
7:18 PM
I'm also tempted to upvote that guy.
 
It still doesn't have 6 spam flags yet?
 
LOL and someone had to upvote it
 
I'm so non mainstream.
 
@Oyibo We can point (uniquely or shared) you in the right direction, but you didn't even ask a question yet.
 
@chris Of course, by our very own @CatPlusPlus, resident douchebucket.
 
7:20 PM
@FredOverflow I've got Eclipse installed, just having an issue once it starts running I have an exception I don't understand, is it ok for me to link my question here?
 
How long before he comes back?
 
Awwww, my comment didn't get through.
> +1 please sprinkle us with more wisdom from your mighty brain.
 
@Oyibo Is it related to Java?
 
@Oyibo software center version or tarball install?
 
Also, I want negative rep.
 
7:21 PM
Software center
 
@Oyibo How old is the question?
 
@KillianDS ^
 
SO, implement negative rep.
I want to negrep people.
It'll be glorious.
 
@Oyibo just download the one from eclipse.org and use that one, I had nothing than problems with the prepackaged one (gtg now).
 
7:21 PM
@CatPlusPlus negrep? black rep? ;)
@RadekSlupik You should also make his profile views negative ;)
 
@RadekSlupik Your Paint skills are truly amazing.
 
@FredOverflow not very, but been stuck with it for a while, I'll just try what @KillianDS suggested and see if it helps, thanks anyways
 
@CatPlusPlus Web Inspector skills.*
 
Have a nice evening :)
 
Später.
 
7:23 PM
 
Oh, right, you're using Safari, the IE of Macland.
 
Answer's been nuked, but it still has that last modified thing.
 
Chrome has Web Inspector, too. I could have used that as well.
 
@Mysticial Cachefucker.
 
7:23 PM
@Oyibo It seems you didn't save your file. What happens if you do?
 
Also, how does 22k rep user misspell "problem" as "pr0blem".
 
@CatPlusPlus Word filter.
 
Maybe he C/P'd it from somewhere else?
 
@Mysticial Geez.
 
"problem" is banned from titles
 
7:25 PM
Really? So I cannot ask about "The 8 queens problem"? How stupid is that?
 
Not at all stupid.
 
SO quality assurance.
The best of the best.
 
@FredOverflow There was a proposal to lift the restriction for high-rep users. It got .
 
Every proposal gets .
 
Just say "challenge" instead of "problem". Challenge solved!
 
7:27 PM
Not true.
Some proposals just get ignored.
 
not any better than status-declined
basically, so meta only approves what fits in their agenda?
not what the community wants...
 
@TonyTheLion Both actually.
 
oh
whens that rare occasion when something fits in their agenda AND is wanted by the community?
 
There are some things that once you have insider information, you realize that you really can't just listen to the community for everything.
 
7:31 PM
that's true
 
For example: That regex question.
Why has it been locked for soo damn long.
 
They implement their agenda regardless of whether community wants it or not.
 
had an awesome answer
 
They're excuse is because "it keeps getting defaced".
Well, that's actually not true. It only got defaced twice.
 
well, at least they haven't deleted it
 
7:31 PM
What's my take on it?
 
I want them to focus on chat as a community building tool dammit.
 
Run-away voting for what is not exactly the kind of post they want as #1.
 
I think the chat is considered a side menu to the main SO menu :P
I haven't written any code in a while
 
I've started implementing silly turn-based strategy in Haskell.
Well, reimplementing an old silly turn-based strategy.
 
@CatPlusPlus +1
 
7:35 PM
why in Haskell?
for giggles
 
I'm too lazy to make an UI, so it'll be a single-player MUD strategy.
 
because of the boobs operator
 
ah boobs
 
@CatPlusPlus making UIs sucks
 
7:35 PM
@TonyTheLion Because I don't want to deal with C++ tools, and I don't feel like writing Python.
 
oh I see
 
Besides, Haskell is better anyway.
I totally implemented MonadLog today.
 
because monads.
 
@CatPlusPlus That's kinda like saying, "I wanna have sex, but I don't wanna take my clothes off."
 
hahah
 
7:37 PM
@CatPlusPlus didyou put it on github?
 
I don't really know what's sex in your example.
C++ is all template masturbation.
 
Oh cool, only 6 more months until the 4th edition of Stroustrup's TC++PL.
 
if you want it to be, you could use C++ without template masturbation
 
Also Haskell is better than sex.
 
7:37 PM
Should I sell the 3rd edition or keep it for its historic value? :)
 
Historic value, might be worth something someday :P
 
@CatPlusPlus When was the last time you programmed in Haskell?
 
Shush.
 
not sure that's something to ask on a chat room
 
@TonyTheLion I have the ARM for its historic value, but I think the ARM is also included in the 2nd edition of TC++PL which I've thought about buying for its historic value.
 
7:39 PM
wow, you should be a historian and not a programmer
 
Every day is Haskell day.
 
Well, being interested in programming languages and their evolution somewhat implies being interested in history, doesn't it?
 
Who cares about sex.
 
would you take a Haskell job?
 
@CatPlusPlus I don't know, your balls maybe? :)
 
7:40 PM
@FredOverflow yes
 
Nobody would give me a Haskell job, I'm too bad at it. :(
 
I'm even worse at it
 
But sure, why not?
 
I still don't understand monads :(
 
I tried to grasp the State monad yesterday and I realized I'm such a Haskell noob, none of it made any sense to me at first glance.
 
7:40 PM
It's infinitely better than anything else.
 
so on the suck scale, where is it, when 10 is the ultimate of all suckage?
 
What's hard about State?
 
everything, when you don't understand monads
 
@CatPlusPlus What are some things you don't like about Haskell?
 
@TonyTheLion -infinity.
 
7:41 PM
oh wow
 
@FredOverflow I don't know, not much. Lack of bindings to some things, maybe.
Unlensed records, too.
 
@CatPlusPlus newtype State s a = State { runState :: s -> (a, s) } is just gibberish to me.
 
I was working around something not too long ago, but I don't remember what it was.
 
@CatPlusPlus I find some names confusing, such as return. And I would have liked : and :: to have opposite meanings, like in Scala.
 
@FredOverflow A type of kind * -> * -> *, where s is a state and a is the result of computation. It has one data constructor, which is a function from state to tuple of result and new state.
I remember when you knew more about Haskell than me. You lazy slob.
 
7:45 PM
lol
 
@FredOverflow Yeah, return is confusing, but you can get used to it.
: and :: is not a thing I notice. It's really not a big deal.
Just a different syntax.
As for return, you can always do unit = return and unconfuse it.
 
Normally, when I see code for the first time, I have some intuition about what it roughly does. Not so with most monads, even the trivial stuff. It's simply beyond me at this point of my Haskell "career".
 
It clicked for me one day.
 
I understand Maybe a and [a] and that's about it for Monads.
 
List monad is not something I've delved into, TBH.
State is easy, it's just threading of some state type around.
 
7:48 PM
return just wraps a value in a singleton list, and >>= is concatMap, iirc.
@CatPlusPlus But it looks so strange! Fortunately, I have found a decent tutorial that I will read someday :)
 
let state0 = initial
let (result1, state1) = f state0 ...
let (result2, state2) = f state1 ...
Monad just hides intermediate states behind >>=.
 
What happens to result1?
 
Whatever you want.
In the monad it's something like this:
runState initial $ do
    result1 <- f ...
    result2 <- f ...
 
Ah, so it's available for later use. So the state monad just threads the state through a chain of computations? Sounds simple conceptionally, but the syntax looks so confusing!
 
Threads, and lets you access and update it.
 
7:52 PM
runState initial $ do is an example of the syntax I find confusing.
 
outer = runState initial inner
inner = do
   ...
do is sort of like lambda.
 
runstate initial is a pair (a, s), right? What does it mean if you apply inner to it?
 
runState is a record accessor: State s a -> s -> (a, s)
I might have borked the syntax somewhere.
 
Okay so runState initial is of type s -> (a, s), and we apply that to... the result of a do-block? What is the result of this do-block, a State again?
 
Ah, I think I just flipped the arguments.
 
7:59 PM
I would love to take a break from the real world and learn Haskell in depth for at least one year. Maybe I'll do that when my contract at the University ends :)
 

« first day (645 days earlier)      last day (4304 days later) »