« first day (790 days earlier)      last day (4384 days later) » 

18:01
MS <---- 'nuff said.
@TonyTheLion who's nuff?
I'm playin' EVE and fleets starts shortly, so if you want to be added see pinned message and I'll get back to you later
So I overhear this guy at work (PHP guy) talking about C++ to another Java guy right, so I ask exactly what he knows about C++, and he tells me "It's C with objects."
left
18:12
It took me a lot of energy but I managed not to punch him.
lolepicfail
You're terrible at following instructions
hmm
@CatPlusPlus I did so on purpose.
18:14
perhaps I should start some Christmas shopping
@netcoder See? This is what we have to fight.
Heh.
now that I think about it, Java guy conversing with PHP guy... nothing good can come out of this
nothing good can ever come out of a conversation with a Java guy :P
@emartel Touché.
alright, I'll go christmas shopping, have a good day sirs!
18:21
72
A: Can you have a triple minus signs in C programming? What does it mean?

RobᵩIt is equivalent to: iHoursTemp = iHoursTemp + (iZoneNew--) - iZoneOld; This is in accordance with the maximal-munch principle

Well damn...
Well, it's closed now. And given that it's a many-time duplicate, it stands a good chance of being deleted.
Duplicate maybe but it's hard to search for questions about operators
It's actually a pretty stupid question IMHO.
It tricked a LOT of people, so I disagree.
I wouldn't consider it stupid. Not a lot of people know about the maximum munch rule.
But it's been asked a bit too many times.
@EtiennedeMartel wtf...
At a fucking elementary school?
@EtiennedeMartel Yeah I just saw a tweet about that. So fucking sad
@EtiennedeMartel Yes, saw that a few minutes ago.
Worst is that in a few hours and for a few days/weeks, there are going to say how somebody could have seen it coming and done something about it.
Then in a month, most people will have forgotten and not give a shit anymore, and in 3 months it will happen again.
@netcoder Sad but true...
I wonder if they'll blame violent games this time.
18:30
@EtiennedeMartel that would be new
@EtiennedeMartel Games are always blamed for these things. It certainly wouldn't be the first.
@EtiennedeMartel WTF?! 18 Children dead! That's extremely disturbing.
one day, the US will wake up and start putting some decent gun control in
@TonyTheLion What's more disturbing is the complete lack of action to prevent more shootings.
one would hope so, but seems after all the shootings, none has come.
yeah
politicians tend to take the murder of children more seriously, though
18:34
Right now the NRA and other gun control opponents are probably scrambling to find a suitable scapegoat.
@DeadMG Well, the second amendment tends to get in the way of any form of serious gun control.
Did you hear? Our #facebook page reached 1.7 million "likes" today! Thanks for being a friend! #NRA http://t.co/Dxni9hsv
who goes to an elementary school and shoots little kids :(
hmmm
18:37
> A well regulated militia being necessary to the security of a free state, the right of the people to keep and bear arms shall not be infringed.
I don't see any militia.
@melak47 psychotics
I only see mad people channeling their rage through firearms.
thinking about making a small wiki to act as a C++ teaching resource
problem is, it'd require actual work :D
@EtiennedeMartel That would have been a much more interesting statement if the words "bear" and "arms" had been swapped :)
it'd also have led to fewer school shootings
18:39
Not if a bear got in.
"arm bears" <--- @sehe would have a potential interest here :P
@MartinJames that would be a school mauling, not a shooting, at least
except if the bear is armed, I guess
We know one bear at least that is armed with C++
but I haven't heard anyone reported dead after dealing with C++
I doubt that the suicide rate amongst C++ developers is zero.
I can imagine the news report: "Unfortunately, he overloaded the operator() wrongly and then died"
18:42
@EtiennedeMartel Let alone regulated.
'Merica, fuck no.
I figured I'd try that guy's "plumbing" library, but I got this :(
user142019
Is UML really used that much? Teacher said it was used extensively at 90% of all software companies but I don’t believe that.
user142019
Maybe in the 90’s.
18:48
@Zoidberg'-- so now it's 12% because 2012? or 112%? :(
user142019
lol
void Plumbing::detail::connect_impl<void>::connect::<lambda_9ac5538ff2081cccd188b4839b235f51>::operator ()

o_O
user142019
lambda_9ac5538ff2081cccd188b4839b235f51, yes, very useful.
user142019
You really want to know the ID the compiler uses internally.
well, I guess that's what I get for expecting a MSVC preview version to work...:3
18:51
'The province is sitting on a cumulative backlog of 856 unresolved murder cases' - the linker did it!
@Zoidberg'-- I think I've mentioned this before, but the majority of "use" I've seen made of it has been to reverse engineer impressive-looking charts of existing code to justify expenditures and such. Using it to do actual design or engineering seems fairly rare.
user142019
@JerryCoffin ah I see.
user142019
Thanks.
user142019
I have never really seen it used anywhere and I’ve also rarely seen it mentioned in job descriptions (maybe once or twice).
In my experience, it is very common to use a whiteboard to draw boxes representing classes or components, and arrows between them to indicate interaction. It is very rare to do this according to formal UML rules
user142019
18:54
@jalf We did that too in the company I worked for.
user142019
We sketched diagrams on paper/whiteboard not using any formal rules.
@jalf even our other courses' professors said "just draw boxes and stuff, it doesn't need to be UML"
@Zoidberg'-- Surely. Simple fact: diagrams are useful when they're small and simple. UML tries to add enough detail that only people who use it constantly can understand it any more.
user142019
Just so anybody with sane common sense could understand it.
user142019
I find UML somewhat confusing so far, especially relations in class diagrams (are they members or not? or what?) and extends/include in use case diagrams.
18:55
Most of that detail is pretty useless at the design level any way. Basically a case of extreme micro-management.
user142019
I find flowcharts useful in some cases, especially when doing networking and stuff must happen in the correct order, together with user interfaces. But indeed, diagrams should not go into the very details of everything.
@JerryCoffin It's not very useful at design level no. I find it useful for documentation however.
Hello, I'm writing something in C and am having a little problem that I was hoping someone could clarify
@netcoder At some point, you generally need internal documentation, yes. At least that I've seen, having it in UML rarely contributes much (if anything). If you decide you really need that, you RE it from the code though.
@Magn3s1um Unless you really mean C++, asking here is just about as likely to result in jokes at your expense as real help.
19:02
@Magn3s1um I like C, go ahead and ask ;)
Couldn't find a C discussion board, and it really doesn't matter whether its C++ or C. Should be the same result
@JerryCoffin More like any language.
@Magn3s1um Okay, so ask your Clean C question.
@Magn3s1um Don't be so sure.
@Magn3s1um You know, I think it's because C sucks.
19:03
I vmalloc about 2 Mb of space and store some stuff throughout the contiguous virtual memory region. I place apointer where I expect some data to be, and the data is there, and I increment the pointer beyond this region (by one struct), and check to see if theres another struct there
@EtiennedeMartel You suck. :P
@Magn3s1um you do know they're separate languages, right? If you ask a bunch of C++ programmers, the solution you get will likely be C++, not C
If there isn't, I'd like to place a structure there by returning that address
but when I increment the pointer
the address is changed to NULL, not (address of previous struct)+(size of struct)
@Magn3s1um By "beyond this region", do you mean "beyond this 2MB"? Or are you staying within he 2MB?
no
its in the 2Mb
And how do you check there is "nothing" yet? Do you have a flag for that?
I increment hte pointer beyond the data region
yeah, I set a value inside the struct to NULL
code example or it didn't happen ;)
and I've memset the entire region to 0 when initializing
@Mysticial Good point. C++ (or Haskell) does reduce the likelihood a little though.
19:04
Show us some code, hard to say anything without code.
disk = vmalloc(SIZE);
memset(disk, 0, SIZE);
so there's my allocation, and I set the netire region to zero
@Magn3s1um so the flag is 0 to indicate that the struct exists, and 0 if the struct doesn't exist?
@EtiennedeMartel I invited you, you illiterate scrub
I smell a slight problem with that ;)
No, if the struct exists, the structure begins with a char
then I memcpy some data structs in
19:05
@Magn3s1um What char? 0 is also a char.
Yeah, a non-zero char
signed char greater than 0
@Magn3s1um By the way, what is vmalloc? I thought it was a typo when you first wrote it.
no, vmalloc gives you a virtual memory block that is contiguous
Anyway, show us the code. Moving a pointer around inside an allocated region of memory is possible. If it suddenly magically becomes null, you're doing something wrong
up to 4Mb I believe
19:06
Can you show us the declaration of the pointer and the check and the increment? Also, the struct definition.
@CatPlusPlus I love you too.
I correctly get the first directory (there is only one)
But then when I increment the pointer, the address of the pointer becomes NULL
I guess one might also ask why you didn't post this question on SO :)
when it should just give me the address of the previous block + the size of the struct
What pointer? point? How is it declared? What's its type?
19:07
its of type struct
struct directory{
char filename[14];
short index;

};
My eyes are bleeding
@Magn3s1um Why do you dump a huge wall of unformatted text?
What is point = (point)-16; supposed to do? You know that pointer arithmetic works on elements, not bytes, right?
Here's the whole code:
If you want to skip to the preceding element, use point = point - 1;
19:08
I thrashed ye rubbish
Yeah, no, I want to go beyond it, I was just testing it with - and +
sbi
sbi
> TIL: Before calling the police, reboot your phone. Mine just received 7 belated messages, among them the critical one I missed last night. — sbi
So you want to skip 16 elements? Why 16?
Not 16 elements, 16 bytes
You know that pointer arithmetic works on elements, not bytes, right?
19:09
so if its a directory structure (size 16 bytes) , a pointer to a directory incremented should move me 16 bytes
Yes, ++p will move the pointer by 16 bytes.
@sbi Wow, rebooting solves all kinds of problems, huh?
Now go read an introductory book on C.
So, why does that cause me to get NULL?
for the address of the pointer
19:10
ALRIGHT, ALRIGHT. Post your stuff on SO.
If your question involves huge walls of code and convulated explanations, then it's probably too complicated for a chatroom.
sbi
sbi
@R.MartinhoFernandes If only I would have thought of this last night!
@EtiennedeMartel 3600L per minute? Do you really suck that much? Source
19:11
This room is illsuited to anything more complex than a simple question.
what is SO, and I'll gladly do it. You guys aren't even talking about programming in here.
@Magn3s1um SO is stack overflow. Why would we talk about programming in here?
@Magn3s1um The room is called Lounge<C++>. Since we read left to right, that means it's a lounge first and about C++ second.
We are not programmers!
Okay, thanks
19:12
By the way, if you had posted your question on SO when you asked if it was okay to post a question here, chances are you would already have three answers by now.
sbi
sbi
@Magn3s1um Have you looked at the room's name? You wight want to.
Noobs: What part of the word Lounge is unclear to you?
Maybe they misread Lounge as Launch? As in "launch my question at people without mercy"?
@TonyTheLion maybe some like to relax by answering programming questions
robots may like that, per example
19:15
no
room topic changed to Lounge<C++>: If that wasn't clear enough already, this is a lounge. [c++] [c++11] [c++-faq]
sbi
sbi
@EtiennedeMartel Yeah. I got GUN CONTROL! all over my twitter timeline.
yellow sticky note in lounge: This is a lounge.
5
Q: C Pointer Arithmetic sizeof(struct)

endeavormacHere is the code in question #include <stdio.h> struct test { unsigned char t; unsigned short u; unsigned char v; }; int main () { struct test * a = (void *) 0x1000; printf("%x %p %p\n", sizeof(struct test), a + sizeof(struct test), ...

@TonyTheLion I thought it was pretty much self evident, but it appears it's not.
19:16
yea some people are stupid
@TonyTheLion We should have a bot post this once per minute (peeks at robot).
once per minute???
that's like spamming this room...
Or let's say ever 10 messages. To make sure it's always visible.
only I'm allowed to spam this place
@FredOverflow That would be enough to summon Johannes the Flagger.
2
19:16
:P
@EtiennedeMartel That sounds like a Saint. Which he kind of is to me, the Saint of Templates :)
@TonyTheLion You do know the history of that post is still available, right?
@EtiennedeMartel Yes I know.
Also, "Johannes the Fagger" only works if Cicada and Johannes are the same person.
where is the insect anyways?
hiding under a door somewhere?
@StackedCrooked Who? Where? When?
@EtiennedeMartel Cicada renamed to something else, didn't she?
@netcoder By Guido. It got 1 vote.
Python: 28%
C++: 19%
C: 18.9%
Java: 8.9%
lol
Java fail
19:21
@FredOverflow Yep.
@TonyTheLion 4th place ain't that bad.
sbi
sbi
@EtiennedeMartel We do have quite an odditorium of curious characters here, don't we? Tony the Porn Lion, Johannes the Bapt... Flagger, Martinho the Robot, Etienne the Clochar Drunkard, ...
That's a close race between C and C++. So apparently, 18.9 + 1 == 19 :)
@sbi Yeah, and I'm a drunkard.
@StackedCrooked Java above C#? Yeah, these guys don't like Microsoft.
@sbi and Grumpy the Ape
19:22
@EtiennedeMartel Trunkenbold is the German word. Or just Säufer.
Johannes der Säufer, lol
2
@EtiennedeMartel No, they are absolutely unbiased. I can guarantee that.
sbi
sbi
@FredOverflow Haha! (To understand @Fred's pun, you need to no that "baptist" would be "Täufer" in German, while "drunkard" is "Säufer".)
@StackedCrooked "Linux Journal", hmm?
I'm associated with Porn in this room, something's very wrong. :(
@FredOverflow I like Säufer.
It sounds even more crass than "drunk".
19:24
Considering Python is one of the few languages installed by default on Linux machines, it's not surprising.
the other being Perl, but who the fuck likes Perl
sbi
sbi
@EtiennedeMartel It comes from "saufen" a somewhat vulgar synonym of "to drink".
Manager emailed coworker a bug, and the coworker replied "Can be entering defects for all this issues?"
He was born and raised in Western USA, I wish he'd talk like it :(
@MooingDuck Can haz ticket number?
We are the only lounge in the world that has a Mooing Duck.
@TonyTheLion sadly, no :(
19:27
what?
sbi
sbi
I hope you all behaved well last night, when I was distracted. I told Scott about that adventure, and when he wanted to know more, I pointed him at the chat transcript. From the questions and comments he just sent me back it seems he read the whole thing.
@TonyTheLion mooingduck.com is owned by another young programmer, I bet he lounges somewhere.
@MooingDuck Do you need us to kill your rivals?
@MooingDuck oh yea, I remember that
@TonyTheLion Also 3rd google result for MooingDuck is "Wilfred the Mooing Duck Chick" on facebook
(also not me fyi)
19:28
@sbi What happened?
@sbi Scott? Scott Meyers?
@sbi Link?
sbi
sbi
@EtiennedeMartel Start here. /cc @Tony
@FredOverflow Yep, him.
@sbi FFS, don’t do that. Your tweet triggered me to read that thriller you posted here yesterday night. Next time I’ll read the spoilers first.
sbi
sbi
@KonradRudolph At least you could fast forward. I had to live through the whole fucking thing in slow motion.
user142019
19:31
@MooingDuck he uses PHP and you don’t so he is inferior to you.
wow, that’s awful
as a child / teenager you never realise why your parents are so anal retentive about calling …
sbi
sbi
@KonradRudolph As it turned out, she did nothing wrong. In fact, if anyone is to blame then that's me.
@sbi Wow, I wanna be friends with Scott Meyers!
@sbi Yes, I gathered that from the tweet that prompted me to read the whole ordeal. But still …
incidentally, it sucks that this technology is so unreliable
is it unreasonable to expect this to work better?!
sbi
sbi
@FredOverflow Shrug. So get him interested in you.
19:34
@sbi my carrier/phone seems to have a way to detect some dropped texts. Sometimes I get a "this text was not sent".
@FredOverflow With that bad hair?! :p
Sweet tits on a motorcycle.
That's one hell of a story.
sbi
sbi
@KonradRudolph Um. Remembering @Fred's old avatar here, I have to ask: Whom are you talking about?
user142019
Salty tits on a motorcycle.
sbi
sbi
@MooingDuck The text obviously was sent, though. I received it this afternoon — after rebooting my phone...
19:36
@sbi Well, I’ve never seen Fred’s avatar, or I don’t remember it, and Scott is famous for his 80s hairdo
@sbi So, wait. How do you know Mr. Meyers?
@sbi OMG! I'm glad all turned out ok though.
user142019
Fred’s avatar was the grayscale picture of Fred, IIRC.
sbi
sbi
@KonradRudolph What?! 80s? Nobody in their right mind ran around like that in the 80s!
@Xeo dangerously close to the Netherlands
19:37
Jan 10 at 21:08, by FredOverflow
user image
Ain't he suite, erm, sweet?
user142019
wat
Damnit English, why do you have so many similarly written words that sound exactly the same?
@sbi Are you saying the movies would LIE to us?
user142019
Because English.
@sbi I once wrote an email to Scott and Stephan about move semantics. Scott never replied :(
sbi
sbi
19:39
@KonradRudolph If they show Scott's hairstyle as 80s, then, yes, they do. I have never seen one that did, though.
@EtiennedeMartel pic or didn't happen
@FredOverflow and Stephan did? Isn’t he busy trolling reddit? ;)
@EtiennedeMartel book review or something
@KonradRudolph Oh, Stephan always responds to my emails.
@FredOverflow I was about to Google that until I realized I'm at work.
user142019
@FredOverflow Extremely NSFW
19:41
@Zoidberg'-- But it sure as hell didn't look like the 80s, did it?
@Zoidberg'-- This video contains content from Channel 5 and WMG, one or more of whom have blocked it in your country on copyright grounds.
suck cock Youtube
sbi
sbi
@EtiennedeMartel Um. Lemme think... I mailed him about an issue once, back in the 90s, of which I seemed to remember he had written about. He encouraged me to propose on comp.std:c++, which I refused, because my English is too bad. So he answered in German, to encourage me. Somehow a conversation got started by this, which keeps trickling on for years now. Sometimes, when he is in Germany, we meet and talk. (I have a beer, he drinks coke then. :))
@Zoidberg'-- Where is the motorcycle? All I see is a gay guy.
user142019
@FredOverflow I don’t know what 80s people looked like since I was born in ’94.
user142019
@FredOverflow Google images.
user142019
19:42
I’m not going to link that here.
@sbi What? He doesn't trink beer? WUT
@EtiennedeMartel And you keep SafeSearch off at work for extra thrills eh
FYI, that's how 80s hair looks like. Not tits on a motorcycle.
@netcoder Yep. YOLO!
And his little brother, YOWO (You Only Work Once)
19:43
@sbi Do you remember the issue? Also, how gut is sein German?
user142019
@FredOverflow it’s long, so close enough. :P
user142019
YODO, You Only Die Once
user142019
So make it a good death.
And you don't throw while you do.
sbi
sbi
@FredOverflow If you like emails from celebrities, you have to write to Mr. Stroustrup. He answered every email I sent to him in 15 years. (Not that I wrote many of them.)
19:44
@sbi I know, I write to him quite a lot. Well, maybe a handful of emails in total to this day :)
sbi
sbi
@FredOverflow That's very different from Scott's. /cc @Konrad
user142019
void start_amnesia() { throw std::bad_alloc; }
man
user142019
sup
I'm being Daisy-tackled again
user142019
19:45
woman
@DeadMG What does that mean?
sbi
sbi
@FredOverflow What? Are you Bjarne's stalker?
user142019
$ alias woman=man
@DeadMG Throw her out the nearest window.
@FredOverflow It means she's sleeping on my lap, and leaning her head on an arm
19:45
@sbi Who wouldn't want to stalk Bjarne?
user142019
I’m a abuser of Bjarne’s language.
making it relatively difficult to use the machine
@Zoidberg'-- for some values of 'used'
@ScottW You are his pet peeve.
19:46
@sbi Wow. All is well that ends well I guess. = I hope you managed the presents :)
@Zoidberg'-- Apparently, you are also "a abuser" of the English language.
user142019
@FredOverflow cool
@DeadMG That sounds very cozy.
@FredOverflow Does he reply sometimes?
sbi
sbi
@FredOverflow I believe I remember the issue. His German has considerably improved over the last few years. Last year or the one before he gave one of his seminars in German here.
19:47
@StackedCrooked Always. Mostly within 24 hours.
That's great.
@sbi Effektiv C++ Gegenstand 42: Niemals schmeißen von Zerstörern.
sbi
sbi
@sehe Nope, I didn't. I spent most of the day trying to not to relive those 90mins of last night. I'll have half the Monday and the whole Friday off next week, though.
I admire Bjarne for his rationality.
@StackedCrooked I admire PI for its irrationality.
19:48
@sbi You should get drunk.
sbi
sbi
4 mins ago, by sbi
@FredOverflow If you like emails from celebrities, you have to write to Mr. Stroustrup. He answered every email I sent to him in 15 years. (Not that I wrote many of them.)
Why the silence? Is everybody writing an email to Bjarne right now? :)
I'm on my third.
user142019
I was mentally preparing myself to get out of bed to walk downstairs to get a bag of crisps.
What's that? Chips?
sbi
sbi
19:52
@EtiennedeMartel Now that the small ones are in bed, I really should. I'm all out of beer, though, and today I have no head for wine (Nick Cave). I'm not sure what else to drink. I have some remains of Jägermeister in the fridge, but that's too little to get over the taste. (One tinsy glass might help me to digest that duck we had for dinner, though. That had quite a lot of fat in it.) Then that leaves the bottle of Cachaça that I keep around. I'm not sure I am up to making Caipirinhas tonight.
user142019
@FredOverflow that’s what they’re called in American English and in Dutch, yes.
user142019
By mentally preparing myself, I mean “is it worth getting out of bed for this or not?”
@sbi Does Scott have kids?
user142019
@FredOverflow lose fat? I’m underweight. I need more fat.
sbi
sbi
19:54
@FredOverflow They have a dog and the result on parental sanity seems to be comparable.
1
A: Pointer becomes NULL after incrementing

SebastianYou leave the loop in 2 cases: if point is NULL, in which case you return NULL. if dirnum is 16. In which case you call the function recursively, and will also return NULL. All other return statements return NULL, too.

Oh look, he got help :)
user142019
Though I’ve become fatter since I don’t cycle to school every day anymore.
@sbi I thought Persephone had deceased?
user142019
}
else{
user142019
^ so ugly
sbi
sbi
19:56
@FredOverflow There's Darla now, IIRC.
@sbi I see, never heard of her.
@FredOverflow Probably one of the very few times where somebody actually went to SO from here.
We shown him the path, and he learned from his mistakes.
@sbi My parents always said a dog was like a child that didnt grow up
@DeadMG And that's why I prefer cats.
19:58
yeah, they're like children that don't grow up and scratch you endlessly
and they're not warm, cuddly, or cute
Cats cratch you? Woa.

« first day (790 days earlier)      last day (4384 days later) »