« first day (206 days earlier)      last day (4742 days later) » 

3:10 PM
interestingly, this behavior of msvc isn't compatible with c99; was c90 like that too, or did it leave this as implementation-defined?
 
I love how it "rounds" the value to produce that obscenity of a result. Why not just print NaN?
 
@FredNurk There is no mention of NaN in C90. The description of fprintf implies that FP numbers should be formatted as [-]ddd.ddde(+|-)dd with the number of digit varying depending on the numbers.
 
@MartinhoFernandes that's more or less exactly what c99 requires
@MartinhoFernandes msvc has a highly optimized, hand-tuned printf, treating #INF and #QNAN as digits strings allows it to avoid branching in the part of the code handling places after the decimal; combining that it was written for c90 and what aprogrammer said, this falls within that spec
last I looked, the precision handling is done on the character string after conversion, so it finds the decimal, checks for \0 too soon and zero-fills past, otherwise checks the next char (e.g. A in QNAN) and since that's >= '5', increments the N
 
Ok, you can't argue against standard conformance. But it's not conformant if the d's in the format are supposed to be digits.
(And I think 1/0 is actually INF in IEEE754, not NaN).
 
3:23 PM
@MartinhoFernandes: anything the C standard doesn't define is UB. not defining nan would make anything using it, including output, be UB
(C99 explicitly states that first sentence, I believe C90 makes it clear too)
 
So, 1/0 is UB?
 
I don't have C90 here to check
 
Xeo
I wonder.. should we have a list of books a c++ coder should avoid?
 
@Xeo That list does already exist …
 
@Xeo definitely, though it would get pretty argumentative to make such a list
 
3:25 PM
no, better to highlight exemplary books and list all good books
 
Xeo
@KonradRudolph Hm, seems it wasn't updated in quite some time
 
I think you should avoid anything that has a number of days (or worse hours) in the cover.
 
@MartinhoFernandes I concur
 
3:29 PM
@MartinhoFernandes How to crash fast!!
 
C++ for Dummies is, by definition, for dummies
 
@FredNurk for dumbies right?
 
> You'll discover how to: (...) Write and use a function, store sequences in arrays, and declare and use pointer variables
Don't.
Wow, it's the same author of the crash course...
 
3:33 PM
@TonyTheTiger i thought that folks already gave insights
 
Xeo
Star this message, if you think we should have a(n up-to-date) list of books a C++ programmer should absolutely avoid.
2
Star this message, if you think we don't need such a list and the Definite C++ book guide and list is sufficient.
7
 
if you specialize the member, it will instantiate the class automatically
 
Xeo
so, lets have a fight! :D
 
not this again...
 
if that happens, you cannot specialize the class anymore
 
3:34 PM
@JohannesSchaublitb I wanted YOUR insights, unless they're the same
 
Xeo
@FredNurk Well, we cannot have real polls, so this will have to suffice
 
the answers aren't very clear it seems. but I think i agree with them
 
@JohannesSchaublitb your inner repwhore must want to gain rep and answer it clearly... lol
 
it doesn't need to have that "main" function at all, for example
the mere act of specializing the member will make it happen
 
@JohannesSchaublitb huh?
 
3:36 PM
um no. i got enough rep. time for pension
 
@JohannesSchaublitb lol
 
Hello folks :)
 
Xeo
Hm, I just noticed, but making such a "poll" really helps getting this badge, lol
 
Star this message if you want me to get the badge.
Star this one if you don't want me to get the badge.
 
(removed)
 
3:49 PM
I think I'll flag.
 
@MartinhoFernandes lulz
 
@MartinhoFernandes, there is also a badge for flags?
 
Is there a badge for flagging? :)
 
Star this message if you don't want any more starring polls
Star this message if you do want more starring polls
 
@Xeo Just noticed that you’re studying in Berlin … care to come to the next meetup?
 
3:50 PM
Don't star this message if you don't want any more starring polls.
 
Don't star this message if you do want more starring polls.
 
Lots of C++ guys gonna be there ;)
 
> A guy shows up late for work. The boss yells "You should have been here at 8:30!" he replies: "Why? What happened at 8:30?"
Star? :)
 
Xeo
@KonradRudolph I intend to
 
3:55 PM
nice
 
Xeo
I even intended to come to the last one, but I couldn't make it
 
 
1 hour later…
Als
5:11 PM
hu hu....Star wars again.....
 
@Als what, are the stars disappearing again?
 
Als
@RonaldLandheerCieslak: no not for me....But seems the star wars is on again...I was off travelling home and ahh the pedants flood the room with star wars again!
such a menace!
Administering a chat room on SO requires some minimum rep?
 
> These users may administer this room. Certain actions (like making a room read-only) have additional reputation requirements.
Don't know how much.
 
Als
@MartinhoFernandes: How much is enough? seems you have more than enough ;)
 
I'm not an owner, though.
 
Als
5:21 PM
Yeah i figured that, since your name doesn't appear there....so...
 
6:01 PM
What's a good strategy for finding memory leaks using valgrind? I have a lot of "definitely lost", but no invalid writes..
I'm not sure if I get this correct, the lost memory do not have any influence of the program behavior, but illegal writes may have.
 
sbi
2 hours ago, by Xeo
Star this message, if you think we should have a(n up-to-date) list of books a C++ programmer should absolutely avoid.
@Xeo For that we wouldn't need a list, but a dedicated database and a host of typing monkeys to enter them all. Really, there's thousands of C++ books out there, and about 80% of them are damagingly bad, 15% are mere crap, and another 4.9% readable, but not worth wasting your time on them. That leaves a few dozen books to be recommended, which is exactly what the existing list is all about.
When you have to sift a mountain to find the few nuggets in there, who wants to know about each pebble of mine spoils you put aside?
3 hours ago, by Martinho Fernandes
The act of isolating the problem into a simple example that reproduces it tends to keep my question asking rate on SO very low. It's a great debugging technique.
@MartinhoFernandes I just had to pin that. I wish they would put that into SO's FAQ, and require everyone about to post their first question to write an essay on it which needs to show that they have fully understood its meaning.
Here's my entry for the Funny-O'Reilly books: oreilly.com/catalog/9781565923560
Oops. @Marc, what are you doing here? Did you have one too many at the tavern and got lost on your way home??
 
Xeo
6:34 PM
@sbi "Error Messages That Communicate" - The only thing they communicate to me is, that the one who did them must be quite the sadist with too much free time and most importantly, too much free hand.
 
sbi
@Xeo Well, I suppose it's a joke, you know?
 
Xeo
Oh well, I think I'll be going now, starting tomorrow there are the LinuxDays here in berlin, so I'm gonna lurk there for a bit
I also hit the rep cap today, so there's nothing more for me to do today. Good night everyone.
 
sbi
@Xeo Good night!
 
Xeo
6:58 PM
Oh yeah, @sbi, do you have a profile at Careers.SE ?
 
sbi
@Xeo Yeah, that's right!I had completely forgotten about it. @Tony invited me the other day.
 
hi all :)
@sbi hi
 
sbi
@echo9 Hi, @ech... Oh, we already played that yesterday.
 
7:13 PM
:D yea..yea... :P
well here's one for everybody now..
0
Q: Setting up a test environment for real-time testing of a high-speed mass data transfer protocol

echo9Hi guys..! ..and gals too! :) I have been working on a High speed mass data transfer protocol, and I am now ready for testing it in a live environment. Programmed in C++ natively for Linux. Although I would like to first test it in a LAN environment but I am confused as to how should I set up a...

any takers.. ?
 
sbi
@echo9 Unlikely, in this room.
 
hmm :( thats what I din't expected :(
well how about you then..?
@sbi hmmmm.. ?
 
sbi
@echo9 Well, if I knew about networking, would I considered it unlikely that someone here knows about it??
 
@sbi nice pointer../
@sbi I think I might ask you query regarding Graph plotting in ~nux
 
sbi
@echo9 I'm not really a graphics programmer. (Now that can be read in strange ways, I guess.)
 
7:20 PM
@sbi actually I have been working on this protocol thingy for quite some time.. did my "homework" properly... but until now I was unable to produce a statistics/performance graph for it in real-time
 
sbi
Well, actually, this is an euphemism. I don't know much about graphics and I don't care either. You might catch me with dirty hands elbow-deep in the engine, but not polishing the paint.
 
@sbi deep in the engine..?
 
sbi
@echo9 my dirty hands, not me! :)
 
@sbi does that mean.. hardcore core C++ programming
@sbi :D
 
@Nils "definitely lost" seems a good definition of memory leaks.
 
sbi
7:24 PM
@echo9 3D, video, 2D graphics: No. GUI: It's a job, but not one I'd stick with for long. Algorithms: Interesting. Library design: What do I have to pay you for being allowed to do this job?
 
@sbi sorry g2g now..
c ya' around~
chao../
 
7:57 PM
room topic changed to Lounge<C++>: If you timidly approach C++ as just a better C or as an object-oriented language, you are going to miss the point.
(That's a quote from Stroustrup's FAQ on C++0x.)
 
sbi
@FredOverflow What took you so long? :)
 
@sbi Housekeeping and various other stuff ;-)
 
sbi
@FredOverflow Oh c'mon! You were chatting away half the day here!
 
Only when my vacuum cleaner got too hot!
 
8:21 PM
evening all
anybody still at the keyboard?
 
hmm
"You have been invited to join a chat"
i don't know what that message in the inbox means
 
@JohannesSchaublitb ask Jeff
 
i clicked it and it directed me to here ><
 
@JohannesSchaublitb lulz :P
what would you come do here?
 
sbi
@TonyTheTiger I am sporadically. I need to do a few things in between, though.
 
8:24 PM
i would come here to troll
 
sbi
@JohannesSchaublitb I think in any user's profile you can click "Invite this user to <combobox_of_chatrooms>" if that user currently isn't in that chat room.
 
I'm here, but my Internet line was down almost all day, and I need to catch up with everything.
 
sbi
@JohannesSchaublitb Yeah, that's how we know you... :)
@CatPlusPlus IME, trying to catch up with everything usually takes longer than the world needs to add to everything, so it's futile to attempt that.
 
@sbi he's the only one allowed to troll in here :P
 
@sbi What I said about withdrawal. Need. To. Read. Read. Read. Read.
 
sbi
8:27 PM
@TonyTheTiger Now that's a policy I totally disagree with!
 
I quit trying to catch up, I just start again
 
not true :(
 
@sbi why?
 
everyone is allowed to troll here except me, it feels :(
you guys always blame me if I try
 
sbi
@TonyTheTiger Why I disagree with @Johannes being allowd to troll?
 
8:28 PM
@TonyTheTiger sbi has troll feelings too!
 
sbi
@JohannesSchaublitb You're trolling.
 
@JohannesSchaublitb you're just the one that's not human, so our mere human conversations only seem like trolls to you
 
totally rolling
 
@sbi hahah :P
 
sbi
@CatPlusPlus Quit reading and start typing, I need to do something here...
 
8:29 PM
another troll just arrived :P
 
sbi
Oh, see, al @fredo just appeared!
 
watching Herb video tonight :P
 
Also catching up is nonblocking, so I can catch up while world is adding.
 
herb doing what?
 
I got invited to a Haskell chatroom a couple of days ago.
But I thought:
 
8:29 PM
@JohannesSchaublitb talking about C++0x(11)
 
What's the point of a Haskell chatroom? I can just discuss Haskell in the C++ chatroom!
@TonyTheTiger Funny, I'm watching him right now, video is at 2:30
 
@FredOverflow yea you get away with that, but any newbie comes in here asks about it and he gets ripped to shreds.... :P
 
@TonyTheTiger when where?
 
@FredOverflow is it good?
@JohannesSchaublitb go back to trolling
 
sbi
@TonyTheTiger Actually, the one who came here yesterday merely got ignored.
 
8:31 PM
@TonyTheTiger In Haskell, the term is folded to shreds ;-)
 
sbi
@TonyTheTiger He already is.
 
@sbi same difference
 
@TonyTheTiger Have watched it twice already, today is the third time.
 
@FredOverflow new terminology I see :P
 
@TonyTheTiger I just like to listen to Herb talking about C++.
 
8:31 PM
@FredOverflow is it that addictive...
 
sbi
@FredOverflow Hanging on his lips, trying to memorize his every word?
 
@TonyTheTiger Well, with that many dangerous animals, it's no wonder.
 
@FredOverflow me too...
 
@sbi Well, I'm not a fanboy, if that's what you're implying...
Can I disable the beeping when someone talks to me here? Nevermind, found it.
 
@CatPlusPlus true, I mostly growl and you can do the scratching, not sure what @sbi would do, but @JohannesSchaublitb probably troll them out of existence. lol
@FredOverflow switch of the sound
 
sbi
8:33 PM
@FredOverflow FF has a link on the right pane, top left.
 
@TonyTheTiger I can't, that would mute Herb!
 
oh yea, but then you can't hear Herb :(
 
I have NoScript, and I always forget this chat has that Flash thingy to make sounds.
 
sbi
@FredOverflow You'd call this implying? Really, is there any other way to interpret the facts you just volunteered?
@CatPlusPlus Ah, that's why I never hear the sound in FF?
 
> Hey look, we have a shiny new hammer. Everything starts to look like a nail!
 
8:34 PM
@sbi Well, if you use NoScript and block all plugins on all pages by default, then probably. :P
 
sbi
@CatPlusPlus But I have everything enabled in NS on this site. Mhmm.
 
@FredOverflow yes... :P that is C++ for ya
 
sbi
@FredOverflow When C++ is your hammer, every thumb looks like a nail.
 
I like nails
 
Nailed it.
 
sbi
8:36 PM
@CatPlusPlus Your thumb?
 
oh my vid is almost downloaded, unlike yesterday
@sbi no the hammer
yes time to move so I can watch vids... woot
 
sbi
@TonyTheTiger What? How do you nail a hammer??
@TonyTheTiger You need a new apartment to watch videos?
 
@sbi just like you nail everything else...
@sbi you know way too much about my existence... lol
 
sbi
@TonyTheTiger But I nail everything else using said hammer!
 
@sbi You need a metahammer.
2
 
sbi
8:38 PM
@TonyTheTiger Now you're just too confusing. Have you been drinking tonight??
 
@sbi One hammer to nail them all?
 
sbi
@CatPlusPlus No thanks, I'm fed up with meta.
2
 
@sbi the room I am in is next to sb's bedroom and I have no more earphones, so I have to use speakers, that make too much noise, so I move to the dining room
@sbi coke yes
 
sbi
@TonyTheTiger Who's "sb"?
 
@sbi sb = somebody
 
sbi
8:39 PM
@TonyTheTiger Wow! He's my next-door neighbor, too!
 
@sbi I was referring to the fact you said appartment, and I happen to live in one
 
I like to hang out with nobody. Nobody's perfect.
2
 
@sbi lulz
@CatPlusPlus yea me too, he writes very good C++ code
 
sbi
@TonyTheTiger Well, if coke is the reason for your confusing attitude tonight, you must have had a trailer full of that stuff.
 
lots of nullptr
@sbi how am I confusing?
 
sbi
8:43 PM
@TonyTheTiger Well, for starters, you need to move to watch a video. And then, when I have to ask because this just doesn't make any sense, you tell me I know too much about you. (So why was I just asking?) Also, you drive nails into your hammer, instead of with it. Annd that's just the tip of the iceberg.
 
@sbi wow! Not sure how I managed to confuse you that much
is this star wars?
 
sbi
@TonyTheTiger No. I can't hear the buzzing sound of light sabers, so it can't be.
 
@sbi lol
 
What strange input to I have to type here again to make crazy stuff fly around the screen?
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
 
you have to try to write a regex that would parse HTML
 
8:50 PM
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
Ah, only works in Opera.
 
worked in Chrome for me
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
 
sbi
4351
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
@DeadMG You need the backticks around that. At least I think so.
 
no, you don't, I can assure you
 
Xeo
Ah, finally at home and back online... From my iTouch at least
 
8:51 PM
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
@DeadMG Right, what was I thinking.
 
sbi
@FredOverflow How should we know?
 
Back to Firefox.
 
Xeo
@sbi or @Tony, mind inviting me to careers too? Their reviewing takes quite some time.
 
@TonyTheTiger: How far are you into the Herb video?
 
you know, it's strange not having a burning desire for fast food anymore
 
8:53 PM
@FredOverflow 11 mins
 
@TonyTheTiger In that case, I have a head start of 15 mins.
 
@Xeo I'll leave it up to @sbi this time... I've done my invite.
@FredOverflow ugh
 
sbi
@Xeo I can try to do that.
 
> Even Jon Skeet cannot parse HTML using regular expressions.
LOL
 
Woah, maybe I'll reach 10k rep before the end of the year. Incredible.
 
8:59 PM
> Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp.
ROFL
 
Xeo
@sbi Thanks. I really need a good CV, never came around to making one... Especially need one since I'll be finished with the GA in ~3 month and I have yet to decide where I want to work
 

« first day (206 days earlier)      last day (4742 days later) »