« first day (636 days earlier)      last day (4310 days later) » 

3:00 PM
@thecoshman And it's great to have collaborative editing.
 
@thecoshman It's not. It means they are in the header.
 
@Cicada what witchcraft is this :O
 
And that's the problem.
 
so very confus now
 
@Cicada Oh my, one of my colleagues does the exact same thing with templates.
I don't think I like it.
 
3:00 PM
@thecoshman It's common when using templates: .h has declarations, .inl has implementations. But they need to be in "the header" anyway, so you include the .inl in the .h.
 
@RMartinhoFernandes but that does not effect the problem of requiring forward decelerations
 
So, say A depends from B, B depends from A, C uses A and B, and all methods of A and B must be inline. What does C.h include?
 
@thecoshman It does, because A.h needs A.inl which needs B.h which needs B.inl which needs A.h
 
What do I forward decelerate?
This is friday afternoon, my brain is so fried.
 
@Cicada A.h and B.h?
 
3:02 PM
forward declare
 
yeah, so A.h has a forward deceleration of B and vice versa
 
If the other two already compile, C.h doesn't care.
 
C.h just includes A.h and B.h as normal
 
Also, why do you magically use struct instead of class in your kindly provided sample?
 
@thecoshman But the forward declaration of B isn't enough for A.inl. It needs a definition of B.
 
3:03 PM
@sehe decelerate
 
@Cicada For public. Not relevant.
 
@Cicada probably to avoid having to manual state things as public
 
@Cicada Ok, thank you. I didn't realize you still r confus
 
But then the .h should stop including the .inl rite?
 
@RMartinhoFernandes but is the A.inl not included just like any other #include? and as such it will see the forward deceleration of B that is before the class B{} stuff?
 
3:05 PM
@thecoshman It needs a definition of B.
A forward declaration of B is not enough for A.inl.
 
what can't you just put that stuff from A.inl into A.h directly? sure it may not look as clean, but if it works
 
sdfjzofjosdfjso
aghhhh
So. B.inl includes who?
 
Also why is the inline keyword there and not at the declaration?
(Thanks btw)
 
@Cicada because that's where it goes...
 
3:08 PM
Possibly make B.inl #include A.h too, just so B.h is standalone.
@Cicada I don't think know if it makes a difference.
 
I always put inline near the declaration and provide the impl separately... not sure why.
 
you don't declare it inline, you implement it inline
@RMartinhoFernandes fairly sure it does, I've been twated by putting inline in the wrong place before
 
twated?
 
@Cicada Well, don't do as I do just because I do. Do as it works :) I only took care to get the include order right in the example.
 
Again thank you. I'm going to try and adapt it to my situation.
 
3:11 PM
Glad to help :) And yeah, the compilation model sucks.
 
Well this wouldn't be a problem if CUDA had a properly working linker :(
 
confus.h, confus.inl :)
 
And bigger stacks... not inlining aggressively makes the GPU crash.
 
Are you... complaining that GPU is not a general purpose processor?
 
GPU stands for General PUrpose processor, right?
@sehe Maybe she's complaining the GPU is not stacked.
 
3:15 PM
But is it crooked?
Also:
yesterday, by Cicada
Tell us how you want a non-fake girl when you dislike pale skin and small boobs.
But now she wants bigger stacks herself?
 
I'm complaining CUDA is either too high or too low level. Being able to write C++ on a machine that has a thread stack size of 63 is ridiculous.
 
We're incurable.
 
@Cicada Agreed. I like it
 
@EtiennedeMartel Getting drunk tonight?
 
Anyways, you can't actually write C++ on that thing. You can compile some code for it. But I get your point
 
3:16 PM
huh... so I just been informed the guy I sit next to actually works from home on Fridays... in the last 11 months, I have failed to notice this...
 
@ManofOneWay No, it's one of my friends' birthday tomorrow. I'm saving myself.
 
@thecoshman I'm not surprised
 
@sehe Use magic markers. I'm sure you can write on the GPU with them.
 
@RMartinhoFernandes Graphics Processing Unit, I will not tolerate such stupidity
 
@RMartinhoFernandes Well, I'm sure I'd be complaining about something else than stack size
 
3:17 PM
@RMartinhoFernandes GPGPU is General Processing Graphics Processing Unit
 
And that is?
I mean, is there such a thing?
 
@TonyTheLion sigh, General Purpose Graphics Processing Unit
 
General Porpoise Giraffe Projection Unit
 
Wrong, wrong, wrong. You're both wrong.
 
heyhey
 
3:18 PM
General-purpose computing on graphics processing units (GPGPU, GPGP or less often GP²U) is the means of using a graphics processing unit (GPU), which typically handles computation only for computer graphics, to perform computation in applications traditionally handled by the central processing unit (CPU). Any GPU providing a functionally complete set of operations performed on arbitrary bits can compute any computable value. Additionally, the use of multiple graphics cards in one computer, or large numbers of graphics chips, further parallelizes the already parallel nature of graphics pro...
 
Both? All three?
 
GPGPU is General Processing on a Graphics Processing Unit
 
@DeadMG flump
 
@TonyTheLion Read closer.
 
would you like to hear somethin kinda funny?
 
3:19 PM
@RMartinhoFernandes new thing, basically a GPU that is geared up for doing more CUDA stuff rather than actual graphics stuff
 
No.
@DeadMG Tell it.
 
@DeadMG you actually did pass after all
 
@DeadMG What did your dad say?
 
@thecoshman No, it's not a GPU. It's something you do with GPUs.
 
@thecoshman no
 
3:19 PM
@thecoshman That's mean
 
@sehe talked about that
before I went home
 
@thecoshman huh?
 
@DeadMG oh, hard luck
 
the weather here was meltingly hot
so I left all my drink in the fridge -that one that freezes stuff
but of course, since then, the weather has gone completely to shit
 
3:20 PM
@TonyTheLion General Purpose, not General Processing
 
now I'm freezing and wet and the only thin I have to drink is half ice
 
I'm already laughing.
 
icecream coming up
 
@DeadMG haha.
 
@DeadMG That's why god created microwaves!
 
3:20 PM
@EtiennedeMartel Sounds nice :)
 
@RMartinhoFernandes I think your humour threshold might need adjusting
 
@thecoshman Why?
 
@thecoshman What. You're jealous?
 
Schadenfreude is awesome.
 
@thecoshman that's what I meant, and was thinking I should write, but wrote something entirely different, it seems. meh
 
3:21 PM
Especially now that I know it has a name.
 
@ManofOneWay If the guy does not puke at least once during the night, then I have failed.
 
Fuck. I made that typo thrice in two days.
 
Eben gehört, dass heute noch 16 Grad werden sollen. Mir ist vor Freude fast der Glühwein aus der Hand gefallen. xD
 
oh, I have cold beers in fridge awaiting my return home! and if the wench GF has done her duties, nachos for dinner!
 
@RMartinhoFernandes Go back to kindergarten
 
3:22 PM
@RMartinhoFernandes thrice each day?
 
@sehe No speaky gibrish. :(
 
@TonyTheLion Do not collect 20,000
 
Xeo
@RMartinhoFernandes /slap
 
@sehe indeed
 
Xeo
3:22 PM
That's not gibrish!
 
Google Translate!
 
any ways, I shall see you guys later... yes, see -_-
 
@TonyTheLion Not a good job, it seems.
> Just heard that today will be 16 degrees. I mulled the joy almost fell out of my hand. xD
 
That last sentence is not good.
 
3:23 PM
> JUst heard it is supposed to even get to 16 degrees today. Out of sheer joy I almost dropped my glass of Gluehwein.
 
yes, that ^
 
At least Google was close, right?
 
Google is always close. Except when it's near.
 
is gluehwein another export of Germany?
 
I think it originates in Austria
 
3:24 PM
I'd say Austria
 
but I'm not sure
@sehe I win! :P
 
@Xeo Anything I don't understand is.
 
I'm sure I'd say Austria
@TonyTheLion You loose, you're not even sure
 
Xeo
@RMartinhoFernandes Update your language input packages
 
but I said it first
 
3:25 PM
And some things I do understand are gibberish too.
 
@Xeo I plan to.
 
COMPREHEND ALL THE GIBBERISH!
 
@TonyTheLion What is it worth if you don't say it with conviction?
 
I love IKEA!
 
3:25 PM
Say It With Convection
 
> Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
4
^ Gibberish that I understand
 
@sehe conviction does not enter into this discussion! It's about the fact that I posted it first!
 
@Xeo you have to be explicit, otherwise he will just learn yet another programming language
 
@RMartinhoFernandes lol, I fail to parse that entirely
 
Who's being convicted?
@TonyTheLion And I can pronounce it!
(I'm quite proud of it. Perhaps too much)
 
3:26 PM
@RMartinhoFernandes your ****!
 
Xeo
@TonyTheLion Don't know that?
 
@TonyTheLion You fail the dark lord, Cthulhu
 
@Neil I couldn't care less, really
 
@RMartinhoFernandes How does one google that
 
In his house at R'lyeh, dead Cthulhu waits dreaming.
 
Xeo
3:27 PM
/tentacleslap @TonyTheLion
 
R'lyeh is a fictional lost city that first appeared in the H. P. Lovecraft short story The Call of Cthulhu, first published in Weird Tales in 1928. According to Lovecraft's short story, R'lyeh is a sunken city in the South Pacific and the prison of the entity called Cthulhu. R'lyeh is characterized by bizarre architecture likened to non-Euclidean geometry. Norwegian sailor Gustaf Johansen, the narrator of one of the tales in the short story, describes the accidental discovery of the city: "a coast-line of mingled mud, ooze, and weedy Cyclopean masonry which can be nothing less than the...
 
@RMartinhoFernandes I have no fucking idea what you just said.
 
@sehe Type it? It should provide meaningul results.
 
@EtiennedeMartel In his house at R'lyeh he waits, dead but dreaming, something creepy, lovecraft lovecraft tentacles.
 
3:28 PM
> "In his house at R'lyeh, dead Cthulhu waits dreaming."
 
I'm surprised Cthulhu wasn't more popular in Japan.
 
in C++ can I legally make a == !a evaluate true where a is a built in integer type of some form?
 
Xeo
@EtiennedeMartel He is now, thanks to last anime season's "Nyarlko-san"
 
Except in Japan, Cthulhu would make love, not war. If you know what I mean.
 
@EtiennedeMartel They don't need more insanity.
 
@Flexo Why would you want to?
 
@Flexo no.
 
@FredOverflow to confuse people. mostly just out of curiosity
 
for UDT, yes, but integer type, no
you can do something like #define int MY_INTEGER_WRAPPER_THAT_CONFUSES_PEOPLE to try an work around this
 
3:30 PM
@Xeo Meh, Lovecraft must be rolling in his grave.
 
@DeadMG isn't that UB?
 
Xeo
hrhr
It was a good comedy anime
 
fairly sure #define keyword anything is UB
 
@EtiennedeMartel In Japan they have every kind of anime imaginable. They have an anime where this guy can't masturbate for fear that a demon contained in his penis would escape and conquer the world
Needless to say, hilarity ensues
 
@Flexo It's forbidden. Doing so is UB. Also, you'd have to provide a declaration for anything :)
 
3:31 PM
@Neil That is pretty terrifying.
 
Xeo
@Neil I don't think that one got an anime adoption, or did it? I only read the manga
 
#define unsigned int u_int is UB?
 
Xeo
If we're talking about the same thing, that is
 
@Xeo Well I read the comic. I don't think it ever got made into a series
 
I like cheesy romance manga and anime, but the exact second a love triangle rear its ugly head into the frame, I quit. Fuck off.
 
3:32 PM
@Neil So, he just rapes someone and seals her after the fact?
 
@JimNorton wrong way round
 
Xeo
@Neil Oretama?
 
(well that and there's a space)
 
@Flexo why yes it is... derp
 
3:32 PM
@JimNorton And useless
 
@EtiennedeMartel So... usually page 2?
 
Xeo
> The fate of the world rests on one man's shoulders. Or, to put it more exactly, it rests on his balls. In a freak sealing accident the Queen of Terror is sealed into Satou Kohta's balls, thus preventing her from reigning destruction on the world. However a lesser devil, Elyse, has been sent up to Earth to release the Queen at all costs. The only way to do so is to make Kohta ejaculate, and Elyse only has 30 days to do it. The battle for mankind has begun—in Kohta's pants.
 
@Xeo I don't remember the name, but probably. Kind of hard to imagine there would be multiple comics like that
 
Yup, that's the one.
 
3:33 PM
@SamDeHaan More or less.
 
Xeo
@EtiennedeMartel Did you read Karin (aka Chiibi Vampire)?
 
Not that I would dare read a comic like that. *whistles casually*
 
@Xeo Yeah, I did. And I wanted to punch the guy for being so ineffectual.
 
Xeo
hmm, I liked it
 
@RMartinhoFernandes sneaky but I was hoping to avoid a #define trick
 
3:34 PM
@Flexo Yes. Hence why I said it was impossible legally.
 
typedef unsigned long u_long; Is this useless?
 
@RMartinhoFernandes Just read Bjarne's swan book and compress it down to 50 pages :)
 
> I think this is an anime thing, where they like their protagonists angsty and ineffectual and given to wanking off over unconscious women. I watched an anime once - dude pulled a gun at the start of the episode, fired it at the end, and everything in between was angst! I wouldn't mind, but he missed! Judge Dredd could have nuked a city in the fucking commercial break.
 
@JimNorton You save key strokes afterwards.
 
@FredOverflow Yes, I know, just wondered if it's considered good taste in C++, it's used in C all the time... Maybe a dumb question... dunno
 
3:35 PM
Endless Eden looks related
 
Xeo
@EtiennedeMartel The wanking was only in a single anime, seriously. Why's everyone picking on that Evangelion scene?
 
@JimNorton pretty much. You can write u_long(0) whereas you can't write unsigned long(0) but that's all you get for your efforts.
 
@RMartinhoFernandes What language is that, Klingon?
 
@Xeo Because it's Yahtzee.
Still, I don't like angst. "Oh, no, I can slice a skyscraper in half with my sword! My life sucks!"
 
@JimNorton If you are doing that because you want a specific size, we now have std::uint32_t and friends for that.
 
3:36 PM
@Flexo What is u_long(0) in C++. I've not seen that construct before.
 
@FredOverflow Not specified. It's just a chant by Cthulhu worshippers.
 
@JimNorton it's another way of writing C style casts
 
Knowing the name of the language is likely to drive you mad.
 
Xeo
@EtiennedeMartel Hm, reminds me, I want the second half of the Elfen Lied manga animated :(
 
@JimNorton type(expr) is the same as (type)expr. It's called "function style cast".
 
3:37 PM
@Xeo Elfen Lied? Too dark for me.
 
@Flexo got it
 
Xeo
Oh, that's what I thought at first too
but it's just too awesome
especially the second half
 
@FredOverflow which is also the same as (type)(expr)
 
@Flexo That's rather observing. I never realized unsigned long (0) would be a problem
 
@Drise but not the same as type expr :)
 
3:38 PM
@FredOverflow Precisely.
 
@Drise I like that form when I cast
 
It's also the same as (type)((((((expr))))))
 
@sehe took quite a bit of thinking to remember the one context I'd seen where space in typenames breaks things
 
@sehe Why would you, we prefer static_cast<unsigned long>(0). Or, in this specific example, 0UL.
 
The latest from SO:
-10
Q: safe cracking c++

Khalid TahaSafe cracker Companies in the safe manufacturing business are always seeking smart people to work in their research and development department. The company you have applied for has developed a special test that is called the "safe cracker" to assess the people they interview. This test makes use...

 
3:39 PM
@Drise couldn't wrapping an expression in () change the rvalue reference semantics?
@FredOverflow Not relevant. I never realized it before
 
@JimNorton I prefer double(5.0). I only use extra () when it is needed for order of operations.
 
@sehe No, parenthesis don't change expressions. You can even say (((i))) = 0;.
 
I still wish int(0) was a synonym for static_cast<int>(0) for built in types so it matched constructor syntax better
 
@Xeo My favorite anime was Cowboy Bebop, so...
 
Xeo
Never watched that
 
3:40 PM
@FredOverflow But I definitely recall something related to decltype or declval
 
@Flexo You can use int{0} instead.
 
decltype((a)) being different from decltype(a)
 
@sehe Right, but that's a very special case.
 
@Xeo You should.
 
@sehe That is way outside my knowledge scope.
 
3:40 PM
@FredOverflow Ok. Thanks, btw
 
Xeo
I did watch Samurai Champloo, though
 
The only anime I ever really watched : en.wikipedia.org/wiki/Yakitate!!_Japan And that was only because my roommate always had it on.
 
@FredOverflow ooh nice, that fits quite neatly into template code then
 
@FredOverflow ideone.com/NXI0m /cc @sehe
 
@Xeo The animation was better, but it wasn't as good.
 
3:41 PM
@Flexo Better template code is one of the main motivators for uniform initialization.
 
Xeo
@RMartinhoFernandes Damn decltype quirks :P
What was the reasoning that got in again? Ah yeah, because some people didn't scream "no" loud enough.
 
@RMartinhoFernandes Very nice example. Makes it clear what the diff is as well
 
@RMartinhoFernandes is that a bug or as intended?
 
@Xeo What is this nonsense decltype you keep talking about?
 
@RMartinhoFernandes While on the surface it seems to contradict my statement, it doesn't. decltype(i) has an identifier as its argument, whereas decltype((i)) has an expression.
 
3:42 PM
@Xeo ((extra-parentheses)) ftw!
 
@Xeo Because you want to be able to differentiate between variables and expressions, and (i) is not a variable (it's still an lvalue, though).
 
@Xeo What's your alternative? *&? broken? I think I've seen litb trick things like this with -(expr) before
 
@Xeo Because I don't want decltype(i) to be int&.
 
Aha, so decltype(i) is int and decltype((i)) is int&? I always forget which is which :)
 
Xeo
3:44 PM
@RMartinhoFernandes Hm, true that. Unless i is int& i = ..., I guess.
 
History is merely a list of surprises. It can only prepare us to be surprised yet again.
Truth in that
 
Does @ManofOneWay have a new avatar? It looks slightly different to me.
 
New as in "the same as last month but not the month before that".
 
I'm going to stir the pot. Because I'm tired and am making bad decisions.
 
That's PostgreSQL's logo. What's special about it?
 
3:49 PM
@RMartinhoFernandes Erm... Not according to google.
To be more direct.
 
@Drise Blasphemy! Rid this php-encrusted elephant from my precious programming eyes!
 
I would laugh if someone flagged that, and I got suspended again. But don't actually flag it, really. Flagging is not a toy
 
@Drise I think their own site is more authoritative than Google. postgresql.org
 
@Drise I almost did. :-)
 
Damn, the bastard deletes the question right when I want to post my answer:
 
3:51 PM
@RMartinhoFernandes Fair enough. PHP Elephant returned the original image.
 
0
Q: copying just specific lines in a file with vim

philippeCould someone please tell me know how to copy specific lines, for example Lines 10-20, 22, 24-30 in a file, so I can paste it to another file? Thanks!

 
I going into the PHP room ask why they use PHP when better alternatives exist... If I'm not back in 20 minutes, call for help.
 
@Drise I followed that exact same train of thought when I saw it
 
PHP elephant is PHP.
 
3:54 PM
@JimNorton what are you doing?!
 
hello all :)
 
@JimNorton They're flagging you
 
@Prætorian HAHAHA
 
I can't look!
 
@JimNorton Don't.
 
3:55 PM
in PHP, 2 mins ago, by orourkek
here we go again...
 
Why do you guys insist on this silly language war.
 
@Prætorian For what?
 
Xeo
in PHP, 1 hour ago, by Whisperity
> PHP is the language for those without self-confidence: the code itself begins with a ?.
6
 
@JimNorton For what you said you were gonna do
 
Xeo
lol'd at that
 
3:56 PM
@Xeo Nice!
 
Please don't go piss off the PHP guys. I get pissed when someone comes here and starts an argument over which language is best too. Why would we do the same to others? Seriously, stop acting like children.
 
@RMartinhoFernandes BREAKING NEWS: Language wars finally over. Preliminary result: every major programming language sucks.
13
 
@Xeo ?H?
 
@RMartinhoFernandes If you will read what I'm saying over there.... you'll see I'm not making fun of them...
 
@RMartinhoFernandes Just one guy, really
 
3:57 PM
@sehe One today.
 
@JimNorton So what. You're upsetting them
@RMartinhoFernandes That counts for something
 
idea for a new FAQ, anybody got time? :)
 
You're not threadsafe and you overflow...
 
Too broad, I think. And we already have several parts covered.
 
Xeo
@FredOverflow Why did nobody tell me about a new series of STL? The dynamic feed didn't tell me anything about this :s
 
3:59 PM
@Xeo Has it ever? Don't worry, you only missed 2 parts so far.
 

« first day (636 days earlier)      last day (4310 days later) »