« first day (952 days earlier)      last day (3991 days later) » 

user142019
12:00 PM
There's been a war between the USA and every other country in the world.
 
No there has not!
You lieer.
 
user142019
s/is/has/
 
user142019
Ok
 
user142019
Tijd om op te fucking staan.
 
@rightfold provide a link to references about the American-Swiss war, please?
 
yiz
12:02 PM
American Australian war!
 
and the America-Vatican one, that must've been an interesting one
 
user142019
@jalf Maybe I should provide a link to donttakerightfoldseriously.com.
 
America vs Belgium would be funny
 
@jalf Also American-Icelandic, American-Cypriot, American-Ukranian
@StackedCrooked Belgium would win.
 
obviously. we'd trample all over them
 
user142019
12:03 PM
The Netherlands vs Morocco would be great.
 
@StackedCrooked nice, church you got there.
 
@rightfold lol, your town sucks :P
@bamboon never been there :)
I mean inside of it. I walk by it very frequently.
 
user142019
Sint Willebrord is awesome, by the way.
 
yiz
12:10 PM
anyone could edit wiki
 
user142019
Monthly shootings.
Lots of drugs.
Underage drivers hitting buildings.
Firework bombs.
Most people are legally jobless (i.e. they moonlight).
 
user142019
@StackedCrooked There are more people in my former high school than there are in my town.
 
awesome
 
@rightfold : I'm having trouble with using django + bootstrap
have you tried it?
 
user142019
Uhm.
 
user142019
12:13 PM
Using Bootstrap with Django isn't even slightly different from using it with anything else.
 
user142019
It's like, a CSS file.
 
followed the instructions here, docs.djangoproject.com/en/1.5/howto/static-files
i know
but, for some reason it aint working
 
user142019
Oh static files in general.
 
user142019
> During development, this will be done automatically if you use runserver and DEBUG is set to True (see django.contrib.staticfiles.views.serve()).
 
user142019
In production, use nginx or a CDN.
 
@Rapptz my birthday was 15hrs ago...
 
@Jeffrey mine is in three months
 
Ok.
 
yiz
happy b'day ... your b'day is so close to one of my best friends'
 
yiz
12:31 PM
I need to get her a present, but then there are so many other things I need to do ... sigh
 
the nextmost thing I should do is file-local unscoped usings, like using x.y.z;
 
I really should stop referring to peoples kids as their most derived object. I sound like a dork
 
hmm
I wonder what code Clang generates for postfix increment..?
 
yiz
some days people maybe clone themselves
would that be derived or cloned?
 
Apparently there is a .me TLD.
 
12:44 PM
@Pawnguy7 demonoid.me
 
what is that?
 
a torrent site (and probably the most famous .me site ever)
 
Ah.
 
@Pawnguy7 how's the game comin?
 
What do I call a function that goes e.g. std::tuple<T...>& -> std::tuple<T&...> or std::tuple<T...>&& -> std::tuple<T&&...>?
 
12:48 PM
@LucDanton DeepFinger
 
@DeadMG Just FYI ~ is quite inconvenient to type on non-english keyboards
 
@NikiC So are [ and { :s
You can't win on that front.
 
@LucDanton You have a point. I just thought it's a better argument than "Using ~ for not is fucking ugly" :)
 
Not to mention ^, ` when they are deadkeys.
 
Xeo
@NikiC mm, I don't think it's bad.
It lies quite nice actually
@LucDanton Tuples only?
 
12:51 PM
@CaptainObvlious Ehm... well, I still don't get conveex hulls. I think I should work on another task. (like highscroes or the ships)
 
It's coded against the Tuple concept, not std::tuple per se.
 
@Pawnguy7 That's usually best. Clear your head and come back to it later
 
I used to call such a function view, but I also use that name for ranges. So I have view and tuples::view, which I think is needlessly confusing.
 
I have noticed that. One night you feel like leaving the projec tall together, yet you want to try again in the morning... odd stuff.
 
Xeo
Hm, nothing really comes to mind :/
 
12:55 PM
Someone needs to make program that creates a "RAID" of Dropbox, SkyDrive, Google Drive.
 
Xeo
Wow. I just noticed that that this question actually got deleted
Ahahaha
@StackedCrooked You mean a union fs?
Or that it mirrors everything?
 
More like RAID-5.
Each service offers 5 GB for free. I'd like to combine them into one big drive.
 
Damn, I just took a look at n3690 and I don't get the changes to the rules of the value category of a member access :/
I thought C++14 was going to have std::pair<int&&, int&&> { 0, 0 }.first as an xvalue :(
But now std::make_pair(0, 0).first is an xvalue instead of a prvalue?
 
Xeo
@LucDanton Wat.
What kind of madness is that?
 
> If E1 is an lvalue, then E1.E2 is an lvalue; otherwise E1.E2 is an xvalue.
Used to be:
> If E1 is an lvalue, then E1.E2 is an lvalue; if E1 is an xvalue, then E1.E2 is an xvalue; otherwise, it is a prvalue.
 
yiz
1:00 PM
you two always have a conversation here, are you two school mates or something?
 
That breaks code relying on auto&& i = std::make_pair(0, 0).first; right?
 
Xeo
auto&& f = gimme_pair().first; currently extends the life-time of first, right?
 
Great minds etc.
 
Xeo
lol
 
0
Q: Combine multiple online cloud storage services into one drive?

StackedCrookedDropBox, Google Drive, SkyDrive, etc.. all provide a limited amount of free online storage. Is there a way to combine them into a single mounted drive? Ideally it would distribute the data similar to how a RAID-5 system works. Does something like this exist?

It would be nice :)
 
Xeo
1:04 PM
There's also OwnCloud IIRC
Maybe one can use that?
 
1651. Lifetime extension of temporary via reference to subobject
Section: 12.2 [class.temporary] Status: drafting Submitter: Richard Smith Date: 2013-04-15

The resolution of issues 616 and 1213, making the result of a member access or subscript expression applied to a prvalue an xvalue, means that binding a reference to such a subobject of a temporary does not extend the temporary's lifetime. 12.2 [class.temporary] should be revised to ensure that it does.
 
ARGH
VS Y U CRASH WHEN I'M TRYING TO DEBUG :(
 
Xeo
@LucDanton Richard. <3
 
@DeadMG You have low ram ?
 
lolno
and even if I did, being out of RAM is no excuse since virtual memory
 
1:06 PM
1213 is fixing a[0] to not just be an lvalue even if operand is an rvalue array -- I think that's smart, and useful for constexpr trickery.
 
Xeo
There was also some other problem with rvalue-ref subobjects and temporary objects, wasn't there?
 
It's an lvalue or xvalue depending but never a prvalue.
@Xeo 'Subobjects'?
 
Xeo
@LucDanton members, I should say
 
@Xeo Interesting.
 
For aggregates? struct foo { int&& ref; }; foo { 0 }?
 
yiz
1:08 PM
This freaking perl Cgi + php thing is sending me to the lowest hell of depression
I feel as useful as a tuna in a desert
 
Xeo
Nah, I meant when accessed as gimme_foo().ref. Maybe I'm just misremembering
 
yiz
I copy working code into my real program and it stopped working
but it was working!!!
 
So suppose that 1651 above is solved by changing extension rules -- what would be the purpose of making access (member or array) never a prvalue? Purity? i.e., I could see such an access be a reference to an expiring location, so to speak.
@Xeo Oh, that's not so much to do with temporaries but value category.
Isn't it?
 
Xeo
Well, yeah
 
616 is Definition of “indeterminate value”
 
Xeo
1:11 PM
Something about .ref having a "wrong" (read: unexpected) value category
 
yiz
I need comfort and re-affirmation
 
which resolution somehow incorporated "...If E1 is an lvalue, then E1.E2 is an lvalue; if E1 is an xvalue, then otherwise E1.E2 is an xvalue --- ; otherwise, it is a prvalue. ---"
 
yiz
my self esteem is as high as the deepest part of ocean @ the moment
 
Might as well give up here.
 
Xeo
lol
 
1:13 PM
@Xeo That was what I was investigating at first.
 
Xeo
"...If E1 is an lvalue, then E1.E2 is an lvalue; if E1 is an xvalue, then otherwise E1.E2 is an xvalue; otherwise, it is a prvalue an xvalue."
worksies :P
 
yiz
I feel so low I don't even feel like trolling :'(
 
I've been using C++11 rules for qualifying_value_category_of, and I was wondering if it made sense to start using what I thought were going to be C++14 rules.
 
yiz
I would like to cry but I drank too much coffee and is dehydrated, I could go drinking, but that won't solve any coding problem
why why why!
I feel as bright as a blackhole
 
Btw I like having access to n3690 but doesn't the SC produce those diff'd drafts anymore? Or does one have to build them themselves?
Ah well, doesn't matter too much. I can keep using C++11 rules. I thought I would have needed to change that but as usual TupleElement does its magic.
I think I've found a concise way to explain the SNAFU:
static_assert( std::is_same<decltype( std::get<0>(std::pair<int&&, int&&>{0,0})) ), decltype( std::pair<int&&, int&&>{0,0}.first )>(), "Why?" );
That doesn't fire up though.
main.cpp:6:5: error: static assertion failed: Why?
     static_assert( std::is_same<int&, decltype( std::pair<int&&,int&&>(0, 0).first )>(), "Why?" );
     ^
Maybe I should file that.
Oh, my bad. It's that decltype behaviour again.
static_assert(
        std::is_same<
            decltype(( std::get<0>(std::pair<int&&, int&&>{0,0}) ))
            , decltype(( std::pair<int&&, int&&>{0,0}.first ))
        >()
        , "Why?" );
 
yiz
1:27 PM
pastebin please
 
Xeo
@LucDanton Does that fire?
 
Yes.
 
Xeo
Huh
 
decltype( E1.E2 ) is entity-decltype, not expression-decltype.
 
Xeo
Ya
But how can that assert fire?
Or am I getting my value categories wrong?
 
1:30 PM
Well that's C++11 for you.
 
Xeo
Wait, is .first actually an lvalue there?
 
Yup.
 
Xeo
Mhm
 
Xeo
Because "a named rvalue ref is an lvalue", huh
 
1:31 PM
Member access is 'principled': references don't 'own' their referees so such access don't propagate the rvalue-ness to prevent stealing from what could effectively not be an actual part of the rvalue.
 
Xeo
@StackedCrooked rvalue object, lvalue ref parameter
 
Tuple access is pragmatic: std::forward_as_tuple allows for tons of cool stuff.
 
@Xeo right
 
hy all
 
yiz
Info& != Info
 
1:33 PM
In the end because binding rvalue references involves an rvalue I think that the pragmatic approach should win out here.
 
Is it bad to cast constness away on a rvalue? Like here.
 
Xeo
Where's the rvalue ref?
Also, yes.
T const x; std::move(x) << y;
 
Sorry, I meant temporary bound to const ref.
@Xeo But I don't do that :)
 
Whoah my qualifying_value_category_of is actually a mess. Qualifying<int, int&&> is int&& and Qualifying<int&&, int&&> is int&. That's dumb.
Eh, I'll think about it later. brb shower
 
Xeo
Don't cast away const unless a) you know 100% that the original object was not declared with const or b) you know 100% that the object won't be modified.
@LucDanton lol
 
1:36 PM
int8 i = 0; damn C++ habits...
 
Don't you just love it when an unknown number of bugs are giving you pages and pages of template errors, then you fix one thing and suddenly all the problems evaporate and hundreds of lines become redundant, then nothing at all goes wrong as you slash and burn them away?
 
yiz
that's it, I found a better way to 'curse' C++ developers: I curse you with thousands and thousands of template bugs in your core library! May you wasting days re-compiling your code!
 
@yiz The United Nations says we should eat more bugs. Template bugs are nutritious.
I just find it amazing that GCC can chew through this without crashing:
template< typename ... acc_config, typename in_config, typename ... args >
derived_stage( typename std::enable_if< sizeof ... ( acc_config ) != sizeof ... ( config_types )
		&& ! std::is_convertible< in_config, typename util::tuple_element< sizeof ... ( acc_config ), decltype( configs ) >::type >::value, tag >::type,
	std::tuple< acc_config ... > && cacc, in_config && c, args && ... a )
	: derived_stage( tag(), std::tuple_cat( std::move( cacc ), std::make_tuple( util::make_implicit_thunk(
		std::bind( & base::template get_config< typename std::tuple_element< sizeof ... ( acc_config ), std::
^ That's a recursive constructor.
 
Xeo
That looks just horrible
 
le wat
 
1:52 PM
@DeadMG It takes a pack of parameters which might or might not be what we're looking for (a configuration object). If the next parameter isn't the config, then schedule a query the base class for a config for once the base has been constructed: create a thunk from a bind expression and add it to a tuple. Move on to the next config.
 
Why?
 
@StackedCrooked not really
 
I see.
 
Colour blind people don't see things in black/white you know :P
 
I'm partially color blind.
 
yiz
2:12 PM
speaking of which I had fun mixing colour for the doors in the new house
originally the colour was mixed to be light chocolate
but it turned out to be too red
ended up adding yellow, black and heaps of white
 
When are default template arguments instantiated? It seems that a default function argument of a function template isn't automatically instantiated until the function is called such that it's used. But a default typename = xyz<blah> instantiates xyz<blah> right in the declaration.
 
@Xeo Yo, I knew there was something wrong with having E1.E2 be an xvalue at best while adding an exception to lifetime extension:
template<typename T> decltype(auto) foo(T&& t) { return std::forward<T>(t).bar; }
 
decltype(auto)?
 
Oh wait that's an xvalue. Nevermind, make it return std::make_pair(0, 0).first; or something.
 
Xeo
Indirect binding, huh?
 
2:16 PM
Clang extension?
 
Xeo
@Potatoswatter C++14
Perfect-return-type-deduction
 
Why didn't they just make it auto with no trailing-return-type?
 
Xeo
(Is what I call it, anyways)
 
Xeo
@Potatoswatter That's also there, but always makes a copy
and auto&& is always a reference
decltype(auto) is T& for lvalues, T&& for xvalues and T for prvalues
 
2:18 PM
I vastly prefer my explanation.
3
 
Xeo
hrhr
 
Hmm… they should have made auto && do what decltype(auto) does and you can return forward<>() if you want a reference.
 
Xeo
My little Lounge: C++ is decltype(auto)
3
 
whatever.
 
@Potatoswatter ikr!
 
2:19 PM
@LucDanton ???
 
Xeo
@Potatoswatter Nah, inconsistent
 
Why would anyone want to return a reference a la auto&& anyway?
 
@Potatoswatter decltype(auto) isn't auto&&.
 
yiz
I reckon C++ developers on SO has the highest percentage of 10k+ rep users without a customized avatar
 
I get the sense that C++14 is being rushed. I want the right thing, not to get the prototype standardized faster.
@DeadMG Yeah, @xeo explained nicely.
gtg movie nite :)
 
Xeo
2:21 PM
decltype(auto) is the right thing. IMHO, anyways. Having auto&& do perfect-deduction would be highly inconsistent
 
@Potatoswatter They are rushing it- by aggressively cutting everything that isn't ready.
 
Xeo
dynarray :|
And leaving out array_ref...
 
I'm shedding no tears over array_ref
but adding in dynarray was the bad.
 
Mar 14 at 3:24, by Luc Danton
@Xeo Great paper. Changing auto&& i = prvalue; would be for the best, I would think.
 
so what exactly is a technical recruiter? How does it work?
 
2:25 PM
On Windows, how do I open up the command prompt in System32? Normally I could shift right click, but that isn't an option anymore
 
@Pawnguy7 Why?
 
@Pawnguy7 Windows button -> cmd -> enter -> cd .. -> cd .. -> cd Windows/System32
 
Xeo
@Borgleader cd %windir%\system32
 
or that
 
Never mind. Apparently it doesn't work while searching. I was trying to help somebody find ipconfig, and they thought it was a folder.
 
Xeo
2:31 PM
Uhm
Why would they want the "ipconfig" file?
 
> GCC 1.17, upon finding a #pragma directive, would instead attempt to launch commonly distributed Unix games such as NetHack and Rogue, or start Emacs running a simulation of the Towers of Hanoi.
 
@Xeo running it from cmd.exe didn't have it, system path missing somehow maybe
 
Xeo
@Pawnguy7 ... excuse me?
How did he manage to do that?
Or, well, nvm. I don't even want to know.
 
I have no idea
Googlign seems to indicate it has happened to more than them though.
 
just make him type C:\Windows\System32\ipconfig
 
2:35 PM
Uh
Change your path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\Syste‌​m32\WindowsPowerShell\v1.0\
 
programs shouldn't work if that's not on PATH anyways
it contains all system DLLs
 
Assuming Win7
 
I don't know, all they said is that it didn't recognize it, and they type it right.
 
we can't remotely psychically debug their problem
whoever "they" are
 
~they~
 
2:37 PM
I wasn't asking you to?
 
oh, and shift right-click does work
then you can run cmd as admin
 
no it doesn't
 
I know, it just doesn't work when you are searching in the bar, I figured out.
 
some versions of Windows don't have that option when shift-right clicking in some folders
 
you can definitely enable that.
 
2:40 PM
there's no option for it here
 
@DeadMG what windows would that be?
 
7 x64
 
which version?
 
Pro, I think
ye
 
your configuration sucks.
 
2:42 PM
lol
 
I could check my work PC on Monday, it's a Pro as well. Here on Ultimate and Home Premium it has always worked.
Correction: Windows sucks.
 
it works in some folders
but not all
 
you don't do it on folders
I was talking about the Run as Admin option.
 
you do
 
typo
works fine in Windows and System32 though
 
2:44 PM
I think he was talking about run command prompt here
 
I wasn't.
 
I was.
 
Glad that's cleared out.
 
@Jeffrey Grow up kid...
 
2:51 PM
x := std.vector!(int8)();
Standard.Range.Delimited(1, 11) | ForEach(function(val)[&] { x.push_back(val); });
Standard.Range.Iterator(x.begin(), x.end())
    | Map(function(val) { return val * 2; )}
    | ForEach(function(val) { std.cout << test.to_string(val); });
yay C++ interoperation
 
@ShuklaSannidhya Said by a 15yo it acquires a whole new meaning...
 
Xeo
Wait, your range stuff is eager? Is there also a lazy version?
 
@Xeo Only ForEach is eager (and Fold, now I come to think of it).
 
Xeo
mhm
 
@Jeffrey Yeah... And the whole new meaning is - "Epic insult"...
 
2:53 PM
lol yeah
 
the rest is lazy
 
@Jeffrey I am just kidding
 
Xeo
@DeadMG Kinda hard to make fold lazy
 
@Xeo Yeah. Strictly, I could make it return a function that returns the value, or a range of one value, or something... but nah.
 
You better be kidding. I'm pretty pissed off right now.
 
Xeo
2:54 PM
@DeadMG Well, there is a fold-version that actually returns a range, and as such would make sense to be lazy
 
eh
I'm not really pissed about having an eager Fold
 
Xeo
@DeadMG Nobody said you should be
 
as for ForEach, practically the entire motivation to have it as well as Map is that ForEach is lazy
(and also that I didn't deal with unit properly anyway.. the Map function always has to return something)
er, ForEach is eager and Map is lazy.
you know, if there's a GHC-LLVM thingy, I wonder if it would be possible to introduce a haskell() to Wide.
 
Xeo
GHC has an llvm backend
 

« first day (952 days earlier)      last day (3991 days later) »