« first day (1658 days earlier)      last day (3306 days later) » 

9:00 AM
what?
 
@Rapptz Haven't read the proposal yet. What are the suckages?
Also, morning
 
struct A { int& f(); const int& f() const; }; is legal
 
I can't stay at the Rijksmuseum
 
@AndyProwl You will see it right away.
 
Ven
@Rapptz that's const overloading, not return type overloading
the return type of the call is not taken into consideration during resolution (as opposed to operator.())
 
9:02 AM
yesterday, by Rapptz
void g(Ref<X> x)
{
    X xx = x; // X xx = x.operator.();
    auto r = x; // auto r = x.operator.(); that is, r is a X
}
get a load of this
@Ven I don't see a mention of overloading on return type.
The examples provided for overloading are the same as A up there.
Oh wait I just scrolled down. I see it now.
 
Ven
> struct S3 {
> T1& operator.() { return p; } // use if the name after . is a member of T1
> T2& operator.() { return q; } // use if the name after . is a member of T2
 
Man. This proposal is bad.
There's a reason I stopped reading it.
Somehow manages to get worse every paragraph.
bunch of hacks for their dumb ass Ref<T>.
 
@Rapptz huh, that's odd
 
Ven
@Rapptz I think it gets worse still, with stuff like that: s.a = 9; /* error: ambiguous */ s.B1::a = 10; s.B2::a = 11;
 
yeah it's just fucking awful
 
Ven
9:08 AM
(using struct B1 { int a, b1; }; struct B2 { int a, b2; }; struct S : B1, B2 { };)
 
I don't know how high Bjarne & Gabriel were when they wrote this
 
but wait
 
lmao
the class name is not consistent at all in this example
3 different names
 
Ven
BasocGod
 
also compiler error
basoc_ordinal
   ^
 
9:10 AM
BasicOrdinal, basoc_ordinal, basic_ordinal.
should have thrown some Basic_ordinal just to be clear
 
anyway I like the idea of transparent refs
not sure operator . is the best way of achieving that
 
You're such a badlet.
 
Maybe
I still like it
 
I suggest reading the proposal and forming an opinion yourself.
 
Sure I will
 
9:11 AM
std::reference_wrapper is pretty transparent btw.
 
Xeo
I'm thinking of a way of achieving take(10) . map(x) . filter(pred) with operator.
 
it's not
you have to .get() that shit
 
No you don't.
 
yes you do
or * it
 
9:12 AM
@R.MartinhoFernandes can you get a lift to around Rotterdam? I'd be happy to have you :)
8
(likely, that's not what you came to Amsterdam for)
 
@sehe can you pick him up in Amsterdam 04:00?
 
@LightningRacisinObrit what was in xeos present
 
and I hope that never works
 
@JohanLarsson I'd rather not. but I can
 
9:14 AM
@Rapptz You're mean
 
no I'm sane
 
Ven
that's being mean to c++ programmers :P
 
Why is that message starred :S
 
Sanity is so relative
@sehe Double sense, I guess
 
I did not star it
 
9:15 AM
@AndyProwl .... how. Oh well
 
Maybe it can be read as sex?
 
As always
 
Ven
@sehe the lounge imagines what will happen then, probably
 
Never post anything that can be interpreted in a slightly sexual way in the lounge
 
Nerd fest? Lubing up rubik's cubes?
 
Ven
9:15 AM
especially in Lounge<Rightfold's Vagina>.
 
stop this starring nonsense
 
time to clear stars
 
I have zero yellow stars
 
please do so
 
Why are any of these messages starred?
Who's the incontinent star dripper?
 
9:16 AM
almost feel I must post a screenie to prove it
 
Ven
.oO( when the stars align )
 
Xeo
there, that's better
 
someone ninja'd all my star clears
fucking Xeo
 
Xeo
hi
 
@JohanLarsson screenies don't prove zilch
 
9:17 AM
hi
 
My phones Browser can't star anything anyway lol
 
anyway I think operator auto() might be better for proxy types.
But after seeing the implications I'm not sure I like it.
 
Xeo
@Rapptz nah, wouldn't help with e.g. std algos
 
@Rapptz ?
 
@sehe true but still
 
9:18 AM
@Xeo ?
 
Its just a nicer syntax
 
@Columbo what?
 
Ok I'll go and read the proposal. Until I change my mind, proxy types are a good idea
 
Or do you mean conversion operators to anything?
 
operator auto() is when template/auto deduction takes place you give it another type instead
 
Xeo
9:18 AM
@Rapptz std algos take the function object by-value (deduced), which would immediately unwrap the proxy type (like std::ref'd things), and as such make it useless.
 
@Rapptz operator auto is simply a conversion operator with a plaeholder type that is to be deduced
 
operator auto() does not exist afaik
 
How is that 'useful' for proxies
Of course it does :23035226
 
Xeo
@Columbo that's not what people want operator auto() to be
 
so I don't know where your definition came from but mine is from my head and previous discussions here.
 
9:20 AM
@Xeo lol
 
operator auto() is for expression templates and lifetime
 
@Xeo what do they want then
 
Xeo
2 mins ago, by Rapptz
operator auto() is when template/auto deduction takes place you give it another type instead
 
struct A {
    struct B {};
    operator auto() const {
        return B{};
    }
};

int main() {
    auto x = A{}; // returns B (evil?)
}
 
auto m = Eigen::Matrix4d::Identity() * 2; // Enjoy UB in a few instructions
with operator auto that could return a Matrix4d rather than some sort of proxy for computing a Matrix4d
 
9:22 AM
@Rapptz what is the result of decltype(A{})?
 
this is a hypothetical scenario bub
 
I guess it would be A
 
anyway I don't really like it
 
me neither, unless one really nails down the rules to prevent surprising things from happening - which of course is really hard
 
Ven
@Rapptz should it also define an operator B?
struct B{}; B m() { return {}; } <- is that c++11, c++14 or c++17? (or am I crazy)
 
9:26 AM
@FilipRoséen-refp open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4477.pdf similar-ish proposal by Bjarne and Gabriel
 
@Rapptz all proposals talking about operator. should be killed with fire
 
@Ven You might be crazy
 
@Ven c++11.
 
Ven
@AndyProwl really? there's nothing that allows to just return an initializer_list?
@FilipRoséen-refp ah, thanks! see, I wasn't crazy :P
 
not an initializer_list
 
9:27 AM
@Ven that's not an initializer_list, it's a braced-initializer for the returned value of m(), semantically equivalent to B __return_value = {};
 
@Ven Oh, that. I didn't understand what you were talking about. You mentioned operator B
 
Ven
:23035342, :23035343 noted ty
 
> Paul Hudak, creator of Haskell, has died.
 
somehow missed this
 
Ven
9:29 AM
:(
 
leukaemia at 62.
 
@Ven nice try
 
Ven
@sehe who nose!
 
Xeo
@FilipRoséen-refp actually not
 
Xeo
9:32 AM
return {}; allows initialization of a brick type
 
@Ven what nose!
 
woosh.mp3
 
@Rapptz I didn't miss it, but I didn't know he created Haskell
 
@Xeo what is a "brick type"? the standard says it's equivalent to what I wrote previously, so I don't see what you are saying
 
9:34 AM
woosh.mp3 is looping now
RIP
 
@Xeo I still don't see what you mean by "actually not"
 
@R.MartinhoFernandes I just realized I should say "hitch a ride to around Rotterdam" in English :(
 
@sehe we'll keep you as a last resort. That ok? We should make up our minds by 18 or so.
 
@Xeo brick x = {}; is equally valid
 
Xeo
9:36 AM
@FilipRoséen-refp hm, I guess I'd have to ask in what sense you meant B __return_value;. It looked like a variable within function scope. Or did you mean the return object?
 
@R.MartinhoFernandes We? Who are you travelling with?
@R.MartinhoFernandes That's ok
 
@Xeo the return-value, that's why I named it __return_value
 
Me and a friend of mine.
 
Ven
.oO( surprise! )
 
I think .oO( ) should become the unicode string delimiter in C++17
 
Xeo
9:37 AM
@FilipRoséen-refp Yes. But brick foo() { brick result = {}; return result; } wouldn't be. That's what it first looked like.
@FilipRoséen-refp kay, nvm then.
 
@Xeo because that is equivalent to brick __return_value = result;
 
Ven
@sehe do you need operator.() for that?
 
> My 4.5 yr old son just said, "oh. I was wrong." To nobody in particular. So I asked him what he was wrong about? "That wasn't a fart"
 
Do you want Fries with that?
 
lol
 
9:40 AM
is the explicit ignored when applied to a default constructor?
 
Ugh shoulda went to shop yesterday
 
I was expecting this to fail
 
@AndyProwl no oh wait. default. mmm. No idea
 
I hate national holidays
 
If I add a parameter to the constructor, it fails
 
Xeo
9:42 AM
@CatPlusPlus same
 
@AndyProwl you are looking at aggregate initialization in its finest form
 
Xeo
@AndyProwl explicit is for conversions
there is no conversion in a default ctor
 
@AndyProwl in C++11, adding a member such as int make_non_aggregate{}; (it is important to note that extra pair of {} that gives it an in-class initializer), will make the snippet ill-formed
 
Xeo
it's just direct init
 
@Xeo You can have an explicit constructor that takes more than an argument, so it's not necessarily for conversions
 
9:43 AM
@AndyProwl in C++14, however, brick is still an aggregate - even if it has such member
 
Xeo
@AndyProwl Actually it is. If there are multiple (non-defaulted) parameters, it's simply a useless annotation. :P
 
so if it's an aggregate, it can be "copy-initialized" with braces even if the constructor is explicit?
 
@Xeo it is not an useless annotation..
 
If there's a user defined constructor, it's not an aggregate (are you saying explicit T() = default?)
 
@Xeo It prevents the return {...} thing
 
Xeo
9:45 AM
@AndyProwl Oh, right. Wasn't there a DR about that?
 
@Xeo I don't think so. It was intended to work like that AFAIK
 
@Xeo struct A { explicit A (int, int); }; void func (A); having func ({0,0}); is ill-formed (chosen constructor is explicit)
 
@sehe Right. The = default tricked me
 
from std-proposals:
> Hi, sorry for the delay in the answer, ADL is handled by the compiler by a process named mangling (at least in 1998) which generates a unique symbol id.
morning
 
Ven
o/
 
9:46 AM
@LightningRacisinObrit lolwut
 
Xeo
@AndyProwl Meh.
Fuck C++
 
I remember there were proposals for making tuple's constructor non-explicit
because the fact that you can return {x, y} for pair but not {x, y, z} for tuple is quite weird
@Xeo actually wait, there was a proposal by Herb now that I think of it
it wasn't a DR thought, just a proposal
 
Ven
@AndyProwl still have to write it in the return type, though?
 
@AndyProwl std::tuple is borked, the behavior is really really weird
 
Xeo
@AndyProwl Fun fact: you can return {x, y}; for tuple :D
IIRC
 
9:48 AM
his motivation was to allow writing return p; when returning a unique_ptr<int> and p has type int*
 
> What is it like to have parents that are not as intelligent as you?
Quora is just chock full of people obsessed with their own intelligence
 
@Xeo I'd be surprised, the constructor of tuple is explicit
 
@AndyProwl one of the papers that made it get shot down (disclaimer; I wrote this particular one)
 
Ven
@FilipRoséen-refp it's []()
 
@Ven I know.
 
Xeo
@AndyProwl hm, I thought there was something about compat with std::pair. guess I remembered wrong
 
@FilipRoséen-refp </brag> :P
 
there are ways to make return {x, y}; compile for std::tuple, without ever writing std::tuple in there though
@AndyProwl it is very relevant
 
I'm not saying it's irrelevant
 
then I'm not sure how it is bragging
 
Xeo
9:50 AM
@FilipRoséen-refp You were against it? Well fuck you then! :P
 
Just saying (in a slightly joking fashion) that you're bragging
 
@Xeo I'm against making explicit implicit in return-statements, the brokenness of std::tuple is a whole other matter
 
@AndyProwl Wait until the joker starts bragging about his fashion modeling :)
 
I've been thinking about writing a proposal to fix std::tuple, because the proposal(s) currently in flight just makes it broken in other ways
@sehe am I the joker? what the fcuk..
 
Ven
@FilipRoséen-refp really?
 
9:52 AM
@FilipRoséen-refp I had to shift that word somewhere...
Way to miss obvious word shuffle. I guess the smiley was too subtle
 
Apr 6 at 22:34, by Filip Roséen - refp
someone should propose std::direct_initializer (args..) that will initialize whatever it is used as the initializer for using direct-initialization - just to make the people yelling about std::tuple (and related) types having explicit constructors (joke)
 
@sehe It would be easier not to pay attention to that, I reckon
 
blargh, now I can't find the implementation of std::direct_initializer - I was sure I linked it in this channel
 
Ok, cool. Thanks a lot @sehe. We'll let you know later if we don't find anything.
 
am I currently being bullied?
<- whips out the racist card and gets on with his day
 
9:58 AM
@FilipRoséen-refp Not in any serious way. We're just reacting to your tendency to boast about your achievements. Which doesn't make them less significant, but it does make it less pleasant to acknowledge them explicitly. That's how it works for me, at least
 
@AndyProwl I'm sorry if such messages has come across as "boasting", honestly that has never been the intent
@AndyProwl I'm not even sure how I've been boasting about such things, especially not modelling.. most of the messages I write about the matter is not in a good light - quite the opposite
 
@R.MartinhoFernandes nowai
 
Sorry, dunno what you are replying to.
 
Does anybody use Notepad to program?
 
@FilipRoséen-refp I wasn't referring to the modeling - I just took sehe's word for that (and btw I think he was half-joking too). Maybe it's not your intent, but that's how I perceive it and I don't think it's just me. ICBW
 
10:04 AM
yesterday, by Lightning Racis in Obrit
user image
 
Anyway it's not a crime and if your achievements are significant, you have the right to boast about them
 
@R.MartinhoFernandes Gwendoline.
 
It's just not super-pleasant
 
10:05 AM
@AndyProwl I will keep that in mind, my intention has never been to boast about anything
 
@FilipRoséen-refp Ok, I shall trust you :)
 
> Folder with the name starting with a dot is something from a *nix world. Need a better name
These people piss me off
> omg .vs looks like it's from UNIX and this is for Windows therefore we need a "better" name
complete nonsense
 
@LightningRacisinObrit wut
 
It's a genetic argument.
 
and by "genetic" you mean "stupid"
 
10:21 AM
@fredoverflow I see
 
@LightningRacisinObrit Really?
 
Ven
@Cinch no
 
My summer employer is dead set on using Notepad or the AutoCAD IDE.
And if I try to say something like, "What if I want to use Notepad++?"
"FORMATTING PROBLEMS! NO BECAUSE TABS AND COLOR SYNTAX HIGHLIGHTNING"
grrrr....
 
@Cinch Yes, of course. Many many people.
They're idiots, but they do it all the same.
@Cinch lolwut
ITT syntax highlightning
4
 
Ven
@LightningRacisinObrit do you not like syntax highlighting?
 
10:30 AM
sometimes I use notepad++ to read programs
 
@LightningRacisinObrit Yeah
 
@Ven you need to be more observant
 
Ven
@LightningRacisinObrit ah, well :-)
 
Space indentation is just truly awful
And everyone who uses it is just truly awful
 
Ven
@LightningRacisinObrit do you believe in tabs?
 
10:32 AM
I believe I use it.
 
Of course. I have a functional brain.
 
But I know it's awful.
 
Ven
Good.
 
@LightningRacisinObrit yep, stupid is what I meant yourlogicalfallacyis.com/genetic
 
@LightningRacisinObrit I am so so sad
 
10:32 AM
@R.MartinhoFernandes heh
 
"All the REAL programmers I know use Notepad"
 
Your summer employer is a moron
 
@LightningRacisinObrit The best part?
 
Ven
@Cinch there's an xkcd for that
 
@Ven ik
 
10:32 AM
I use notepad, just not for writing java or C++ code
 
@Cinch It's your dad, isn't it?
 
@LightningRacisinObrit no
but its freaking infuriating
 
I use Notepad for my scrum notes. And as a scratchpad for copying things around. That's about it.
 
@LightningRacisinObrit Yeah. He uses it to program and says he doesn't like code highlighting
 
Ven
My notepad won't save file anymore. I get an error message trying to open the "save as" dialog.
 
10:33 AM
he doesn't even want to use the IDE because it screws up his style or something like that
 
He goes to any programming conference saying that he'll get laughed out the room
Wish I could tell him
 
Ven
OTT people apparently can't configure their tools
 
@Cinch Turn it off then
That's no reason not to use the editor and it's certainly no excuse for banning others from using it
 
@LightningRacisinObrit "What if we need to do this out in the field"
 
TIL Notepad grows in fields
 
10:35 AM
"What if you gotta do this on another computer? Are you gonna download it?"
@LightningRacisinObrit It's land surveying, agian.
 
Dunno. Are you gonna download the compiler?
Any sensible Windows programmer carries Notepad++ around on the USB stick that they always have on them
The Linux ones just open up vi when they get there
 
vi is horrible
 
And, again, even if you needed to use Notepad one day, that's no reason to ban your employees from ever using anything else.
Total jackshit idiot
 
Ven
vi is love, vi is life
vi vi vi, the number of the beast.
 
dat goal
int main()
{
    Employee e1 = new Employee();
    System.out.println("Salary is" +e1.salary);             //Salary is printed
    System.out.println("Name is" +e1.name);                 //name is printed
    return 0;
}
ahahaha
class Employee {
public:
    int salary;             //Salary is declared here
    char name;              //Name is declared here
    System.out.println("Enter the salary \n");
    System.out.println("Enter the Name \n");
};
Cry.
 
Ven
10:38 AM
nice.
is c++ ruby yet?
 
more fun:
@Jimmyt1988 : I am a dinosaur embedded systems developer - a domain where C++99 is still struggling to gain acceptance, and C++11 hardly figures, to the extent I have mostly ignored it. That said as I understand it, smart-pointers are not the same as garbage collection, but a different solution to the same (or similar) problem. Moreover they are implemented in the library rather thean built in to the language. — Clifford 15 mins ago
ITT C++99
 
@LightningRacisinObrit Funny
 
From the same question:
EJP, my apologies dude... I'll clarify the question more. Thanks for your uber awesome help buddovsky! — Jimmyt1988 1 min ago
I'll stop now but lol
 
Wasn't that C++98? And then C++03 and then C++11?
 
Ven
#virtualbeero, LRiO.
 
10:49 AM
@Jefffrey yes
> Getting rid of polymorphism by removing virtual in front of my_virtual makes this code working closer to expectation. Enlightening starts to flow at me, but I still would like to know clear answer. Thank you
lol
ITT EnlighteningFlowsatMe
If it weren't for the stupid stupid stupid nick change restrictions, I'd be that for a day
Speaking of which...
 
Ven
That's what I was about to say. Could be your next nickname.
 
Ven
and even the big-breasted girl avatar is back.
 
woop woop feels good
 
LRiO is weirdly attractive today
 
10:52 AM
Time mutexes. Ever used them?
Haven't encountered a use case yet..
 
Does no one want to pop my bounty?
50 rep for you guys...
 
@LightningRacisinObrit Sting?
 
Ven
lol rep
 
damnit cinch.. at least format the question properly
 
@MarcoA. It's at the bottom?...
And bolded?
 
Ven
10:58 AM
lol microsoft made a tool to compile objective-c to c++?
 
@wilx good job!
 
Ven
oh, that's for their ios-to-microsoft app
 
@LightningRacisinObrit Sting is one of my past favourites.
 
@Cinch What question?
 
10:59 AM
@LightningRacisinObrit This one stackoverflow.com/questions/21864038/…
 

« first day (1658 days earlier)      last day (3306 days later) »