« first day (1459 days earlier)      last day (3479 days later) » 

10:00 AM
Thanks
 
@LightnessRacesinOrbit whore
 
@thecoshman xx
 
user1804599
@thecoshman it's terrible.
 
@Abyx His given name is a male Indian name, by the way.
 
user1804599
Concrete interface members or bust.
 
10:00 AM
@LightnessRacesinOrbit We've had someone that did something like that for trolling before.
 
@R.MartinhoFernandes Really?
@R.MartinhoFernandes That sounds really annoying?
 
Noun: complement (plural complements)
  1. (now rare) Something (or someone) that completes; the consummation. [from 14th c.]
  2. (obsolete) The act of completing something, or the fact of being complete; completion, completeness, fulfilment. [15th-18th c.]
  3. The totality, the full amount or number which completes something. [from 16th c.]
  4. 2009, The Guardian, 30 October:
  5. (obsolete) Something which completes one's equipment, dress etc.; an accessory. [16th-17th c.]
(14 more not shown…)
Verb: complement (third-person singular simple present complements, present participle complementing, simple past and past participle complemented)
  1. To complete, to bring to perfection, to make whole.
  2. To provide what the partner lacks and lack what the partner provides.
  3. To change a voltage, number, color, etc. to its complement.
okay that is bigger than I anticipated
 
@Rapptz that onebox is huge?
 
yeah
 
[tag:tomalak-so-?]
oh come on?
 
10:01 AM
You can stop now.
 
@R.MartinhoFernandes I can?
 
oh you're doing your fuckery
I'm slow on the uptake.
 
@Rapptz haha I love that it took you so long to notice?
wait, that was a real one
 
in my defence it was a valid question
 
@Rapptz yep
that was kinda the point ;p
 
10:04 AM
OK All bye have a good day
 
classmate #1: "but... do you think we know this language well enough? to complete a project?"
classmate #2: "no matter what we choose, we'll complete the project! we won't give up, no matter what!"
I can't believe I'm in a team with these guys
I'm not even sure how to feel about that
 
As I get older I appear to be gradually losing the ability to actually speak. :(
maybe I'm just noticing more and more how difficult it is to form words in the morning
or maybe I'm really ill and just don't know it yet...
 
@LightnessRacesinOrbit More likely you just suck.
 
10:09 AM
Can someone help a beginner?
 
Yeah you suck buddy.
Bad timing.
 
@LightnessRacesinOrbit You're terrible.
@Aditya You're worse
 
Oct 7 at 16:20, by Cat Plus Plus
Read the fabulous rules!
I'm kicking you temporarily.
 
Thanks for the support, guys!
@Rapptz Not an overreaction at all.
 
@LightnessRacesinOrbit It's only a minute.
 
10:11 AM
@Rapptz It was a minute overreaction.
 
Hey man. I take my code dumping seriously.
I can't sleep.
 
@Rapptz When you've gotta go...
 
Oh @Rapptz saw the rules but a little confused about them
 
Which part?
 
something like becoming a part of communiyt?
 
10:14 AM
To be fair, it's not clear.
The rules say you can ask questions but you can't but we're all a family and we're having fun and a community but you can ask questions in theory but don't ask questions please.
 
lol I guess so.
 
I've always said we need to would do better to clarify.
 
I don't even remember my password to the wiki
hopefully it's on my KeePass..
 
I don't even remember whether I have one. Except I think I do.
 
10:15 AM
I see an entry for it
@Aditya I guess it isn't as clear as it should be. It means that we really only feel comfortable answering questions from people who are regulars in the chat here. Unless the question is really interesting and someone wants to answer it. Code dumps are usually never tolerated regardless of who makes it though.
 
I'm basically starting making small programs and thought such small questions might not be suitable for site and you could answer that easily. Also I made mistake on my part too pasting whole code, crux of the problem is I'm having problem initializing an array. :( Too easy . The no. of elemnts are unknown
 
@Rapptz shut up with your puns
@R.MartinhoFernandes a what!!!
 
@thecoshman I didn't make a pun. That's how you spelled 'compliment'.
@Rapptz Don't see how I would have remembered it.. It's a random string.
 
@Rapptz o_0
 
@LightnessRacesinOrbit I honestly think it needs a bit of a tl;dr.
 
10:21 AM
bye, even though no one needs it
 
:<
 
@Aditya Use a vector and get better source material.
 
Xeo
wazzat
 
10:29 AM
Explosion in the making.
 
Xeo
'splosions!
 
That's the flashpoint of a temporal explosion.
 
I'm not sure how to refactor this properly.
 
@R.MartinhoFernandes that... is not much to talk about...
 
Inheritance sucks.
 
10:32 AM
if you're storing base pointers you're S.O.L.
 
@R.MartinhoFernandes There’s a post on /r/rust asking why Rust is going to have inheritance since ‘it’s not faster than variants’.
 
@LucDanton wtf
Why does inheritance mix so badly with RAII :(
 
Xeo
what exactly is the problem?
 
can this break in some non obvious ways I'm aware of
trying to clean up stuff
 
@Rapptz What kind of breakage?
 
10:37 AM
> Support:
> Visual Studio 2013 U3: No (Lack of constexpr support)
> Visual Studio 2014 TP: Almost (Lack of initialisation of arrays support)
 
Xeo
@Rapptz That doesn't allow checking of member function pointers. :P
 
@Rapptz illegible -.-
RIP C++
 
It does. You can’t call pointers to members.
 
man
I don't wanna drag invoke.hpp into this
 
> 2015: Visual Studio users support group meeting
 
10:39 AM
@LightnessRacesinOrbit Which part?
 
Xeo
> std::is_same<Return, R>
 
@Rapptz All of it.
 
Xeo
also, that is overly restrictive, IMHO
 
@Xeo How would you refactor that code above to fix the bug?
 
@LightnessRacesinOrbit RIP you.
@Xeo I guess I should use std::is_convertible or std::is_constructible
or whatever it is
 
user1804599
10:40 AM
7
A: Sing Happy Birthday to your favourite programming language

David CarraherMathematica- way too many bytes Happy Birthday to You Happy Birthday to You Happy Birthday Dear Mathematica Happy Birthday to You

 
> According to /r/cpp inheritance is not faster than variants
 
user1804599
neat
 
@Rapptz If you write something like void f(Sig* pointer, F functor); constrained to is_callable<F, Sig>, you can’t have a fallback overload in case Sig* is not a function pointer, due to the static assertion.
Qualified function signatures report false, I think. Which is different failure mode than passing a non-signature.
 
@LucDanton I don't see why this is an issue.
but then again I guess it probably is.
kind of weird though
 
10:43 AM
@Rapptz That’s why I asked what kind of breakage you want!
 
yeah I'm not denying it's a breakage
 
Let me help you: the trait, as written, does exactly what you’ve written, with no surprises.
@Rapptz I suggest you pick an associated expression or some other minimal piece of code that corresponds to the test.
 
the original is_callable was a mess so I'm trying to simplify it a little
:/
 
My own is_invokable/is_callable have served the purpose of correctly constraining e.g. result f(Functor functor, Args... args) { return std::forward<Functor>(functor)(std::forward<Args>(args)...); }
 
Xeo
Hm, I guess it makes sense to have two traits to check for convertible and constructible for the result type?
 
10:47 AM
are we going to turn into Lounge<Rust> one day
 
Although I’ve never really developed is_callable now that I think about it. Not flexible enough for void returns.
 
@Rapptz Just don't tell Bartek about it.
 
I oppose the motion!
Wait does this break for void?
 
Yes. No.
11 mins ago, by Luc Danton
@Rapptz What kind of breakage?
 
It's useless then.
 
10:49 AM
...
 
It's 7 AM
I'm not in the best state of mind atm
 
No it's not.
 
shh
 
Okay yes it is.
 
it seems everyone in Microsoft uses the same documentclass
 
Xeo
10:52 AM
@R.MartinhoFernandes oh yeah, about that - dunno, seems conceptually borked.
 
That's the default MS Word style
 
Even my jokes are bad.
 
Yay, more illegible crap
@Rapptz yep
 
:'(
 
10:54 AM
sozzles
you'll be funny by 8AM I'm sure
 
@Xeo Hence me calling it a refactoring instead of bug fix.
Even though I want it to be both.
 
what's the issue again?
 
Xeo
you'd need to extract all state necessary to perform the do_close and could save that into a std::function in the base, but eh
if the derived classes call the parent's do_close at any point... borked.
 
Oh, extract the state.
 
Ell
Dammit I lose 3 hours again
 
10:56 AM
@Rapptz cool, it's about stackless coroutines
 
Xeo
@Rapptz pure virtual call in a base-class dtor.
 
That's too messy and requires an additional protocol for clients.
 
Xeo
@R.MartinhoFernandes ye
 
Ell
I need to get up when my alarm goes off
 
@Xeo That I can just make private.
 
10:57 AM
@Xeo Taking ‘closures are objects are closures’ a bit literally here.
 
Xeo
@R.MartinhoFernandes ah, I was thinking in case they actually need to do so to perform their function
 
@Xeo Then they call close().
It's NVI.
 
Xeo
... true.
no, not true
they can't call close in their own do_close
 
Oh, you mean that.
 
Xeo
it's something I have to deal with daily in AS3 - always call the parent's implementation of something if you override it.
 
10:59 AM
Why would they call do_close in do_close, though?
@Xeo The parent has no implementation!
(Also part of the point of NVI)
 
Xeo
Well, if the hierarchy is just 1 deep, then no problem there
 
If the parent was not designed to be a base class, the problem is another.
 
NVI reminds me of the mess that is iostreams.
 
If you always have to call something in the parent, the parent should just enforce that and provide you an interface that doesn't require it.
I.e., when you're deriving, it's always just 1 deep.
 
I don’t see it.
 
11:03 AM
see what
 
The reasoning.
 
You don't need to care about the interface of the base of your base. Only the interface of your base matters.
 
The interface of the base meaning without seeing the base of the base (i.e. breaking is-a), or the complete interface of the base, including bits of the base of the base that are public (i.e. is-a)?
 
Latter, yes.
The point is that if you just let the base interface through for your children, you should leave it unchanged.
Don't make it "The same as the base but you have to call this".
 
k I get it.
 
11:08 AM
Transcript of Apollo 10. Check pages 414-415.
 
@Xeo Familiar with inner vs super?
 
Xeo
@LucDanton ?
 
CLOS-style overriding vs… I actually don’t remember what is the canonical language for that (Self? Simula?), but as in C++/Java/etc.
 
Faggots for lunch.
 
@LightnessRacesinOrbit eww ... you would eat a gay guy?
 
11:11 AM
There’s a neat paper that advocates making the two available in the same language, with semantics for it. The best of both worlds (which does make for a confusing world). I think it’s for C++, too.
 
@chmod711telkitty Don't be so disgusting.
Faggots are a traditional dish in the UK, especially South and Mid Wales and the Midlands of England. It is made from meat off-cuts and offal, especially pork. A faggot is traditionally made from pig's heart, liver and fatty belly meat or bacon minced together, with herbs added for flavouring and sometimes bread crumbs. Faggots originated as a traditional cheap food of ordinary country people in Western England, particularly west Wiltshire. Their popularity spread from there, especially to South Wales in the mid-nineteenth century, when many agricultural workers left the land to work in the rapidly...
 
I never knew that faggots were offal, actually (lol that's probably where the derogatory slang comes from, come to think of it) but I reckon these ones are just giant spiced lamb meatballs ^_^
 
@Xeo inner is more or less what NVI emulates.
 
One layer deep ;)
 
11:14 AM
This Generalized lifetime extension paper seems weird. Is it really necessary?
 
that moment when wtf, how did this code ever work?
 
Oh boi
 
Is it "dumb ideas month" or something?
 
I took one of the hugest dumps of this year
 
11:16 AM
Ah, meeting start of Nov
@Sofffia core dump?
 
It's so great not to be constipated anymore.
 
freeing up the process table?
 
If that makes it easier to picture, then yes.
 
You're so ladylike
 
ikr
wait
YOU SEXIST
I'm now officially offended
 
Ell
11:18 AM
stfu
 
@R.MartinhoFernandes lolwot
 
@Sofffia offensive*
 
Also operator . overloading? Thought it looks a lot more usable than the generalized lifetime extension paper.
 
Xeo
who the fuck flagged that
 
user1804599
@R.MartinhoFernandes PDF pages or the page numbers on the pages?
 
Xeo
11:20 AM
@jalf hehehe
 
     squares = (x*x for x in S) // python
auto squares = [&]{ for (x:S) yield x*x;}; // C++
 
@Xeo Seriously, this code tries to write preferences to database, it builds a parametrized SQL query with two parameters, key and value. It binds the key parameter just fine, and then binds the value parameter as an output parameter
how did we ever get preferences into the database?
 
^ looks great IMO
 
Xeo
lol
@Abyx ew, should be yield return x * x;
 
@Xeo Perhaps someone thought that out-of-the-blue remarks about constipation were somehow inappropriate on a professional programming website.
 
11:22 AM
@Xeo no? it doesn't "return"
 
user1804599
Explicit async I/O is terrible.
 
user1804599
Fibers or bust.
 
Xeo
@Abyx what if I want to yield without returning anything?
 
@rightføld fibers are stackful
 
11:23 AM
@Xeo it's a generator, you have to return a value
 
it's English; you have to use semicolons
 
Xeo
semicolons suck
 
no
I honestly can't understand why people keep abusing commas like this. How can anyone be so stupid?!
 
@Xeo yield return is for saving a keyword AFAIK.
 
@Xeo how does this work
yield;?
await?
 
Ell
11:28 AM
I hope c++ gets coroutines
 
Xeo
@LucDanton hm?
 
I hope c++ gets AIDS
 
> Design note: yield is a popular identifier, it is used in the standard library, e.g. this_thread::yield(). Introducing a yield keyword will break existing code. Having a two word keyword, such as yield return could be another choice.
 
@Xeo The return doesn’t have a meaning, semantically speaking. It makes syntax unambiguous. If there is a yield somewhere without a return, it’s not a yield statement. If there is a yield return, it’s one (even if there is a yield variable/type/function/whatever in scope).
 
Xeo
memo: read the paper
 
Ell
11:30 AM
@LightnessRacesinOrbit I honestly can't understand why you care so much
 
More than just fishy, IMO. It's tantamount to defining a struct with that many members. Thought tantalizing to my curiosity, I can't come up with a use case that I wouldn't either reject in code review, or replace with a proper codegen. — sehe 11 secs ago
 
@Xeo The paper uses a yield keyword, with return; for, well, returning early. I was referring other languages.
 
Xeo
ah
 
the paper says yield would break code
so using yield return would be more realistic
 
There's no proven correlation between stupidity and comma abuse. There is, obviously a correlation between intelligence and pedantry. I like to wonder how what the effect of pedantry on personal effectivity is
@LucDanton hehe - weighing on on the commas with heavy use :)
 
11:33 AM
Commas are nice :(
 
using __traits = std::resumable_traits<R, T1, T2>;
struct __Context {
    __traits::promise_type _Promise;
even Microsoft forgets typename in their own proposals.
 
@LucDanton I agree. (Commata?)
 
user1804599
Deprecate typename!
 
LRIO: Commata non grata
> Now I use Brackets and I think I'll stick to it for a while. Free, open source and community-driven, but backed by Adobe, which is a good thing
uhoh
 
kind of weird
 
11:37 AM
@sehe oo, like stigmata!
 
this is one of the only C++ features I've seen that were designed with no exceptions
 
@Rapptz because VC++ can compile it without typename
 
that is the joke, yes.
> Making coroutine dependent on C++ exceptions will limit their usefulness in contexts where asynchronous programming help is especially valuable (kernel mode drivers, embedded software, etc).
 
@LucDanton Just, like Greek, I suppose!
 
I can’t declense that.
 
11:39 AM
@Ell Neither can I :(
it drives me mad tho
 
@LucDanton I love Greek. "ta pragmata ta peri Salamina". "ta peri Salamina pragmata" etc. So much leeway to get a good rhythm going
 
@LightnessRacesinOrbit who cares, just suck it up.
 
@sehe You can even pick the mood!
 
It strikes me that the classical languages might have held on to this more structured, rich grammar, because having good rhythm in text aids memorization.
 
Ell
hm. I might have to make some of my own RTTI
 
11:41 AM
@LucDanton mode*?
 
@Rapptz I care
Caring Races in Commas
 
Nope :)
 
@chris Would you believe it, I overlooked this change in c++14 o.O — sehe 28 secs ago
 
Xeo
@sehe Japanese is fun like that too
 
/care Racing in coma
This, I believe.
(look, mom; all those commata!)
 
user1804599
11:43 AM
@sehe meh
 
user1804599
I like my words ending with consonants.
 
> I'm going to change my answer to, "Try the allocator approach." In fact I'm going to try to write one right now. It's crazy that I've been doing this for 10 years and never made one.
 
same :/
I need a pool allocator for my event dispatch framework, probably
we're starting to introduce some real scale in one of our applications using that framework
I suspect within two years I'll need much more efficient allocation for the individual messages
 
@LightnessRacesinOrbit I may have found your new avatar... A female darth vader drawn on a coffee cup
 
haha
it should totally be this one
good job at scrolling
 
11:55 AM
lol
 
@LightnessRacesinOrbit lol
 
Go ahead and laugh.
 
(I did the same)
 
Xeo
> declspec(auto)
lol
 
@Xeo tell me about it -.-
rest in pieces C++
 
Xeo
11:56 AM
that was a typo, calm down.
 
huh.
I wonder if
 
struct X : std::vector<T, X>.
 
Xeo
11:57 AM
> auto / decltype(auto) return type
If a function return type is auto or declspec(auto) and no trailing return type is specified
 
@Xeo sorry I don't see how it was a typo?
 
Xeo
you suck.
 
AFAICT it's just another shitty C++ "feature"
oh
 
Xeo
@Puppy no
 
lol, well, pretend I was responding to decltype(auto)
;)
 
11:58 AM
why not
X is incomplete?
 
Xeo
ye
 
hmm
 
Xeo
can't access its typedefs
 
@Xeo works fine for CRTP
if there's a problem, it's in the impl not in the base-specifier
 
Xeo
@LightnessRacesinOrbit Who said anything about the base-specifier being problematic?
 
11:58 AM
sigh
 
Xeo
puppy had std::vector as an example, so I based my answer on that
 
Xeo
fun
 
ikr
...whoops.
so that little charade was well-executed
 

« first day (1459 days earlier)      last day (3479 days later) »