« first day (1851 days earlier)      last day (3096 days later) » 

10:02 AM
@Mr.kbok Eric Niebler uses « tagged tuples » in ranges v3, but I don't know what it's worth.
> Warning: PATH too long, unable to modify PATH!
Like, seriously.
 
Ven
@Morwenn oooh that's cool. we have quite some of those in the codebase
 
@Mr.kbok They are called structs.
 
Ven
@Morwenn could that appear in c++17, or is it going to be too late?
 
@Morwenn <3
On a related note I'm considering setting my mail client font to consolas or some monospace
 
@Rapptz lol
 
10:06 AM
> glvalue :: Environment -> (Environment, Location)
 
@Morwenn neat, I hope it gets accepted
 
This part looks like a trollbait. :D
 
@Ven I don't know. I wouldn't be surprised if people were against it and it didn't get accepted at all.
 
Ven
@Morwenn I'm tired of writing copy ctors with only throw;s inside :(
 
user1804599
You don't want this bullshit in C++17.
 
Ven
10:09 AM
I don't want to keep writing stuff that can't be reached, but also can't be statically prevented by the type system
 
user1804599
You want bullshit removal instead.
 
@Morwenn oh, we're gonna have AA?
that wouldn't be bad
 
user1804599
@Ven Practice avoiding that situation.
 
user1804599
Encode more information in your types.
 
Ven
@Elyse explain how then
 
user1804599
10:10 AM
Can't in general.
 
Ven
amazing. you're still elysing.
 
user1804599
Don't make something copyable if it's not copyable.
 
user1804599
Fix the real issue (the attempt to copy) instead.
 
Ven
whatev'
urgh, at times, I miss D's const/immutable stuff.
 
user1804599
The API consumer failing to use the API correctly should not result in the API being changed.
 
user1804599
10:12 AM
Doing so causes the same problems as tutorial-driven design.
 
@Rapptz I'd like anonymous, enumarable structs (as per 4451) like auto func() { return struct { plop: 15, pop: "hi" }; }
 
user1804599
@Mr.kbok You want Scala! Oh wait I wasn't allowed so say that anymore.
 
user1804599
Let's try again:
 
user1804599
@Mr.kbok You want the D!
 
@Mr.kbok You can already do that.
 
user1804599
10:14 AM
You can't enumerate structs in C++.
 
user1804599
Not without a lot of boilerplate.
 
Yeah but you can return anonymous structs.
 
user1804599
IIRC that's called Voldemort types.
 
user1804599
Because they shall not be named.
 
@Mr.kbok why is programmatic access to the members useful here? :s
 
10:15 AM
hilarity ensued
 
@Rapptz which is useless.
 
Ven
pls allow me to declare things in std::tie :[
 
user1804599
Oh awesome, D classes can close over local variables.
 
Ven
@Mr.kbok it's a good way to get an error :P
 
@AndyProwl If there are enough people willing to have and people supporting the idea in committee meeting, then maybe :p
 
user1804599
10:16 AM
This is one of those things I really wish C++ had.
 
@Ven You basically want non-library tuples. :P
 
@LucDanton the caller doesn't know what are the members of the struct.
 
you want to future-proof the client code against renaming the members or something
 
@Mr.kbok And how useful is your snippet?
I don't understand it.
 
@Mr.kbok why is guessing better?
 
Xeo
10:17 AM
@Mr.kbok great. might aswell return a tuple and let the user iterate with integers.
 
@Mr.kbok ITT JSON in C++
 
what kind of discipline is that?
 
Ven
@Griwes I basically want full-fledged pattern matching
 
it's a property bag
 
@Ven welcome to the world of dreamers
 
10:17 AM
is this a twilight zone episode
 
Ven
@Griwes I believe in Mach7 ;w;
 
I don't have time to explain, so get in the car
 
@Ven Is that the ugly, retarded, library based thing?
 
user1804599
You want so many things that aren't feasible in C++, isn't that funny?
 
@LucDanton I haven't heard of this show in years :o
 
10:18 AM
@Elyse they are, just gotta implement them :D
 
Ven
@Griwes yeah. I want a non-library one
 
@Ven You and everyone else.
 
user1804599
Maybe C++ isn't the tool for the job.
 
"std::tuple was a mistake." -- Abraham Lincoln.
6
 
how do you get a simple variant without boost::variant?
 
Ven
10:19 AM
@Rapptz hold me :(
 
Isaac what you did there
 
user1804599
The only std::tuple instantiation I use is std::tuple<> because void is incomplete.
 
user1804599
@Mr.kbok A union and an enum.
 
@Mr.kbok here? - though that only works in recent Clangs ;_;
 
John Bandela ? C'est dégueulasse !
 
10:21 AM
GCC too fabulous to properly implement variadic expansion of lambdas.
 
@Ven Try it again... you can have a non-macro-based pattern matching library it seems.
 
Ven
@Morwenn sorry, I wasn't quick enough to read that :(
 
@Morwenn still terrible
 
user1804599
@Morwenn ugh using polymorphic classes for that instead of boost::variant
 
user1804599
(slide 13)
 
10:23 AM
@Griwes thanks, might have to change a few things (msvc)
 
user1804599
oh slide 18 nice
 
oops, my operator< is broken.
 
@Mr.kbok union + enum probably
 
@Elyse Well, that's Mach7.
 
you can't union classes can you?
 
10:24 AM
@Mr.kbok more like rewrite the whole thing - unless MSVC can into [](Ts t) {}......
 
user1804599
@Morwenn then fuck it
 
@Griwes yeah no
 
@Mr.kbok you can use any library as long as it’s not Boost?
7 mins ago, by Luc Danton
is this a twilight zone episode
 
user1804599
@Mr.kbok union t { std::string s; } works fine.
 
@Mr.kbok You can but there are some requirements IIRC
 
Xeo
10:25 AM
Lounge uses confusion against Luc. It's super effective!
 
@Mr.kbok You can but you have to write all the magic operations by hand.
 
Ven
@Morwenn mmmh still not great
 
@Mr.kbok I'm lazy and use pointers.
 
Ven
@Morwenn does look good tho
 
@LucDanton it's a one off thing, so I'd like a shitty, small class. I can't use boost::variant because that project uses a boost that's older than variant (!) and I don't have time to upgrade right now
 
10:28 AM
wait what
time to see how old that is
 
@Mr.kbok oh hey, it can!
 
@Rapptz pleas no
 
> Copyright © 2002, 2003 Eric Friedman, Itay Maman
you sure about this?
 
so it is then
 
this is pretty ancient tier
 
10:29 AM
oh wait
dude
 
this apparently compiles with cl 19.0.
 
#define BOOST_LIB_VERSION "1_33_1"
 
Ven
@Morwenn does look good tho
 
I actually do have variant
 
all is saved
 
10:29 AM
So most of the code in my implementation should compile.
 
problem solved, thanks lounge
 
glorious never empty guarantee
 
I guess there'll be ICEs though. :D
@Mr.kbok lol
 
yay we made someone look up the docs for the thing they’re using we’re the best hurrah
 
@Ven Why twice? o___o
 
10:30 AM
quick I need more Gunshow
 
lol
 
Ven
@Morwenn shaky, shaky internet
 
@Ven You poor thing :(
 
so how bad is std::variant gonna be
gotta have that discussion a 5th time right?
 
Well, it could be worse.
At least, even if you decide not to handle the empty case it will throw at your face to remind you that maybe you should.
 
10:38 AM
I find myself writing more and more of the features that the standard will provide, because I completely dislike the semantics defined by the standard...
 
tabs vs unsigned integers
4
discuss
 
emacs vs empty variants
 
@Griwes More and more of the features... such as?
 
@Morwenn I have my own variant; I'm also going to write myself an optional and a future. That's the ones I know about at the moment. Don't expect this to be a complete list.
 
@Griwes Will it be a packed optional?
 
10:41 AM
@GregorMcGregor I use mechanical keyboards
 
optional design is fine
they just ruined variant of recent memory
 
@Morwenn No, at least not in the primary case.
 
@Borgleader update:
1
A: Boost Spirit X3 cannot compile repeat directive with variable factor

seheFrom what I gather, reading the source and the mailing list, Phoenix is not integrated into X3 at all: the reason being that c++14 makes most of it obsolete. I agree that this leaves a few spots where Qi used to have elegant solutions, e.g. eps(DEFERRED_CONDITION), lazy(*RULE_PTR) (the Nabialek ...

 
My future's will be something akin to Sean Parent's approach, but slightly adjusted to my needs.
 
@Griwes I thought all that (wheel (re)inventing) was hip in 2012
 
10:43 AM
Oh, I also need a function call memoizer that won't have problems with handling futures...
 
@sehe He also reinvented the hip.
 
That's good. Because hip don't lie
 
@sehe Standard future and variant are broken. Optional might not be broken, but has suboptimal interface (and the standard one for some braindead is not going to support references for now).
 
Ven
@Morwenn :P. slide 52 looks really good. I'm starting to believe a bit more. those chained comparisons looks tote amazing(error on slide 58 though, it should be using _x in that last case)
 
@Ven To be honest, I don't remember the full paper, only that it looked a bit cooler than Mach7.
 
10:45 AM
@Elyse mmm. derive from a lambda? I suppose you can (but no direct access to the closed-over variable, then)
 
user1804599
@sehe lambda no overloading
 
@Griwes Why are we not revolting?
 
:P
 
user1804599
@sehe Consider variant visitors.
 
user1804599
10:46 AM
All the boilerplate of constructor arguments and fields is annoying.
 
@sehe showers etc.
 
@Elyse std::bind
 
Oh, it's the guy who reimplemented COM in C++.
 
decoding...
...
...
nope.
ENOPARSE
 
user1804599
10:47 AM
@sehe :O
 
you asked
 
@sehe that you can’t understand the word 'showers' demonstrates how revolting you are
 
I should buy more RAM:
@sehe BTW I like your suggestion in the mailing list thread I linked a lot (phrase_parse( begin, end, repeat(uint_)[int_], space ); if you don't remember). — cv_and_he 5 mins ago
 
Oh Boost.Hana is now actually part of boost lol
 
@LucDanton Ok. Clear. Now, how should I have phrased this without the alluring mis-opportunity for interpretation...
@Rapptz A while now
 
10:50 AM
yeah
I'm behind on the news
 
@sehe that just removes all the fun!
 
@Rapptz I delete at least a dozen emails from [boost] these days
 
Oh, a new preprocessing library for Boost 1.60 :o
 
@sehe cool
 
the only cool thing I see in Boost.Hana is hana::is_valid
 
10:53 AM
welp, time to go to work
 
Indexing tuples with integral constant is fun.
 
            f(f(f(f(f(f(f(f(f(f(f(f(
            f(f(f(f(f(f(f(f(f(f(f(f(
            f(f(f(f(f(f(f(f(f(f(f(f(
            f(f(f(f(f(f(f(f(f(f(f(f(
 
@Rapptz I’m actually curious about compile-time improvements
 
lol Louis
 
@Griwes should be fixed
 
10:54 AM
beautiful optimization lol
 
@Morwenn anyone can do that though
 
@Borgleader I doubt it :) I'm going to see whether I can extend the library to DTRT
 
hana is kinda... neat, definitely neater than MPL, but on the other kind it's kinda meh
 
@Rapptz Yeah, it's not hard to implement, but it's always better when already provided :p
 
@Griwes Because NIH?
 
10:55 AM
Especially when you compare the actual library with the hype Louis has created over the last several years.
 
yeah the library is definitely overhyped
 
For the last four big conferences, he gave four talks... all the same.
 
I'll give you that one lol
 
All about Hana.
 
does it matter?
 
10:55 AM
And his ego around this is enormous.
 
you can't just hype something up m8
 
@Rapptz oh no hype
 
@LucDanton yeah, since each time he says the same things, shows the same things, and then gets voted "best presentation" for a third rehash of the same thing.
 
does auto infer constexpr or something
 
@Rapptz no
 
10:58 AM
alright glad to know I haven't gone insane
  // Computations on types can be performed with the same syntax as that of
  // normal C++. Believe it or not, everything is done at compile-time.
  auto animal_types = hana::make_tuple(hana::type_c<Fish*>, hana::type_c<Cat&>, hana::type_c<Dog*>);
  auto animal_ptrs = hana::filter(animal_types, [](auto a) {
    return hana::traits::is_pointer(a);
  });
  static_assert(animal_ptrs == hana::make_tuple(hana::type_c<Fish*>, hana::type_c<Dog*>), "");
how does this work out then
 
> Believe it or not
lol
I imagined a guy jumping out of his seat and screaming
OMG UNBELIEVABLE
 

« first day (1851 days earlier)      last day (3096 days later) »