« first day (992 days earlier)      last day (3965 days later) » 

11:00 AM
#urlplz
 
@R.MartinhoFernandes I have no idea what Vanuatu is, vaguely heard of it I guess
 
it's an island nation located in the South Pacific Ocean
 
man
I have been an idiot, I owe my parents rent and I have no money.
 
They're an Olympic Games participant
> owe my parents rent
@Telkitty猫咪咪 I don't
hah?
 
Ell
I don't know where Vanautu is o.O
 
11:02 AM
> telkitty isn't defined yet.
 
@LightnessRacesinOrbit buddies!
 
Ell
ahh
 
@Ell Then you're pretty fucking dumb, since two people just told you.
> An annoying austrailian/oriental person who inhabits Continuum, has a voice that could kill the def, is idiotic beyond any human potential, and is trying to break the record for "Most people pissed off by one person."
 
Ell
@LightnessRacesinOrbit hence the "ahh". And jeeze calm down
 
> Telcat is a fat whore who needs to have her throat cut.
That's not very nice
 
11:03 AM
@DeadMG It's part of the Commonwealth.
 
also, "def"?!
 
@LightnessRacesinOrbit Ow.
 
> tomalak isn't defined yet.
phew
 
I did not say my enemies are literate ... I am amazed how many people spent time editting my pictures and add me an entry in urbandictionary
2
 
@Ell Using adult language doesn't mean I'm non-calm. It means I'm an adult.
(inb4 "no it means <...>"
> Graphical depiction of Vanuatu's product exports in 28 color-coded categories.
 
11:05 AM
Thanks?
 
I wonder what "Special floating structures" are.
 
houses probably
 
Don't be silly, houses don't float.
 
11:10 AM
That's a boat.
 
that's a house.
Houseboat!
 
Maybe not relevant.
 
@R.MartinhoFernandes Tell that to the city of Venice.
 
@R.MartinhoFernandes I liked "I'm on a boar" version better
 
<- will be on a boat for a week, part of some reality show thingie (just got the news (speaking of boats))
 
11:11 AM
@refp #urlplz
 
@refp since when they get programmers to participate in reality shows?
 
@BartekBanachewicz He's a model.
Also.
Beauty and the Geek is a reality television series that is an international franchise, the U.S version is shown on The CW. It has been advertised as "The Ultimate Social Experiment" and is produced by Ashton Kutcher, Jason Goldberg and Nick Santora. The premise of the show consists of a group of "Beauties" (young women who have relied primarily on their looks) and a group of "Geeks" (young men who have relied primarily on intellect rather than social aptitude or looks) who are paired up to compete as couples for a shared $250,000 and other prizes. (For the fourth season, the producers m...
 
@BartekBanachewicz I'm also a male model/actor/musicboy
 
Don't ask me how I know about this because I don't.
 
@R.MartinhoFernandes No way I'm clicking that.
 
11:12 AM
@LightnessRacesinOrbit don't think there is one yet
@LightnessRacesinOrbit but it's part of this theyachtweek.com, kanal5 (a swedish television channel) wanna put 4-5 "interesting" people on a boat for a week and see what happens
 
horrible horrible horrible joke suppressed
 
> Mindi promised Richard that if they won the competition, she would make out with him. On the aftermath show, Lauren attempted to make out with Richard, but Richard refused. After the host asked Richard asked the question that Richard lost with, Mindi feeling confident of Richard not knowing the answer again promised a make out session. Mindi initially was struggling with the notion, but stood up and made out with Richard. It was a quick french kiss with some tongue action
 
from what I've heard you will be on the boat for a week riding around the islands partying at night, doing other shit during the day (like diving etc etc)
 
Your country is fucking retarded
@refp 5 men in a failboat?
 
@LightnessRacesinOrbit nhaa, I think there will be three girls and two guys (it's mixed anyhow)
 
11:14 AM
@LightnessRacesinOrbit Is that from my link above?
 
1001 helpful flags, I'm cooler every day :P
 
@R.MartinhoFernandes yes
 
Hello lads
 
lolwut, why is that on wikipedia :|
 
11:18 AM
got some pictures from the paul smith show in paris, if this isn't "fashion angry" I don't know what is; fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-frc1/…
 
@StackedCrooked well that's not surprising is it?
 
You don't know how stupid I am.
 
speaking of nothing at all, how does this really work?
template<unsigned... Indices>
struct indices{
  using next = indices<Indices..., sizeof...(Indices)>;
};
template<unsigned N>
struct build_indices{
  using type = typename build_indices<N-1>::type::next;
};
template <>
struct build_indices<0>{
  using type = indices<>;
};
template<unsigned N>
using IndicesFor = typename build_indices<N>::type;
I never write my "build_indices" that way, and can't figure out the steps the compiler takes to make it work.. how is the ::type::next and.. everything else joined together?
 
Xeo
Just go through
 
I always write it like (or similar to):
 
Xeo
11:21 AM
for build_indices<0>, you get an empty list as type, with a typedef next as indices<(empty expansion,)0>
 
-1
Q: How much time does processing of command-line arguments take in C/C++?

DeepakKSay if a C/C++ program A takes a number 'N' as a command-line argument and executes a function. Another C/C++ program B has 'N' hard coded inside the program and does not take any command-line argument and executes the same function as that of A. When performance of A and B are compared, how m...

of the day.
 
@ScottW I know sweetheart.
 
This one is particularly silly because it doesn't even have programs to benchmark.
 
template<size_t... Ns> struct Indices {};

template<size_t N, size_t... Ns>
struct build_indices {
  using type = typename build_indices<N-1, N, Ns...>::type;
};

template<size_t... Ns>
struct build_indices<0, Ns...> {
  using type = Indices<0, Ns...>;
};

template<typename Tuple>
typename build_indices<std::tuple_size<Tuple>::value-1>::type
make_indices (Tuple const&) {
  return {};
}
@Xeo that's the relation I don't get, what is going on.. ? :(
 
Xeo
for build_indices<1>, type is indices<0>, with next as indices<0 (expansion), 1 (size of the list, which only contained 0)>
 
11:23 AM
The A/B will be faster. — Bartek Banachewicz 5 secs ago
 
That's genius.
 
Xeo
build_indices<2>::type == indices<0, 1>, indices<0,1>::next == indices<0,1,2>
and so on.
 
@Xeo there's some fundamental knowledge I'm missing out on it seems
still can't process it in my head to be honest
 
Is double() == 0 always true?
 
Xeo
11:26 AM
@refp Starts with indices<> and takes ::next N times.
So for build_indices<2> you have indices<>::next::next
 
@R.MartinhoFernandes I normally never use == with floating point numbers. I guess this can be an exception.
 
@StackedCrooked What? Comparing to zero?
 
@StackedCrooked == works, just not usually as expected
 
user784668
@BartekBanachewicz not if your compiler or CPU is buggy
 
@Xeo oh, thanks! things are falling into place now
@Xeo any real advantage of doing that over what I usually write, besides it looking cool?
 
11:30 AM
@Fanael oh, that's assumed pretty much every time, no? (ehhh MSVS)
 
Xeo
IIRC, it can reuse the "lesser" (<N) instantiations, because it starts from 0 instead of N.
So if you have build_indices<4>::type and build_indices<5>::type, the latter can reuse the instantiations of the former.
 
@Xeo oh yeah, right!
@Xeo thanks a lot mate
 
Xeo
no problem
I prefer my log N indices, though :3
but for quick-n-dirty, I use what you wrote
Since its simple and much shorter
 
do you think you could help out with my question stackoverflow.com/questions/17447572/…
 
@Xeo what does that look like?
 
11:35 AM
@ALL: For those to whom IT does not matter, please know that you and your answer here does not matter either. Kindly save yourself some time and effort. I am looking to go deep into the difference and understand the computation process. Perhaps, somebody with a deep insight into compilers can guide? — DeepakK 4 mins ago
 
Xeo
6
A: Implementation C++14 make_integer_sequence

XeoHere's a log N implementation that doesn't even need an increased max-depth for template instantiations and compiles pretty fast: // using aliases for cleaner syntax template<class T> using Invoke = typename T::type; template<unsigned...> struct seq{ using type = seq; }; template<class S1, cla...

 
@R.MartinhoFernandes I can't even... ^
 
@Xeo oh snap, nice!
@H.J_Rios instead of making your question a follow-up you should put as much information as possible in your own question, digging through questions linking to questions linking to questions is tedious work for someone who wanna help you out
 
@refp thanks I think I will edit my question a little more and see what I can come up with
 
Urrgh...
 
11:46 AM
WOW
note: override this message by inserting an explicit cast
Clang ftw
 
What happens on Independence Day anyway? Did US citizens get pissed last night or do they wait until tonight?
 
They have fireworks or something.
 
Ell
Clang diagnostics are the bomb
also my callback dispatcher causes segfaults xD
 
I'll bet it does.
 
@Ell Meh, they are merely average.
 
11:51 AM
 
Yeah, they do what should have been done the first time around.
 
Ell
@R.MartinhoFernandes They read so much easier than gccs, with colours and lines and whatnot
 
@refp is this an improvement ? stackoverflow.com/questions/10998105/…
 
Actually, they suck sometimes.
 
11:52 AM
@Ell new G++ is good too
 
Ell
I have only got 4.7.2 actually
 
I do like clang's template error tuning features.
 
ooooold.
 
Xeo
@R.MartinhoFernandes What do you build your average on? :P
 
user784668
@Xeo [Clang, Clang, Clang]
 
11:55 AM
@Xeo All possible quality levels.
 
user784668
Is struct Foo { Bar member{5, 4, 3}; }; legal in C++11?
 
user784668
Assuming that Bar has appropriate constructors.
 
think so
or you might have to yse =
 
@Ell FWIW, -fdiagnostics-color=always gets you those same garbage features.
 
Ell
oh right cool
 
user784668
11:58 AM
Will ask Clang.
 
Basically, -fdiagnostics-show-template-tree and -felide-type are the only two error things I miss from clang.
 
user142019
While we're talking about errors anyway, is there a way to tell GCC to collapse template arguments that are inferred from their defaults (such as the allocator in std::vector<int>) in error messages?
 
user784668
@R.MartinhoFernandes what do they do?
 
First one displays template-ids as a tree, and second one elides common portions (basically diffs stuff).
 
user784668
Clang thinks it's okay.
 
user784668
12:01 PM
So does GCC.
 
user784668
Other compilers lag behind in terms of C++11 so they don't count.
 
They are both easy to emulate as an external filter though, since they don't actually depend on any internal info and can be done purely in terms of the text of the error itself.
 
@Fanael MSVC is trying. But it sucks. :c
 
Xeo
@Fanael Yes, brace-or-equal initializer
 
I'm tired, bleary-eyed, and hurting.
.... Let's code Wide.
 
12:05 PM
huh
is codepuppy down for anyone else, or just me?
 
user784668
 
@Xeo Psst. Do you play any games?
 
Xeo
Yes. No. Maybe.
 
@DeadMG Doesn't seem to load here.
@Xeo Hey, that's my line.
 
user784668
12:10 PM
@R.MartinhoFernandes Yes. No. Maybe.
 
Xeo
"I didn't expect that", likely
 
user142019
> Oops! Google Chrome could not connect to codepuppy.co.uk
 
yeah
I'm not entirely sure what's wrong, I think that the web hosting is down.
 
user142019
This one works though. :D
 
I want to play Dark Souls with more people. =[
 
12:12 PM
@DeadMG Don't they have a status page you can check?
 
should do somewhere, but I can't currently fin dit
 
@R.MartinhoFernandes inb4 "hosted on their own servers"
Hm.
If I have a base virtual class,
 
......................
 
in that base virtual class, I should be able to implement virtual functions in terms of other (pure) virtual functions, right?
@ScottW Not for my whole use tree. Geez. :c
Um. Something like...
struct Meow {

     virtual void Arf () = 0;
     virtual void Woof () = 0;

     virtual void Bark () {
          Arf();
          Woof();
     }
};
 
12:18 PM
oh god
I have no ram
 
@ThePhD yep
 
They're not overridden yet, so not sure? I thing bark() would need to be virtual as well?
 
my system is swapping out
 
Doesn't have to be virtual.
That actually has a name.
 
@ScottW <333
 
12:19 PM
The non-virtual interface pattern (NVI) controls how methods in a base class are overridden. Such methods may be called by clients and overridable methods with core functionality. It is a pattern that is strongly related to the template method pattern. The NVI pattern recognizes the benefits of a non-abstract method invoking the subordinate abstract methods. This level of indirection allows for pre and post operations relative to the abstract operations both immediately and with future unforeseen changes. The NVI pattern can be deployed with very little software production and runtime cost....
 
there's no reason why any arbitrary member (barring con/destructors of course) cannot call any other arbitrary member- regardless of virtual or pure virtual.
 
@BartekBanachewicz downloadmoreram.com
 
Hmm...
 
It tends to provide more encapsulation if you make the virtuals private and only non-virtuals public.
 
note: override this message by inserting an explicit cast
                    1.0, 1.0, 1.0, static_cast<GLfloat>(ALPHA_REF_VALUE)-0.05,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   static_cast<GLfloat>(                     )
thanks Clang, U so helpful
oh wait, it actually is
 
12:21 PM
@BartekBanachewicz It is, and you derped.
 
@ScottW Private.
 
user784668
ITT: Bartek doesn't know how to read
 
@Griwes I derped indeed.
 
If you make virtuals public, you have absolutely zero chance to enforce preconditions.
 
How can you override them, then?
 
12:21 PM
@MartinJames C++ allows it.
 
@R.MartinhoFernandes Huh?
 
@BartekBanachewicz I don't get it.
 
It amounts to providing a well-defined interface for extension and another for use.
 
I'm confused enough today as it is, now this :(
 
@DeadMG look at 0.05
 
12:24 PM
@MartinJames Private only prevents calling it.
 
@BartekBanachewicz So you cast to a float, then float - double = double, so Clang warns again?
 
@DeadMG yes. Actually errors, not warns.
 
So the base class has total control of when such function gets called, but allows it to be overridden.
 
oh, I just saw the bracket placement in the suggested cast is actually subtly different.
 
@DeadMG ... exactly
 
12:25 PM
@BartekBanachewicz Er, isn't GLfloat just float?
 
@DeadMG it is, why?
 
isn't implicitly casting from double to float Standard?
 
Xeo
Narrowing conversion
 
not in C++11
 
@R.MartinhoFernandes Ok, I'll try paracetamol first.
 
Ell
12:25 PM
This is a fun backtrace! coliru.stacked-crooked.com/…
 
I thought those were only banned in uniform initialization/initializer lists
 
Ell
tbf I already know where the problem is
 
@DeadMG it's an array initializer, compilation log doesn't show it
 
orite
that context I did not know.
 
Pffft.
Context is overrated.
 
Xeo
12:26 PM
@BartekBanachewicz Wait, then why doesn't it warn / error for the 1.0s before that?
 
ah
codepuppy is the back.
 
@Xeo they are constants. (At least I think it's because of that)
 
@DeadMG Any {}-initialisation.
@Xeo It's not narrowing.
 
Xeo
Oh, it actually checks for constants?
 
1.0 is perfectly representable in a float.
 
Xeo
12:27 PM
Didn't remember that from the standard
 
@Xeo Floating point conversions are not narrowing if the value is representable in the target type.
 
Ell
I think I'll have some food
 
I'm living on coffee today. Need to lose weight b4 my vacation. I look too, err.. 'gravitationally challenged' and the low-cost airline may start weighing pax and charging accordingly.
 
@MartinJames Wait, they do that?
 
12:37 PM
Well, there are already baggage weight restrictions, so it's always a possibiity, esp. with R*****r.
 
A friend of mine dreams of that day.
He says fat people should pay two tickets if they are going to use two seats.
 
I guess that it would be promoted as 'discounts for lighter passengers'.
 
@MartinJames How much do you want to lose?
 
@DeadMG 10kg+
 
@MartinJames I flew with them to Linz and I didn't get charged for two seats. I actually didn't find the seat size a problem.
@MartinJames In what timeframe?
 
12:40 PM
@DeadMG I go on Sep. 10, so ~ 10 weeks.
 
@MartinJames Just tell your wife about it and maybe she will force you to starve as punishment.
 
hmm
1kg/week isn't too undoable
if you already weigh plenty and are happy to cut quite a few things
 
@DeadMG My biggest problem is beer. I need to keep out of the boozer for a few nights a week.
 
I would look like a starving kid if I lost 10kg.
Walking skeleton.
 
ow my arse suddenly hurts so much
 
user784668
12:42 PM
I would be dead if I lost 10kg.
 
@DeadMG The chair is upside down.
 
@R.MartinhoFernandes Anne is now fully informed re. vacation. I told her after her darts team had won and she was fully primed with rum & coke.
 
no
 
@MartinJames lol
 
it's the gallstones trying to round some bend in my colon, I think.
 
12:43 PM
Are you chatting on the loo or something?
 
no
 
@DeadMG Oww!
I cannot chat on the loo at home - for some reason, there is no signal in there.
 
@MartinJames The signal is crap.
 
@R.MartinhoFernandes that joke was piss-poor
 
that was such a shitty pun
 
12:45 PM
@R.MartinhoFernandes LOL!
 
@LightnessRacesinOrbit Beat you to it.
 
@DeadMG no, you didn't. you said "shitty"; I said "piss-poor". you didn't beat me to anything!
 
you had to edit yours
 
my confidence is at negative infinity right now
 
It's actually quite strange - no 3G and no Wifi, even though the Wifi box is almost overhead in the office.
 
12:46 PM
no way to find seconds timestamp for msg history :(
 
@TonyTheLion don't worry, it could always be at negative uncountable infinity
 
@DeadMG thanks for the confidence boost
 
Ell
@TonyTheLion why? :(
 
@R.MartinhoFernandes Doesn't include edit.
 
12:48 PM
Oh, that.
 
@Ell cause terrible code and I apparently suck
 
Ell
@TonyTheLion You don't suck :O
who says you suck? o.O
 
@Ell The terrible code.
 
supposedly
 
I just feel like I suck, because 90% if the things I write and check in, end up coming back to me, not working in some fashion
mostly turns out the original problem was more complex than originally anticipated
 
Xeo
12:49 PM
Do you test them before checking in?
 
how the fuck am I supposed to know that?
 
@TonyTheLion Assume it all the time!
 
@Xeo yes, and they always "appear" to work
 
@TonyTheLion write better code.
 
well
if you're working in a giant codebase then it's to be expected that you take a little time to find your feet in it
 
12:50 PM
@BartekBanachewicz heh
 
especially if you keep changing areas or something
 
damn I should be home studying
 
Xeo
@TonyTheLion I also had to go and redo some things several times, but that's because those fuckers kept changing their mind. :/
 
Ell
damn I have to go :'(
I will be without coding for at least an hour :O
 
@DeadMG I have found that to be very hard, because I find this code hard to follow and understand
 
Xeo
12:51 PM
@TonyTheLion Get a better job
 
@Ell don't worry, after friday we can go on the spree.
 
has mostly given me the feeling I'm getting more stupid
 
well what can I say
 
depends on the code, really.
 
Xeo
@BartekBanachewicz the Spree? How do you plan to code on a river?
 
12:52 PM
without seeing it no judgement can be delivered.
 
I've been adding static_casts for the past 3 hours
@Xeo the Coding Spree, silly.
 
@BartekBanachewicz Hmm, that's a good plan.
Let's hope it's sunny.
 
@Xeo Yeah - work all week on some horrible interface then, when working-ish, horrible-interface-guy says in progress meeting "I changed my interface - it was horrible".
 
Xeo
@BartekBanachewicz See, Robot got the joke!
 
@Xeo TBH I only knew "spree" in the sense I've used it
 
12:54 PM
@MartinJames Cue unimaginably horrible interface to replace the merely bog-standard-horrible interface you had before.
 
Xeo
There's a river going through Berlin that's called "Spree".
 
@BartekBanachewicz Spree is the river that crosses Berlin.
 
@R.MartinhoFernandes Yup :)
 
The Museum Island is an island in the Spree.
 
12:58 PM
I did see the Spree while I was there. There also seem to be many tributaries and canals. The banks seem to be trees or bars/restaurants. I like Berlin :)
 
Did you see the Badeschiff?
The Badeschiff (in English, "bathing ship") is a floating public swimming pool in Berlin, the capital city of Germany. Situated in the East Harbour section of the River Spree, the Badeschiff allows citizens to swim in a sanitary environment near the river. The Spree itself is far too polluted to permit safe bathing. The Badeschiff opened in the summer of 2004 as an art project organized by the Stadtkunstprojekte (City Art Project Society) of Berlin. It was created by local artist, Susanne Lorenz, to enliven city life along a long-neglected stretch of the Spree. The pool was converted fr...
 

« first day (992 days earlier)      last day (3965 days later) »