« first day (726 days earlier)      last day (4239 days later) » 

8:00 PM
stringstream ss;
ss << "   HELLO WORLD   ";
ss >> "HELLO WORLD"; //successful
 
sbi
@MooingDuck Ah, now I see. Lemme get that straight: That is only there in case the ones taking literals would snatch away legit invocations of >>, so it can redirect those to its respective implementations?
 
@sbi right
actually, the one for char definitely looks recursive. That's a bug I think.
 
sbi
@MooingDuck What about is >> std::ws?
 
@sbi oh, I didn't realize that's how std::ws worked. Yeah, that would have been a better idea.
 
sbi
Still, I don't think that you should be reading binary. For example, on Windows, the external/internal conversion of IO streams converts between CRLF/CR. Your code using read() will forgo that, and fail to work with a string containing a newline.
 
8:03 PM
@sbi hadn't considered newlines, you're right.
 
sbi
@MooingDuck Well, newlines is just the only example I can think of. That doesn't mean there aren't any other problems, though. I think the read() and write() streams come with are basically the same as if you read from, or wrote to, the stream buffer directly. Using them is usually wrong, because if you want to deal with binary, why use streams at all?.
 
Hello
What did I miss? Did the puppy get the job?
 
@R.MartinhoFernandes Dunno.
 
sbi
@R.MartinhoFernandes Didn't he say he has to work for nuffink for a couple of days?
 
Dunno, I haven't heard from him since he left London.
 
sbi
8:07 PM
Also, @Moo, I cannot fathom what the last one is for. And how it works, FTM. Doesn't that just call itself?
 
And I wasn't around the chat today. I was in bed with a cold.
 
@sbi sure looks like it does. I rather think that last one doesn't work.
 
sbi
@R.MartinhoFernandes He was online here with a different account. Search for "sock puppy".
@MooingDuck What was it supposed to do anyway?
 
@sbi I'm testing, I don't recall
 
sbi
Haha.
 
8:08 PM
when I comment it out, all tests still pass :(
 
sbi
Anyway, that's a neat idea and it really deserves that 10th upvote. Anybody?
 
I didn't like it back then, and I still don't like it.
 
It looks like that function did nothing and was never called.
 
sbi
@R.MartinhoFernandes That's probably because you haven't written much parser code that needs to check for parens and such.
@MooingDuck But that's a catch-all, and should be called for everything that isn't calling any of the other ones!
 
@sbi usually you want things like that to be optional, which this doesn't handle.
@sbi which would be only things with no other operator>> overloaded. It would cause those to compile, and be infinite loops. That's bad.
 
sbi
8:12 PM
@MooingDuck You mean the fact that this is invoked for erroneous code once you include it is bad?
 
sbi
@MooingDuck Well, now I am feeling a lot less bad for not having understood this.
 
sbi
@R.MartinhoFernandes Oops. Yeah >> for strings is a tricky beast.
 
@MooingDuck So what? It wasn't supposed to fail. It was supposed to put "foo" in s.
 
sbi
8:15 PM
@MooingDuck Yeah, your operators realized they failed. But you'd prefer them to not to fail, right?
 
operator>> is not suitable for parsing.
 
@R.MartinhoFernandes oh, that's your point. Yeah, it's a good point. Regex.
 
sbi
@R.MartinhoFernandes But then, is there more to this than just inputting of strings being surprising? Because, if not, then I think I could live with that.
 
boost.spirit. it's fast in parsing, but compiles for minutes.
 
sbi
@R.MartinhoFernandes Actually, I have written inputters that would read anything (char by char) up to one out of a set of delimiters.
@Abyx Yeah, right. Bring in the heavy artillery, probably slowing down compilation by a factor of 10, for reading a float enclosed by delimiters.
@R.MartinhoFernandes Now. Is there more to your critique?
Hey, that got you a badge, @Moo!
 
8:19 PM
@sbi ooh, shiny. I like shiny things.
 
@sbi Not really. I don't like it because it falls short with anything non-trivial. And it looks weird.
 
@R.MartinhoFernandes I'm sure it falls short with a lot of trivial stuff too. (newlines for instance)
 
But I've never done any parsing in C++, I think.
Oh wait, I did write a parser for bencoded data.
 
sbi
@R.MartinhoFernandes What do you mean "falls short with anything non-trivial"?
And "looks weird" is no criterion for me. You should know what we thought about the STL, when it was forced upon us back then.
@MooingDuck But that should be fixable.
 
user1182183
8:22 PM
kinda wondering if there's any program which determines the weirdness of my code, the faultness of my code, the supidity of my code and the genius of my code..
 
user1182183
(in a scale from 1 to 10 each)
 
@sbi Basically what it comes down to is I didn't know how to handle strings with spaces in them, so I ignore preceeding spaces, in the stream, but not in the literal, and do compare internal spaces in both. Newline failure came from reading in the internal strings
 
sbi
@R.MartinhoFernandes Also, re "looking weird": I found this by looking at a piece of code @Drise posted, which I saw and immediately understood what it is doing, and why. It's only then that @Drise posted a link to his code. So for me, that is a very intuitive trick.
@MooingDuck You could circumvent the problem with read() by reading char by char, using >>, until the array is filled.
Lemme do some digging...
 
@sbi Well, it failed with the string example I put above. And I'm afraid of how it interacts with various stream options (skipws is the first that comes to mind). Yes, it should be fixable, but it may also require a large amount of code for fixing everything.
 
@sbi The question becomes: how should I handle spaces in the string literal?
 
8:25 PM
@sbi Why thank you!
 
user1182183
@MooingDuck why is handling spaces so hard? It's just the hex 0x20 (32)
 
user1182183
just like A, 65
 
Can someone create a C room?
 
@MooingDuck Crush them like bugs.
 
user1182183
@BrandonDamante isn't this a C room where everyone say that you should use C++?
 
8:27 PM
@GamErix if the stream has " (", and the literal is just "(", should that pass or fail? Then what about the reverse?
 
Re the "weird"... well, you asked why I didn't like it. That's one reason I don't like it. Me not liking it is not a technical disadvantage, is it? :P
 
@BrandonDamante Nobody uses C anymore.
 
user1182183
What's a literal, something you want to compare to?
 
@BrandonDamante we had a C room, it died
@GamErix effectively, yes
 
??? @GamErix I do, Its got a lot of tags on SO
 
8:27 PM
C is dead.
 
user1182183
It should fail.
 
No sane person uses C anymore.
 
@BrandonDamante get rep, then make yet another C room.
 
I do, I'm sane
ish
 
user1182183
Else just make a param, bool CareForFuckingSpaces = true
 
sbi
8:28 PM
@Chimera Why thank me?
 
@sbi Because you commented on my poetry.
 
@BrandonDamante if people wanted to talk about C, the C rooms wouldn't keep dying off.
 
True then I'll use the power of advertising
 
@GamErix can't have more params in an operator
 
@BrandonDamante I love C, but those rooms always get frozen because they become stale.
@BrandonDamante LOL, that's what I thought once also.
 
8:29 PM
@sbi Yes, it is. But did you know the semantics regarding spaces, for example?
 
user1182183
@MooingDuck then it should fail, or pass, depending on what someone wants?
 
Hhaha @Chimera
 
user1182183
ekse just use some ISO stuff
 
sbi
@MooingDuck Ah, is >> ch skips leading spaces, right? Shrug. Why not just disallow whitespace then? It's not like they are a necessary ingredient, are they?
 
user1182183
International S O or whatever it's.
 
sbi
8:31 PM
@R.MartinhoFernandes As long as it wouldn't silently fail, I could live with that. When do you have spaces in your delimiters anyway? And should you have them, you should be able to work around that.
 
@sbi Yeah, it's coded as if there's no whitespace in the literal; though as a side-effect, it can handle internal and trailing space and tabs (not newlines).
 
user1182183
@sbi some data can be corrupted by spaces :)
 
sbi
@GamErix So? Your code fails to read corrupted data. What's your point again?
 
user1182183
@sbi none, just saying :p
 
How much rep does it take to create rooms?
 
user1182183
8:34 PM
@BrandonDamante please, staph.
 
sbi
@MooingDuck Just forgo whitespace. If someone really needs whitespace in their delimiters, they will have to split the read, reading the whitespace themselves.
 
Why is everyone mean to me??? lol
 
user1182183
@BrandonDamante No sorry it's not meant to harras you :( I just want you not to waste your rep
 
sbi
@BrandonDamante Why don't you just look it up? And if you can't find it, why don't you just ask on meta?
@BrandonDamante Why do you get on everyone's nerve all the time?
 
@BrandonDamante because you're acting like an irritating 13 year old
 
8:35 PM
Woooow @sbi
 
user1182183
Anyway it won't be as cool as this room
 
sbi
@MooingDuck Actually, that's an insult to my 13yo boy.
 
user1182183
You won't get the DRAMA's for humans xD
 
@sbi only if he's irritating
 
What could I possibly be doing?
 
user1182183
8:36 PM
@sbi If that's an insult, then something is wrong here :o
 
@sbi Basically, I don't like it because there's so much stuff to work around.
 
user1182183
"because you're acting like an irritating 13 year old" is an opinion, your 13 year old has the right to not give a fuck about this :p
 
user1182183
like I say I like Ice cream, you don't need to care ^.^
 
user1182183
Anyway, who the fuck cares I like Ice cream?
 
@BrandonDamante lots of punctuation and poor spelling, constantly asking us to do things for you, asking questions of us that google can easily answer for you, not following the group conversation...
 
sbi
8:38 PM
@BrandonDamante You could just fuck right off. This is the C++ lounge. People here are discussing sex, drugs, and rock'n'roll. Occasionally, we also discuss C++. Then you come in, contribute nothing to the lively discussions, and get on everyone's nerve by asking stupid questions. Yes, we might seem hostile. But remember — you came into our room. So either play by our rules, or fuck right off.
 
user1182183
@sbi you forgot my drama's :'( I don't love you anymore! No more marriage!
 
Ell
talking about sex
how does anyone get girls to agree to threesomes?
 
@sbi I think we actually are hostile.
 
sbi
@GamErix Nobody cares about your drama.
 
@Ell Ask the lion
 
user1182183
8:39 PM
@sbi See? :p "Anyway, who the fuck cares I like Ice cream?"
 
Ell
@TonyTheLion threesomes. Talk to me.
 
sbi
@MooingDuck Yes, to some we are.
@GamErix Nobody. So shut up and learn by watching us grown-ups discuss.
 
user1182183
sbi just didn't get his bananas today...
 
user1182183
ok... so what now? Everyone mad? :/
 
sbi
@Ell If you need to ask, you're out of your league. Also: I could easily be your father. I likely had have sex for a longer time than you are alive. I never had a threesome. I don't feel like I missed anything.
 
Ell
8:42 PM
@sbi I hope you aren't my father. I was close is all :L
 
user1182183
@Ell one girl is enough, no need for more. I just want real love. finito.
 
@sbi What? Continuously?
 
@Ell Perhaps they asked first?
 
@MartinJames no, record for that is only two days, and he died.
 
sbi
For very good reasons, @Brandon, flagging is considered very stupid, hostile, and infantile here. Also, all the 10k+ users in the lounge will immediately counter your flag. Just get the fuck out and play elsewhere.
 
8:43 PM
@Ell You seem to think that there are no women who are interested in threesomes.
 
sbi
@Ell I fail to parse that second sentence.
 
@Insilico You may want to leave @sbi is being a fucking asshole
 
user1182183
@sbi Y u no have feelings here?
 
Ell
@sbi Nevermind, it doesn't matter :)
 
@sbi I presume he means he was close to his father
 
8:44 PM
@BrandonDamante So?
 
Ell
@MooingDuck Sorry I wasn't clear, I mean I was close to getting a threesome
 
@Ell HAHAHA I was way off :D
 
sbi
@MartinJames Yeah, of course. Did you think I'd ever stop? Please. calm down girl. I am chatting.
 
@BrandonDamante InSilico and sbi know each other.
 
@Ell Not with your father, I hope.
 
user1182183
8:44 PM
@Ell Lol you ever want to marry? I think the answer is: NO xD
 
@MooingDuck We do?
 
@Insilico well, you're familiar with each other in this room.
 
For all I care you're all a bunch of strangers with Internet connections.
 
Ell
@R.MartinhoFernandes of course with my father. He once said to me "Incest - a game for all the family!"
 
@MooingDuck Hehe. :-P
 
user1182183
8:45 PM
@MooingDuck and who knows me, probbly no one, lucky me, else I would be the topic for the next 5 years.
 
sbi
@BrandonDamante There's a comma missing in that sentence, boy.
 
@sbi Why you gotta be an asshole all the time
 
@sbi why haven't you plonked? You usually do by now.
 
sbi
@GamErix I wouldn't have feelings if I would have said "Would you be so kind as to..." When I say "fuck off", then that's string feelings.
 
meh... just plonk him
 
user1182183
8:46 PM
Guy you're just acting like 2 fucking stupid retards, stop okay? for the sake of humanity.
 
user1182183
Act like human if you think you are HUMAN.
 
Thank you @GamErix
 
The rain has slowed to a drizze, time to make a break for it...
Waterproofs - check
Umbrella - check
Beer money - check
Phone - check
 
Is N3376 the latest draft?
 
Yes.
@GamErix As if being a meatbag was a good thing.
 
8:48 PM
@R.MartinhoFernandes but it says - 2005-10-19
isn't that kinda old?
 
Woah, what.
 
user1182183
@R.MartinhoFernandes better than being stupid and being "hostile" to someone who can't just write propersly and just wants to ask question. When somebody got a problem he can just ignore that person here... In real life it would be harder, right?
 
user1182183
:/
 
Mine says 2012-08-29, but it's custom built. Lemme check the official.
 
nope
my bad
don't
 
8:49 PM
Ok.
 
sbi
@BrandonDamante You know, boy, I have kids your age, older, and younger. When adults tell them they are annoying, they'd feel embarrassed. shut up, and try to understand the rules of the place they got into. You don't. Instead, you just keep getting onto everyone's nerves. And that's why it feels to you like everyone's hostile. But, dude, when everyone is driving the wrong lane, then that's the moment you should check yours. It might just be that everyone else is right, and you're wrong.
 
@LuchianGrigore document date on ISO is labeled as "2012-02-28"
 
sbi
@MooingDuck Yeah, I should. Maybe I have a soft spot for teens, though? I do have kids his age, you know.
 
user1182183
@sbi You could be his dad and you didn't learn what "ignoring" is? :(
 
dafuq is going on?
why can't I open it?
 
8:50 PM
You messed up somewhere.
 
sbi
@MartinJames Well, sorry to disappoint you, but @Chimera's poetry was way better.
 
could it be? Oh GOD... do I have to update Acrobat Reader? :|
 
user1182183
@LuchianGrigore I hate auto updaters ^.^ always disable & DELETE them
 
@LuchianGrigore wait, I'm looking at mailing lists or something for C++. Why do they use the same numbers?
 
Yeah, always keep the old vulnerabilities.
 
8:52 PM
@sbi :-)
 
@LuchianGrigore wait what? I've always found adobe to have the best updaters ever. They're super fast and all can run at the same time
 
@sbi Could you just fuck off? That would make this situation so fucking better
 
user1182183
@R.MartinhoFernandes like adobe acrobat reader is hosting a webb server on my machine lol
 
anyone here play board games?
 
@BrandonDamante You'd be hard pressed to find someone here, aside from you, who's not on @sbi's side in this case.
 
8:52 PM
You people are such meanies! :-)
 
@MooingDuck yeah but I always just click no...
 
user1182183
@BrandonDamante Hey what I say to sbi is also applicable to you. Ignore him
 
sbi
@GamErix Actually, I think a year or two ago, Alf, Jerry and I were the only ones here who knew what "plonking" refers to. (Well, technically Alf might not yet have been here two years ago. I'm not sure.) And I think I was the most vociferous about it, so I'd suppose most of the regulars here learned it from me.
 
I know I am right now
 
@BrandonDamante sbi is a respected member of the room. You're irritating the people who practically live here. No, he's not going to leave.
 
8:53 PM
@GamErix Adobe Reader is regularly featured on security lists.
 
user1182183
@R.MartinhoFernandes Well when I get hacked and destroyed I will just wipe off the disk and install a new OS lol.
 
why didn't nils lofgren become a superstar
 
user1182183
Did 2 years without a single reinstall, can hold it 2 more years.
 
user1182183
^.^
 
sbi
Well, the guy is getting on my nerves now. One of the people who do resist to temptation to learn, even if a cold fish is slapped into their face. So, goodbye, teenie...
 
8:54 PM
 
user1182183
@Chimera NEMOOOO!!!
 
@GamErix You still don't get it. No one wants to destroy your machine. That gains them nothing. Building botnets, however...
 
I kinder gentler plonk
@GamErix :-)
 
@R.MartinhoFernandes use sumatra (unless you were the one recommending it to me)
 
@Cheersandhth.-Alf Yeah, I was :)
 
8:55 PM
he he
 
user1182183
@R.MartinhoFernandes doesn't a botnet need a .exe to run?
 
i nead new mem00ry
 
@GamErix I have no idea what difference that would make.
 
sbi
@Chimera Would you mind translating this into Engrish?
 
@BrandonDamante Protip: Of all the regulars, @MooingDuck is the most likely to help someone who comes in and ask a question. If he refuses to help you, it means you are becoming incredibly annoying.
 
user1182183
8:56 PM
@R.MartinhoFernandes well I monitor all the .exe's my PC is running, if anything 'unusuual' takes place I take action, examine it, and if I think It's somethign I don't want remove it.
 
user1182183
+ startup items, services, scheduled tasks.
 
Protip: they try very hard to make sure nothing unusual takes place.
 
@sbi Sure. This image of a fish is what you use when you want to be kind about plonking somebody.
 
sbi
@R.MartinhoFernandes None. On Windows you can give your executables any extension you like. Executing them from the commandline might be tricky, but from code it doesn't matter.
 
Once your machine is compromised how can you trust anything it tells you?
 
user406009
8:58 PM
I am fairly sure a virus would have a process name that looks very official (and/or use bugs to not even show in the process list).
 
@GamErix not really no
 
Yeah, maybe that's true. But does @sbi need to be so fucking hostile
 
user1182183
@R.MartinhoFernandes for the stupid users, I know enought about my own pc that I think I can see if there's one process/service too much
 
Sure, you can. You're a meatbag antivirus.
 
user1182183
@BrandonDamante srsly stop...
 
8:59 PM
@GamErix Does he?
 
user1182183
@BrandonDamante at the age of 13 I got my first internet connection ever, I started learning what email is and what a browser is.
 
user1182183
@BrandonDamante he stopped, now you continue, not nice.
 
You've been on the Internet for five years.
Amazing.
 

« first day (726 days earlier)      last day (4239 days later) »