« first day (902 days earlier)      last day (4050 days later) » 

9:00 AM
@BartekBanachewicz Tell me you're not doing the same to the GLSL question :)
 
(I have to note, though, I've used it on poorly "obfuscated" code)
 
@sehe hmm?
oh my.
@sehe return false;
 
if ((x > 0) == true) return true; else return false;
 
@BartekBanachewicz The problem appears to be that astyle won't remove the newline that already exists. You might want to gJiB and then :%!astyle...
 
9:03 AM
ITT sehe answering in
 
> I'm going to go out on a limb here, as I know nothing about shader languages.
 
@sehe I've used... Astyle.exe "C:/code/*.cpp"
 
@kbok return (x > 0);
 
@TonyTheLion lol
 
@BartekBanachewicz Ah. Astyle emulates file globbing on windows. That hurts. Use vim. And cygwin :)
 
9:04 AM
@sehe dat limb
 
I have a potent limb
 
> However I know general logic and lots of programming languages.
heh
languages maybe ;)
 
> I know about common sense
 
@sehe Blergh, if I were to use cygwin, I would just launch linux
 
> I learned
wait wat
 
9:06 AM
Hey, let's all quote that answer, one line at a time?!
 
I'm a common sense expert
 
@BartekBanachewicz Not at work
 
> Could trivially be stated equivalently as the following (single) boolean expression:
 
9:06 AM
lol
 
a new emoticon
 
@sehe Didn't I mention I now have linux workstation at work aside of Windows laptop?
 
is that a robot "d'oh"ing?
 
@BartekBanachewicz No. Good for you. (Doesn't remove the need for cygwin with me :|)
@TonyTheLion needs citation
 
@BartekBanachewicz There's too many nested loops. So unless it's glaringly obvious, I won't be able to see it until I sit down and actually tinker with it.
 
9:09 AM
@Mysticial I thought you went to bed?
 
@BartekBanachewicz I was gonna suggest (p+16) == std::find_if(p+8,p+16, [](float const& f) { return f >= c_b; }); when I remembered the GLSL tag
 
@TonyTheLion I actually just got out of the shower.
And am about to go to bed.
 
@sehe ohoho. Anyway, using if instruction in shaders is a big no-no
 
Oh, god, I feel like shit.
 
9:11 AM
@BartekBanachewicz I sensed as much
@DomagojPandža You deserve it for posting that gif
 
@sehe Don't tell me you actually went to look at it. :D
 
duh
I was there when you posted it
 
I'm off to work then. I'll try to run that gJibbibfisjfisjiaf and Astyle there.
 
That was one of the more fucked up things I've seen. The worst was some pig getting slaughtered with a chainsaw. Blood. Everywhere. Cannot be unseen.
 
@BartekBanachewicz lol. gJiB joins the lines inside the current { block }
 
@DomagojPandža ... a real pig, I presume
@LuchianGrigore No. It's like that, but with 5 chainsaws and them actually running
 
@sehe Yes, don't look it up, though. It's horrible.
 
Heh, our FW blocks that because of Mature Humor.
 
well, apparently we have a class somewhere in our code base that spans 30 cpp files. WTF
 
lol
 
9:20 AM
@LuchianGrigore fffffuu-
@DomagojPandža I don't think it's just a feeling!
 
@LightnessRacesinOrbit Yeah, you don't think. :/
 
@DomagojPandža teehee
 
I can see how that could be a problem.
 
(^ this is how such conversations should go!)
now. what SO question should I post today?
 
post some obscure question about the C++ ABI
 
9:22 AM
today is my 34th day on SO, I haven't asked any question yet
 
Xeo
There is no C++ ABI :)
 
Yeah, well, you know what I mean.
 
@kbok I dislike ABI questions for the most part :( Especially now the Itanium ABI has vanished
 
Ask a question about how to implement a parser in templates
think something like parse<"int const &">::type do you think it's possible ? How would you proceed?
 
strlen(somestdstring.c_str()) Why???
 
9:26 AM
multicollider fame guaranteed
 
Y U NO USE size()??
 
@TonyTheLion some people
 
yea srlsy
 
@TonyTheLion Needs to find the null-terminated length?
 
re-inventing the wheel
 
9:29 AM
@MartinJames but they do +1 after that
even my manager laughed when I pointed it out
lol
 
@TonyTheLion Well, I tried:)
 
nice try
 
template <class T> parse (T input) { switch (input::className()) { .. } }
 
> I went to Wales once...made me never want to leave London...
lol
 
does anybody know any good online T shirt printing place, I want T shirt like this: image.spreadshirt.com/image-server/v1/products/19623086/views/… with algorithms iterators && ...
 
9:33 AM
lol
 
@KhaledAKhunaifer no
 
@kbok switch won't compile ?
 
@KhaledAKhunaifer switch is a runtime statement
 
Bad syntax anyway
 
9:36 AM
bad bad bad
 
I want struct x { parse<"int">::type x, y; parse<"double">::type color; };
 
Also switch can't switch on strings
 
you are bad and you should feel bad
 
Forget about strings in templates
 
I know it's possible
 
9:37 AM
expression templates
 
It's a pain in the ass that's not worth the effort
 
@CatPlusPlus std::map<string,function<> > :P
 
Pains in the ass are never worth the effort.
Erm, not that I'd know
 
Of course it's useless, you never have fun in your life?
 
9:38 AM
inflatable castles are useless too
this is the inflatable castle of template metaprogramming
 
inflatable castles are useful for providing fun
I see no fun in template metaprogramming :P
 
Well litb does
And I do too, to some extent
 
litb is the exception to various rules of humanity
as I'm sure he won't mind me pointing out
 
But I guess I should probably play video games instead
 
@kbok its Cat....
should I say more?
 
9:40 AM
@TonyTheLion depends on your desired life expectancy
 
What
@kbok Yes
 
@LightnessRacesinOrbit lol
@CatPlusPlus its not like you enjoy programming these days, is it?
 
User list just updated and my first thought was "man, I bet that takes a lot of power". First time I've confused my desktop PC for a mobile device. It's begun. Dammit....
 
ahahaha
oh the pirate appeared
he finally put the bottle of rum down :P
 
I can never fucking work out what's going on with the user list. Wouldn't be so bad if the tooltips were forced to appear instantly on mouse over
 
9:43 AM
whats so hard about the userlist?
 
9
Q: Add option to change chat user gravatars to a text list

KevWhen there's a large number of folks in a chat room, and you need to scan to see who's about, the gravatar icons don't really scale past ten or so users. Having to rollover each gravatar icon to see who's who in the "tool tip", and especially when these icons "fade" over time, makes it less usef...

 
I thought you were smarter than that?
 
argh argh argh argh
whydoesnothingeverjustwork
 
I can't see whats so confusing about a bunch of gravatars?
 
9:44 AM
alsoihatebrowsers
 
@jalf because programming
@jalf and browsers
 
TIL you can't write anything in you code data generated classes because xcode overwrites everything
HELLO THIS IS FUCKING 2013 FFS
 
Hello Xcode is possibly worse than Dev-C++ when it comes to IDEs
 
The debugger is horrible anyway
 
9:50 AM
@kbok Is there some place where I can find the mapping of "what Western homo sapiens name the current year" to "what is and is not acceptable in life" documented?
@TonyTheLion It's not confusing; it's just borderline useless
 
@LightnessRacesinOrbit Of course not, it's different from person to person
 
"The main purpose of CAT++ is to provide support for arrays with a similar interface to that of Fortran90, respecting the copy semantics of C++ but avoiding unnecessary copy of data." -- gna.org/projects/cat
2
 
For instance some people consider it completely normal to not let black people attend white people parties
 
9:51 AM
and here I thought its main purpose was being an arse
@kbok Why would black people want to go to white people parties?
 
@LightnessRacesinOrbit well, yea it is pretty useless, I'll give you that
 
@TonyTheLion That's the complaint. It's not like I'm sitting here and have a moment of sheer terror whenever I happen to glance at it
 
Yet some people consider it abnormal that you still can't enjoy a fucking coffee outside without risking being fucking rolled over by a car and deafened by the fucking traffic and horns
 
@LightnessRacesinOrbit oh, don't mind me, I'm braindead
 
@TonyTheLion (Though that can happen)
 
9:52 AM
lol
 
@kbok Well try drinking coffee not on a road and you may have better luck
 
@LightnessRacesinOrbit In Paris everything is a road
 
@kbok Even le tour?
 
I once worked on mission- and life-critical C99 code that used a do {} while (0) block only so that the author could break to the end upon whatever condition. Your code is fine. — psoft 8 hours ago
lol
 
It ... happens on a road, yes. Also it's not Parisian-only at all
 
9:55 AM
@CatPlusPlus It can in Java :)
 
@FredOverflow I once saved a bunch of baby seals by invoking UB
3
 
@FredOverflow A ... what?
 
@FredOverflow Yeah, so?
 
@kbok I meant le tour eiffel
 
9:56 AM
@CatPlusPlus Dunno, just wanted it to get out there.
 
@LightnessRacesinOrbit Ah, yeah, well, it's a girl. :)
 
@kbok break does not invoke UB.
 
I once invented nuclear physics by transplanting the idea into Oppenheimer's brain, through the power of time travel, telepathy and UB
@kbok oh feck
 
@FredOverflow break does not save baby seals
 
@FredOverflow Invoking UB does not invoke UB
 
9:56 AM
ITT Lightness is a murderous fuck.
 
@R.MartinhoFernandes TIL
 
@LightnessRacesinOrbit It doesn't?
 
@FredOverflow Actually... does it?
 
whether invoking UB invokes UB is UB
 
Since no semantics are defined for undefined semantics, and any undefined semantics lead to UB, it would seem to be a self-referential definition in a sense.
 
9:57 AM
Technically, you don't "invoke" UB. Programs with UB have UB.
 
@R.MartinhoFernandes You invoke UB by writing a program that has UB in it.
This is similar to how you summon the hate and rage of millions by doing something to cause hate and rage in their hearts and minds.
 
Kittens die every time you have UB
 
@LightnessRacesinOrbit s|writing|compiling/running| might be reasonable.
 
@TonyTheLion Not every time. Else it would not be UB!
 
@LightnessRacesinOrbit Also, no, la tour Eiffel is not a road, but it sure isn't a recommended place to have a coffee either
 
9:59 AM
@R.MartinhoFernandes I'll give you that. Ultimately, though, if you know that the program will be executed some day, then your mother invoked the UB indirectly by producing its author.
 
Macros
 
Hate is not a liquid.
 
user142019
Hola, my Freunden!
 
9:59 AM
It's... not?!
@Zoidberg Wrong room
 
is this possible in C++? vector<var> v(); v.add(new var<int>(2)); v.add(new var<std::string>("two"));
 
@R.MartinhoFernandes lol, best thing I've heard all day
 

« first day (902 days earlier)      last day (4050 days later) »