« first day (1076 days earlier)      last day (3888 days later) » 

2:04 PM
need to socialize less and cave more
much happier being a loner
is this weird?
 
undoubtedly not
 
@DeadMG amen to that
 
@Telkitty猫咪咪 You're an introvert. Welcome to the club.
 
I am no introvert, I am very talkive and have a sense of humour (I think). At the same time, I find hang around strangers tedious ...
 
No.
 
2:18 PM
Wow -- I didn't think anybody would take that as absolutely the final word!
 
There's a Yakob and a Jakob here at the office. Since the second one is German, their names are pronounced the same. Fucking mess.
 
@JerryCoffin Your word is law around here :P
 
JBL
@Borgleader s/is/is above/
 
@CatPlusPlus Just turn your brain off.
 
@EtiennedeMartel Wait, what?
 
2:28 PM
Wait, Cat has a brain?
6
 
@JerryCoffin Well, there were periods of time in my life during which I had very close friends who I had long chats almost everyday
 
JBL
What a delicious nut.
 
But nowadays I still hang around with my friends, I no longer have the urge to have lengthy talks with any of them often
 
@Telkitty猫咪咪 Yup -- fits quite well with being introverted. Doesn't, of course, prove you are (I don't know enough to say with any certainty) but doesn't seem contrary to (at least my understanding of) what introverted means at all.
 
2:32 PM
@Telkitty猫咪咪 Means they're assholes.
 
I have introvert friends, they are not like me ... but maybe they are more of introverts
@R.MartinhoFernandes they are not, I tend to not wasting my time with people who I consider assholes
 
JBL
@Telkitty猫咪咪 Yet you spend a considerable amount of time in Lounge<C++>.
 
Could someone tell me whether I should be using cin.clear() or cin.ignore to fix the infinite loop thing in my code. stackoverflow.com/questions/19029838/crazy-calculator
 
@JBL 1) you took the liberty to assume I consider you all my friends, 2) you assumed everyone here is an asshole.
 
JBL
@Telkitty猫咪咪 Oh, I only assumed (me included) number 2. Well, @JerryCoffin excluded of course.
 
2:35 PM
4 mins ago, by Telkitty 猫咪咪
But nowadays I still hang around with my friends, I no longer have the urge to have lengthy talks with any of them often
@Telkitty猫咪咪 Seems to match my theory!
Woot, I can now tell when someone closes their eyes by looking at the brain activity.
 
Well, I misplaced my trust on one ex-friend, she could not keep any of her old friends, and she made it all worse for the rest of us.
But some people just don't understand, they think more friends are always better. I personally prefer quality friendships than huge amount of 'friends'.
Also friendship is very time consuming to maintain
 
That sounds wrong.
 
@JBL Damn! I thought I fit in pretty well here, but apparently not.
 
JBL
@JerryCoffin That was out of pure respect. But hey, you're free !
 
I love my friends, they are great people. But I also love my apps and they need time too. There are many other things I do, and I only have 7 days a week, 24 hours a day ...
 
2:42 PM
@JBL I guess I need to raise my rates then -- with all the "experience" I have, the intent is that I should be quite expensive, not even close to free.
 
JBL
@JerryCoffin Nevermind, you fit in here very well.
:D
 
@BartekBanachewicz hey do you use glut ?
 
@A.H. Go wash your mouth out. We don't allow language like that around here. "Fuck", "damn", "shit", or "hell"? Okay, no problem. But "glut"? Sorry, but no.
 
@JerryCoffin What's your rate? ... Where can I hire you for my friend's hen's night? She prefers someone who is very experienced :x
 
Are you trying to whore Jerry out?
 
2:46 PM
Ssh ...
 
@JerryCoffin figures , I tried creating a wrapper for it like 3 times. If I don't get over it I will never get to actually learning opengl
 
@Telkitty猫咪咪 ssh: Could not resolve hostname ...: No such file or directory
 
@R.MartinhoFernandes do you try to execute everything what she write here?
 
@R.MartinhoFernandes sounds like your read_chat routine did not sanitize its input
 
@A.H. you might consider trying glfw instead. Far from perfect, but a lot better than glut.
 
2:51 PM
@JerryCoffin I want one with class
 
@A.H. The glfw page has a list of alternatives, including a link to the opengl.org list of alternatives to glut. Some of them claim to be OO (though I've never used most of them, so I can't say how well most of them work).
 
JBL
Oh, ding, 2,5k rep. Feels miserable.
 
Grats
 
@A.H. If you mean UI classes with GL object classes, I think you are stuck with game engines.
 
@JerryCoffin OMG sfml !
@BoniTea don't need a GL object its C api isn't crap , I just need the window stuff
 
2:59 PM
@A.H. Sometimes you have to take the bad with the good...
 
JBL
Does SMFL sucks ?
 
@A.H. glfw
 
@A.H. In that case, most UI frameworks provide a GL canvas. Just need a bit of tinkering.
 
sfml is bad? never used it
 
If I return *pointer by reference, is it not a reference to what is pointed to?
 
3:04 PM
yes, it is.
 
JBL
@A.H. I thought of it as pretty decent.
 
3:25 PM
this place is quiet.
boo!
 
lagg wtf
I cannot see anything I type until I press enter..
Anyway what I wanted to say: All the mainstream Cpp loungers died? It's like never quiet here..
 
quiet patches happen all the time
 
This is strange.
If I call something on the window right after I create it, it still breaks.
 
@Gizmo I'd have thought my corporeal status was apparent from my name.
 
The standard does not specify how to implement references, correct?
 
3:39 PM
course not
 
Does backbone collection.fetch({update: true}) compare all properties to decide whether to change or add ?
 
Ok.
 
Downloaded Revolution in HD at 96Mbit/s through my new internet connection. Teehee.
 
@LightnessRacesinOrbit I hate you. I'm stuck with just 150 KB/s
:(
 
Is there any way to get exactly two points of rep? (Other than getting an up-vote, then doing 4 down-votes?)
 
3:46 PM
@JerryCoffin Making an edit, if you're under 2K points.
 
^ Only works if you haven't got 2000 points from edits already
 
@JerryCoffin accept an answer
 
@Borgleader or that
 
@JerryCoffin 202.202 What's so special?
 
@Borgleader Perfect -- thank you.
 
3:47 PM
Quick! give jerry a +1 vote somewhere
take his crown away
 
@Jefffrey I'm a sucker for palindromes.
 
muahahha, i feel evil
 
@GamesBrainiac He is gonna "make you disappear".
 
@JerryCoffin save that :) for old memories
 
Even your profile views is a palindrome.... Damn
 
3:53 PM
@Borgleader Yea. I'm gna keep this one jerry
 
@GamesBrainiac You can't keep it. It's Mine -- my precious...
 
@JerryCoffin I'm glad I took a screenshot
its 202,212 now
 
@GamesBrainiac All good things must come to an end, etc.
 
user1804599
1
A: Correct way of freeing memory in a vector of pointers? (C++)

not-rightfoldIf the vector owns the students (that is, it is responsible for deleting them), don't use pointers at all (unless you need polymorphism, but you didn't state that in the question so I assume you don't). If you do this, you don't need to explicitly define the dtor, the copy ctor and the copy assig...

 
user1804599
Why was this downvoted. :|
 
3:56 PM
Why do you assume its one of us?
 
user1804599
Why do you assume I assume it's one of you?
 
well
arguably, the question is a dupe of ten billion others
but I wouldn't feel compelled to downvote the answer because of that.
 
@not-rightfold Because you posted it here, asking why.
 
user1804599
Downvoting an answer because the question is bad is extremely retarded.
10
 
@not-rightfold What @Jefffrey just said :P
 
user1804599
4:04 PM
It's the kind of thing that high school teachers would do.
2
 
@not-rightfold Yes, yes it is. Thats why I ddnt do it :-)
 
user1804599
my @args = grep { $_ } map { op_to_arg($ops[$_], $_) } 0 .. $#ops; my first line of Perl that uses HOFs!
 
user1804599
Still don't understand why no comma is needed between }/map and }/0, though.
 
@LewTherin Ah, lovely chaps at SyncFusion, right? - So today I happily receive more spam from them ("Conner Sock" of all names) - despite my vehemently having unsubscribed from their services. Grmbl
 
Ell
HOF?
 
user1804599
4:11 PM
Higher-order functions, silly.
 
Oh. Boring. I thought you already did some perl programming before. Don't tell me you always stuck to manual loops...?
@not-rightfold likely because perl it's not regular functions. I think this always catches me out with print and split too
 
user1804599
@sehe Asked it on Stack Overflow. :P
 
user1804599
@sehe I’ve never needed map and grep before.
 
@Zaibis You can skip the second part of the question (my own proposal), as it is written to formally comply with the topical rules. — Dukales 2 hours ago
@not-rightfold map/filter/fold are the first thing I look for in new languages. If it's not there, the language is not worth the investment (and yes, I wrote my own in VB6)
 
4:25 PM
@stefanusdutoit @michaelpricedev Conveniently looking away from *any* kind of tooling that deals with C++ on the source level #breakage #cxx
Ouch I weep for introduction of thousands separators in C++
 
@EtiennedeMartel Ludia is presenting at Poly technique
 
user1804599
2
A: Why is no comma needed between the arguments of map?

mobYes, map is a language construct. Like grep, it supports two different syntaxes: map BLOCK LIST map EXPR, LIST The BLOCK in your example is just a simple expression, so these two statements are equivalent: my @ys = map { $_ * $_ } @xs; my @ys = map $_ * $_, @xs;

 
user1804599
You were right. Weird.
 
user1804599
Perhaps they were in Perl before there were anonymous subs?
 
@A.H. no
 
Ell
4:31 PM
I want to go roller blading :3
 
Today I finally learned what the ? operator does. I'm an idiot :D
 
@Crowz You idiot, it is the ?: operator :)
 
@Ell feel free to come here, but it's cold
:(
 
Okay... so what is this even saying? Probably VERY simple but doesn't make sense to me:
`int cread(int *xp) { return (xp ? *xp : 0); }`
 
@Crowz if xp points to some int, return that int, if xp points to nothing, return 0,
 
4:38 PM
@Crowz if xp isn't nullptr then return whatever value it points to, else, return 0.
 
RIP dynarray?
That would make me sooo happy
 
How is dynarray different from array?
 
@KonradRudolph The C (c++ g++ extension) ?
 
&(**
grr
 
@KonradRudolph I thought it was already a part of the C++14 spec...
 
user1804599
4:41 PM
@Tuntuni non-static size.
 
@not-rightfold Then how is it different from vector?
 
user1804599
@Tuntuni readonly size.
 
@GamesBrainiac There is no C++14 spec.
 
T* b = &(**iter);
i am working with geniuses
 
4:43 PM
@Tuntuni 1) array is standard, and dynarray isn't (and probably never will be). 2) The size of an array is a constant (template parameter). The idea of dynarray was to allow a size set at run time, but once set it remains constant (unlike `vector, which can resize dynamically).
 
Then dynarray is a terrible name for one
 
@R.MartinhoFernandes I assumed, since it was mentioned here (since c++14)
 
@ÓlafurWaage The &(*iter) part is a common trick for getting a pointer from an iterator.
 
@CaptainGiraffe oh... they're saying to write assembly for it
 
Is the OpenGL superbible a decent book?
 
4:44 PM
@JerryCoffin Couldn't you just use vector without resizing it? Is that why they're removing it?
 
@Crowz bne A0001
 
@CaptainGiraffe *iter is of the pointer type, why not just T* b = *iter;
Why dereference and then get the adddress
 
@not-rightfold do I need to bin again?
 
user1804599
I don't know.
 
@Tuntuni Yes, you could. Part of the idea was apparently that (like array) it could eliminate the indirection used in vector.
 
4:48 PM
@JerryCoffin Ah.
 
@JohanLarsson WTF, imgured.
 
you
 
then
 
holy shit, is this ocean's 11 or something?
 
@R.MartinhoFernandes To satisfy the C# people, who think they need (at least) one useless layer of crap between themselves and the real world to function at all.
 
4:51 PM
@R.MartinhoFernandes what does it mean?
 
so... how would you check for a null pointer in assembly? Can you use some sort of mask?
 
@Crowz Assuming x86 assembly language and it's already in a register, test reg, reg.
 
@Crowz I think it would depend on the architecture and what it considers to be an invalid pointer.
 
it's an IA32 architecture
 
@GamesBrainiac c-c-c-ombo breaker
 
4:53 PM
@JerryCoffin I'm enjoying a little fun with the c# guys right now :P
 
@JohanLarsson You can just post the xkcd link directly and it oneboxes (see chat.stackoverflow.com/transcript/message/12031370#12031370), with the tooltip included. You can also post a link directly to xkcd's image (see chat.stackoverflow.com/transcript/message/12031377#12031377). That one was uploaded to imgur first, for some reason.
 
0
Q: Segmentation fault trying to overload << operator

PierreBeginning with C++, I've written that simple piece of code, which is designed to serve as a (very basic) logger. This is mainly to try overloading operators. class Logger { public: Logger() : _has_logged_something(false) { }; template <typename T> friend Logger& operator <<(Logger&...

^ Oh Gawd.
That code is giving me cancer.
 
@R.MartinhoFernandes ok, he got burned once when posting a link to an image directly, showed up as gay porn. There is a name for what happened which I have forgotten.
 
@JohanLarsson "Coming out"?
 
Ell
What authentication method is it when I try to open a webpage and I get a native dialog asking for a user and password?
 
4:59 PM
Stupid.
 
user1804599
@JohanLarsson hotlink prevention?
 
"logging in".
 
But then, most are.
 
user1804599
@Ell basic authentication
 
@not-rightfold could be.
@LightnessRacesinOrbit :)
 
5:01 PM
@Jefffrey It gave me an ulcer, a cerebral hemorrhage, and lupus. Thanks for linking.
 
user1804599
lol
 
so then
I'm pretty fuckin' hungry
 
Wow, it contains singletons, raw pointers, dynamic allocation, macros, 3-deep nesting namespaces, and a delete called on the address of a reference.
 
do I go eat something?
 
user1804599
There’s a guy on TV who has over 20k pens.
 
user1804599
5:02 PM
@DeadMG Yes. You’ll die regardless.
 
@Jefffrey what is that even doing
 
user1804599
@Jefffrey Sounds like typical C++ code.
 
@not-rightfold Right.
 
user1804599
I’m sorry.
 
user1804599
I should not have said that.
 
5:04 PM
eh
it's perfectly true.
 
This is the first time I see zoidberg asking for forgiveness. That's so cute.
 
user1804599
Though hunger always makes me grumpy.
 
@not-rightfold most definitely. been using them ever since I know perl
@Jefffrey liar
@sehe on_error< success >(...) is correct — Dukales 19 mins ago
lol ^ I have no idea what the question was about. I tried to guess and asked about that. I have no idea what his replies were about. And now apparently "something" is "correct"
 
user1804599
I’m starting to see that Ruby is quite similar to Perl (ignoring the type system).
 
@not-rightfold I was just gonna say. The superficial similarity of course being SIGILS
 
user1804599
5:09 PM
Well, sigils in Ruby denote scope, not data type.
 
> "superficial"
I bet you that this helps your mind jump to the "mmm smells like perl" conclusion anyhoops
 
user1804599
given/when and case/when are practically identical (both use smart matching operator).
 
user1804599
I figured I can skip dynamic method lookup in Kreeft in many cases.
 
@millimoose Sorry, are you in a hurry? Can I ask you to consider taking a little more time/care phrasing your comments? "Can you provide the full compiler error?" or "You should includ the compiler error" would be perfectly fine and contribute to a better atmosphere. Both for the askers and the answerers on this site. — sehe 5 secs ago
 
Xeo
@sehe *include
 
5:14 PM
"Nobody goes there anymore. It's too crowded." — Al Everett 37 mins ago
 
@Xeo fixed. Although with the typo it would still beat his offering
 
Is there content from some German dev conference with English subs available? A friend needs to learn German.
 
Xeo
@sehe Also, the guy seems to come from another language :/
And the question itself is terrible.
 
@Mysticial ...and Yogi Berra, closer to 37 years ago.
 
how do you view the assembly code output of a C program?
 
5:25 PM
hey
 
@Crowz With gcc use -S. With VC++, use -Fa. Then look at whatever.S or whatever.asm respectively.
 
whats up guys?
 
sick.
 
aah linux programmers :D
 
@JerryCoffin here's a weirder question that probably makes no sense whatsoever, is there a way to get it to simulate being on a 32 bit system if I am on a 64 bit?
 
5:28 PM
Sup weirdos
 
lol
 
@Crowz If you meant you want it to produce 32-bit code, then yes. There are cross compilers available.
 
Hi @Abyx
whats up?
where you guys from?
 
Mexicano
No wonder -.-
 
Yawn
 
5:30 PM
@Pranay who the fuck are you and what do you want?
 
Xeo
so looking forward to that
 
Im yo daddy.
dengai
 
@Xeo My gfx card can't handle all that action, no way!
 
Ell
@Xeo this game looks extremely familiar
I can't think from where
 
Xeo
It's Terraria's spiritual successor.
 
5:32 PM
N3337 came after the 2011 standard right?
 
@Xeo Looks like Terraria. Edit: Oh, yeah.
 
Xeo
1 min ago, by Xeo
It's Terraria's spiritual successor.
FWIW, Terraria will also get an update soon
 
@Tuntuni Yes -- it's the first post-standard draft, so it's nearly identical to the real standard, but with some obvious typos and such fixed.
 
@JerryCoffin Aha, then I got it. This is the first time I actually browsed through open-std to get myself familiar with the process, etc.
 
@Xeo I saw that.
I enjoyed Terraria but at some point it definitely fell flat for me.
maybe I should give it a chuck again
 
5:41 PM
@Borgleader Really? Who's there?
 
Did Chrome update recently? It seems to have eaten all my cookies again.
 
@Pawnguy7 Yes, and the new update makes a lot of gratuitous changes to the UI too.
 
@Pawnguy7 Yes, and the new update is fucking awful.
 
Strange. Two searchbars?
 
Thank galaxy for epiphany.
 
5:43 PM
> fucking awful
 
@Pawnguy7 The one inside a blank tab has a microphone icon to support voice-driven searching. Stupid way to add it, but...
 
user1804599
@Pawnguy7 Screenshot?
 
@not-rightfold The normal address bar search, and google homepage looking searchbar.
 
user1804599
Nice screenshot. :v
 
user1804599
Did they remove the omnibox?
 
5:56 PM
 
user1804599
Oh, a web page.
 
user1804599
Ugh what an ugly logo.
 
user1804599
 
user1804599
^ much better.
 
The 6 tab things are below the search bar.
And I agree.
 
6:12 PM
@not-rightfold Is it ugly because it's new?
 
From my perspective, they "fixed" something that wasn't broken.
Also this.
 
@Xeo BTW, Can I find more metal ores by looking in caves rather than digging straight down?
@Pawnguy7 That's been that way for as long as I can remember
 
Xeo
@DeadMG ha, playing right now?
 
@DeadMG yes. But now it isn't consistent with the title.
 
@Xeo yes
 
Xeo
6:17 PM
I don't think there's much difference, but just blindly digging around is a hassle
The best is to get a spelunker potion and go through caves
 
I'm not digging around blindly
it's straight down to make my elevator.
 
Xeo
hellevator, eh
 
yep
before, when I went around the caves, it was too easy to get lost
 
Oh, South Park Season 17 has started, nice.
 
and took forever to go up and down
 
Xeo
6:19 PM
ah, try to get the grappling hook
it's teh awesome
 
yeah
but I don't remember what the materials are
 
Xeo
iron chain and a hook
which drops from skeletons
but can also be found, IIRC
(or bought, later on)
 
JBL
Mmmh. How would you categorize a very basic question about a language (like, the first thing you'd learn in a book) ? Off-topic because not enough understanding ?
 
@Borgleader The next Algorithms week starts tomorrow, and I haven't even begun the current assignment :-/
 
@DeadMG Minecraft?
 
Xeo
6:25 PM
Terraria
 
user1804599
@EtiennedeMartel Eh, no (and the “so” makes no sense).
 
user1804599
It's ugly because it's flatter than my wall.
 
@Xeo Is servant x service 13 out yet?
 
Xeo
How would I know?
 
Goddammit, I need to pay more attention to things. Just got on the train to where I lived four months ago.
 
6:30 PM
@Xeo Sorry, assumed you watched it.
 
Xeo
@R.MartinhoFernandes ow
 
@R.MartinhoFernandes o.O
@R.MartinhoFernandes Daydreaming about code?
 
Ell
I got terraria on my nexus 7 on the weekend
 
user1804599
@R.MartinhoFernandes I guess your NTP library is outdated and is suffering from severe cases of bug.
 
Evening
 
6:34 PM
No, not thinking about code. Not sure what I was thinking about.
 
I spent the whole day on a course on how to analyze the financial markets to make the best trades. Interesting stuff.
 
@TonyTheLion Sorry Tony. Scott aint here :(
 
He doesn't need to be here for me to come here
 
Ell
@TonyTheLion how is it looking?
 
I have lots of other people I consider friends in this lounge
 
Ell
6:35 PM
@TonyTheLion <3 ?
 
Are you working in finance now?
 
@Ell Very interesting. I have always been fascinated by finance.
 
@TonyTheLion I'm your friend Tony <3
 
Ell
@TonyTheLion I have been too
 
@Ell Me first :P
 
Ell
6:36 PM
I told my parents to invest in bitcoins when they were £7 :(
 
@R.MartinhoFernandes Writing software for traders, so it helps to know how this software is used, which is what this course showed me today.
 
@Ell That would have been awesome.
 
@Ell <3
@GamesBrainiac Yes, you too <3
 
Ell
@GamesBrainiac ikr :/ I couldn't convince them. But to be fair, from their point of view it just seemed like mumbo jumbo
I didn't really have much faith in it either. But boy, if we had invested :/
 
It sorta is.
 
6:37 PM
lol
 
@R.MartinhoFernandes Tits?
 
@EtiennedeMartel probably
5.4.3.2.1
Talk about coincidence
 
@Ell How much is it worth it now?
 
Ell
@Jefffrey it got to £210 at one point
but now is about £70 iirc
 
@Jeffrey not.
 
6:45 PM
@R.MartinhoFernandes ?
 
Cost effective mining rigs are hard to come by.
 
Hokay. So. The book claims that this method will fail by null pointer... in what case could this method fail?
 
Buying them directly is sorta like gambling since their value is so volatile.
 
Anybody used SDL before?
 
I see.
 
6:47 PM
int cread(int *xp) {
   return (xp ? *xp : 0);
}
 
That looks safe enough.
 
it says it'll fail on the assembly level...
xp in register %edx
movl $0, %eax
testl %edx, %edx,
cmovne (%edx), %eax
 
I'm apparently drunk.
 
Home. Finally. The right one.
 
Ell
my camera works finally
I ended up copy pasting :/
 
6:52 PM
@R.MartinhoFernandes The right one, eh?
 
@Crowz It might fail for int* y; cread(y);.
 
Ell
Now I need to refucktor it all and make it a nice design
 
@Jefffrey UB. Fuck it.
 
@Jefffrey The call site alone is already UB.
 
@Crowz I don't see a failure here, though it's more like: int ret = 0; if (xp) ret=*xp; return ret;
 
6:54 PM
The other example was better.
 
@JerryCoffin Hmm. What's ret there for? (did you mean return ret?)
 
As software engineers you guys should be able to understand that milliseconds matter in finance
 
@Jefffrey Oops -- yes.
 
@TonyTheLion Howard Hinnant would probably remark that with his Chrono stuff they could use nanosecond trading
 
@DeadMG "call site"?
 
6:57 PM
although the light travel time probably dominates below milliseconds
 
@TemplateRex haha
 
I still wonder why 12k+ user still commit idiocies like that.
 
@EtiennedeMartel I was going to reply to that, but now that I think about it, it would only make it worse.
 
@R.MartinhoFernandes Right.
 
Apparently they're laying a new line between London and NYC so that traders can shave 5 milliseconds off the time it takes for data to travel between those two cities
 
6:59 PM
Let's just say, "no".
 

« first day (1076 days earlier)      last day (3888 days later) »