« first day (851 days earlier)      last day (4100 days later) » 

11:00 AM
Can't do ADL in mem-init-list, can't use boost::begin because it's not aware of std::begin >.> Solve that later.
 
@sehe I feel linking to the a news source would have been less brutal than to a commentary.
 
wheels::EnableIf<wheels::Bool<true, R>, is_forward_range<Ranges>...>
hahah, so many hacks.
 
What'd you write today?
 
11:04 AM
?
Oh, 'd = would.
Why did I think 'd = did?
@LucDanton Probably the same.
 
Ell
=did
What'd you write - what did you write
 
Why'd you say that?
 
Might add an alias for Bool<true, R> for readability, though.
 
@R.MartinhoFernandes DependentTrue makes a comeback!
 
Xeo
11:05 AM
That Bool taking two arguments sounds so wrong.
 
@Xeo It's variadic actually. For grabbing dependent stuff for static asserts and other stuff (SFINAE here)
 
Xeo
Yeah, still
 
@Xeo That's I mentioned making another alias.
 
Mmh, if you had your say would you require ranges (cursors?) to be default constructible to get an empty one?
 
11:07 AM
@R.MartinhoFernandes Well you know, I have a whole namespace full of them.
 
I guess I would do the same if I had written something other than chain that has variadic arguments.
 
My zip_range actually does the same haha. Same reason really, have to operate on ranges/iterators of various types. (Like computing a distance.)
 
And here is some very very ugly stuff that I could not build on top of Boost.Fusion: bitbucket.org/martinhofernandes/rtl/src/72068427cc39/include/…
Where "could" may have either the meaning of "being able to" or "knowing how to". I am not sure which.
 
Ell
Why does stacked's code not compile?
 
Xeo
@R.MartinhoFernandes "assert" --- "throw" --- why not "nuke_from_orbit" too?
 
11:11 AM
I hope you don't take this the wrong way, but I'm glad I'm finding out you've hit the same issues as I've done (for various problems). Gives me hope that some of my solutions (tuple.hpp really) have some value.
 
@Xeo I think the throw is a stand-in for __builtin_unreachable().
These days I have WHEELS_UNREACHABLE for that (is either __builtin_unreachable() or throw depending on compiler).
 
Xeo
Ah
 
I had fun writing that code, but I did not go on because it was the tiring kind of fun; you know what I mean, right?
 
Xeo
Think so
 
haha, look at chain_detail::get_slice.
 
Xeo
11:13 AM
Reminds me, I still didn't get around to reinventing some wheels.
I wanna have fun code to share too. :(
 
Looking forward to it :)
 
Actually, I am having the same kind of tiring fun on ogonek, but I am very willing to push through anyway.
 
Xeo
@LucDanton But first, there's my makefile generator in Haskell... and before that, the include dependency lister needing to be finished to actually allow #include SOME_MACRO. :|
 
@Xeo Ewwwwwwwwwwww, why would you need that!
 
Xeo
Although I may be able to go around the second problem by using Boost.Wave
I hope it doesn't choke on C++11 code and simply passes the tokens along as something unknown.
 
11:16 AM
@R.MartinhoFernandes Where does it come in handy?
 
(I think this is the first time I pose a rhetorical question with an exclamation mark; I'm breaking new ground here)
 
Xeo
@R.MartinhoFernandes Which? :D
 
Oh that makes sense.
 
Xeo
@R.MartinhoFernandes Because people actually use that, and I want to recognize it. The dependency lister is a building block for the makefile generator so I don't have to maintain dependencies by hand.
 
11:18 AM
One thing I like about Andrei's concepts is that both has_length and can_slice are orthogonal to the main concepts.
@Xeo Oh, I thought it was just some personal tool.
 
Xeo
Also, my dependency lister doesn't really work with conditional compilation yet.
(read: it ignores #ifs)
 
@sehe I mean that it would automatically check, like a test harness, with input, expected output and actual output.
 
It's been a while since I read about those (if I did at all, I don't remember -- I may have learnt from second-hand sources), but does he have like infinite ranges with two ends?
 
Xeo
@R.MartinhoFernandes It is. I meant "#include MACRO_NAME" with "that".
 
@PeterWood That isn't too useful if it can't replicate most people's set ups, though.
@Xeo You do that?
@LucDanton No, his ranges never grow. So [start, inf)-like only.
 
Xeo
11:20 AM
@R.MartinhoFernandes I think I had something like that when emulating variadic templates.
 
@R.MartinhoFernandes Okay, I probably need to read it some time. Do you agree?
@R.MartinhoFernandes Is that useful for laziness?
 
@R.MartinhoFernandes I think most newbies' problem is they don't step outside of the code they're looking at and try to challenge their own assumptions. Stripping down a problem to its basics of input/output, syntax, and process would be very beneficial.
 
Xeo
@R.MartinhoFernandes Also, I plan to make this as complete as possible. Releasing it open-source doesn't sound half-bad, y'know. I understand that there are already tools like that out there (atleast I think so), but still.
 
@LucDanton It's useful to build new ranges from the existing ones. Sometimes you can make random-access ranges if the underlying ones are random-access, sometimes you can only do it if the underlying ranges are random-access and sliceable. And other such stuff. Don't remember many examples now, it was a while ago.
@LucDanton FWIW, I don't know if he went into enough detail in his Iterators Must Die thing. I think I learned most of the stuff from reading the D docs and sometimes the actual D source code.
 
11:24 AM
I seem to remember realising he changed his mind on some points between the talk and the current state of D's std.range.
@PeterWood Sure, but having the tools is (if it actually is) only half the battle. You also need some way of convincing them to do it.
 
Haha. The class head is concapt_map_range, the constructor is concept_map_range, and one of the return type involves concat_map_range.
 
Xeo
da fuq
 
@LucDanton OMG you suck.
 
@R.MartinhoFernandes I think ideone has been great for getting people to be more concrete in their examples and discussions, and has rightly achieved popularity. I think something similar for verifying expectations could have an appreciated but niche role.
 
3 hours ago, by Luc Danton
@R.MartinhoFernandes I don't understand the closing (it's not my greatest morning).
> error| 'iner_range' was not declared in this scope
 
11:30 AM
lol
 
I can't find a better quote on how I feel about this morning because the search engine dies on me.
OH COME ON
> error| 'typenaem' has not been declared
 
Dude. You need to rest.
 
Xeo
lawl
 
Ya I figured I'd relax earlier today but still I want to do some things.
I'm really not accustomed to making so many typos that I don't catch on the spot.
Mmmh, I dunno how to make conditional initialization of optionals look nicer. I wish I could do optional<T> o = foo ? bar : {};.
 
Is there a canonical question for building indices packs?
 
11:37 AM
Johannes' answer tends to get linked.
 
@R.MartinhoFernandes Isn't there one that @Xeo answered
 
Xeo
@LucDanton Is decltype(foo ? {bar} : {}) an initializer_list?
 
@Xeo I'd wager it isn't. Remember how auto i = { 4 }; is special-cased?
 
'{} is not an expression' was a cruel lesson, it still hurts :(
 
Xeo
11:39 AM
@LucDanton True, although that will be fixed in C++Next, atleast.
 
What is?
 
@Xeo That's a terrible search.
 
Xeo
decltype({}) will just be initializer_list, IIRC. Aka, template argument deduction will work with that.
@R.MartinhoFernandes So? :3
 
I need to really think about the implications of that change before commenting on it.
 
Xeo
Clang says true? {5} : {} is an error, so much for that. :|
@LucDanton Btw, I think Boost has it that you can pass a bool to the ctor, aka optional<T> o(foo, bar);
 
11:43 AM
@Xeo What type is {}?
 
@Xeo Ya, but that's eager.
 
@Xeo That does not short-circuit though.
 
Ell
what is the largest part of the compiler? is it code generation or parsing?
 
how do I assign an enum value to a variable of the type of that enum without qualifying it with it's namespace::enum_type::value? If I do it without, the compiler says undeclared identifier
 
Xeo
@R.MartinhoFernandes "expected expression error"-type. :<
 
11:44 AM
5 mins ago, by Luc Danton
'{} is not an expression' was a cruel lesson, it still hurts :(
 
Xeo
@TonyTheLion Is it a scoped enum?
 
I share your pain (not too much though please).
 
@Xeo it's in a namespace
not sure what "scoped enum" is...
 
Xeo
Just namespace::enum_value should work
 
It's got an aiming apparatus on the top.
 
Xeo
11:45 AM
@TonyTheLion enum class stuff
 
it's a public member of a class
class stuff { public: enum foo {} };
 
@LucDanton OMG.
 
inside a namespace
 
@R.MartinhoFernandes I've been playing some PlanetSide 2 lol.
 
Xeo
Then it's namespace::stuff::enum_value.
@LucDanton That was bad.
 
11:47 AM
@Xeo what's the rules on this?
 
Xeo
@TonyTheLion the enum values (of a normal enum) life in the enclosing scope too
Simple as that
 
ah right
 
Xeo
That's why people used struct my_enum{ enum type{ values, .... } }; to emulate scoped enums (this is similar to what BOOST_SCOPED_ENUM does IIRC)
And then my_enum::type for parameters and variables etc
 
user142019
Mawnin.
 
Xeo
Oh look, fresh lobster for lunch.
 
user142019
11:50 AM
WHERE I’M HUNGRY.
 
> error : does not exists in the environment.
WTF
 
Xeo
@R.MartinhoFernandes How exactly is that a problem here? -- nvm
 
what would be the writen equivalent to stuttering, and don't same me
 
What's "to same"?
 
What about when people write the the same word twice?
 
11:52 AM
Or Canananananada.
 
Xeo
btw @LucDanton, maybe optional<T> o(false, []{ return bar; }); for lazy?
 
I explored that before. Didn't stick with it. Don't remember why.
 
Xeo
(Yes, not pretty, also bad with the return type deduction, but eh.)
 
At first I avoided it because I thought I wouldn't need it often enough. Right now I could use it, but I'm like 'meh'. (FTR I'm using foo ? bar : decltype(lol) {} because I don't care.)
Shit, reference 'assignment'.
 
user142019
Le sujet est vieux!
 
11:56 AM
Heh, I used to have optional<T&> and I changed to optional<pair<T&, U>>.
 
can someone show me a quick way to implement this in C++ ? wolframalpha.com/input/…
 
std::cout << 2079.0/2;
 
@R.MartinhoFernandes quick as in few lines of code
 
user142019
11:58 AM
> inb4 but this is important
> inb4 plonk
> inb4 don’t announce your plonks
 
@Zoidberg I don't want to parse/calculate any equasion, just that one
 
user142019
So you want that exact equation. And it is pure. In other words, just do what robot said: 2079.0 / 2.
 
So, std::reference_wrapper<T> has neither value_type or reference_type which means I need to pore over the docs.
lol, it's type.
 
Xeo
In such cases, intellisense is mighty helpful
(Unless it broke itself again, of course.)
 
user142019
12:00 PM
@R.MartinhoFernandes haha cool. :3
 
@Zoidberg I need the partial sums too
 
Next up: I need something else too! Keep doing my job and I will keep telling you what my job is.
 
user142019
@user1233963 How unfortunate. I don’t know how to do it in C++.
 
user142019
(Also don’t use C++.)
 
@Zoidberg why is that?
 
user142019
12:02 PM
Because C++ is a bad language.
 
user142019
:D
 
@Zoidberg languages can't be bad, the programmer on the other hand
 
user142019
Tell me how PHP is not bad.
 
Pro tip: when a coworker tells you not to update the SDK because the code does not yet build with the new SDK, that means that the code will stop building if you update the SDK.
IOW I suck (and this is my starbait for the day).
 
12:04 PM
done :)
 
@Zoidberg if you use it right it gets the job done, i don't see how that's bad
 
user142019
Problem is that you cannot use it right.
 
user142019
And with other tools you can get the job done too, only much better.
 
@user1233963 If you think PHP is good, you should go to a mirror, look at yourself and slap yourself very hard and then ask yourself "Is my life really that uninteresting?"
 
@Zoidberg perhaps
 
12:06 PM
If you use it right, you can use a car to kill cows for butchering. I wonder why people don't use them.
 
@R.MartinhoFernandes but I use them for that
 
because cows are useful and cars are expensive
 
IOW every time you use PHP, you kill an innocent animal.
 
@TonyTheLion I don't do php and never will
 
user142019
@user1233963 You are a good person, in a way.
 
12:08 PM
@Zoidberg aww, that's sweet
 
user142019
No, it’s salty and somewhat bitter.
 
i like bitter
i like bitter
 
@user1233963 oh good :)
 
And now before I go to lunch, a treat for you.
 
user142019
 
12:09 PM
@R.MartinhoFernandes dafuq?
 
@Zoidberg proove it
 
user142019
TME
 
user142019
 
user142019
lol
 
Xeo
Who the fuck uses the index finger for ctrl.
 
Ell
12:13 PM
I use pinky
 
>not using nose for crtl
 
Xeo
@Ell automatic local variables are automatically moved when returned. Static ones are not.
 
@Zoidberg Found the solution! Just in case anyone is interested: ideone.com/yk0EjD
 
user142019
No I didn’t.
 
@Zoidberg you didn't what?
 
user142019
12:22 PM
I didn’t find the solution.
 
user142019
You claimed that Zoidberg found the solution.
 
@Zoidberg i found it
was just quoting you in case you're interested
 
user1357851
can use toe 4 ctrl if you don't have a fat tummy
 
user142019
lol
 
user142019
Do you guys like watermelon?
 
user142019
12:31 PM
IMO it’s meh.
 
user1357851
Watermelon is my favourite fruit
 
Watermelon is my favourite vegetable
 
user142019
Watermelon is not a vegetable. ಠ_ಠ
 
it's a weasel
:)
 
Ther are too many pictures on my screen.
 
12:36 PM
get a bigger screen
 
Looks like 4chan.
 
meh
4chan only has penises
 
Xeo
Woops, my vacuum cleaner slipped.
 
not weasels
 
@TonyTheLion Then it'll look like 4chan on a larger screen.
 
12:36 PM
@R.MartinhoFernandes my feet hurt, your argument is invalid.
@Xeo you have a daknok?
 
user142019
@TonyTheLion Get bigger feet.
 
user142019
So they can hurt more. :D
 
meh
@Zoidberg Fuck you too
 
If I ever become a billionaire, I will launch a vacuum cleaner line named "daknok"
2
 
@R.MartinhoFernandes :)
 
user142019
12:38 PM
lol
 
I have been making a list of stuff to do upon becoming a billionaire for a long time. I am afraid I won't ever need it but well.
 
Xeo
@R.MartinhoFernandes I hope you're thinking in the long system.
 
user142019
1. Buy Reddit Gold.
 
@Xeo Why? Does it really matter?
 
@Zoidberg 2. Profit
 
user142019
12:40 PM
3. ???
 
Xeo
@R.MartinhoFernandes You can put more stuff on your list.
 
4. Fap
 
user142019
lol
 
@Xeo Not really. One of the first items on the list is to make more money.
 
Xeo
lawl
 
user142019
12:41 PM
Somebody bought Bill Gates Reddit Gold. ಠ_ಠ
 
user142019
Sell Stack Exchange rep.
 
WTF is Reddit Gold?
 
it's reddit without ads and some other stuff
 
user142019
You get a few pointless and uninteresting features, and a badge.
 
I love pointless
 
user142019
12:42 PM
You can get Reddit Gold for free if you send a personal letter to Reddit HQ.
 
oh I should do that
 
user142019
Otherwise you’ll have to get it from someone else or buy it yourself.
 
because I love Reddit <3
 
user142019
If Bill Gates wanted Reddit Gold he would’ve bought it himself. Otherwise he wipes his ass with the money.
 
user142019
Anyway, time to write software.
 
12:44 PM
lol
 
user142019
What shall I write.
 
user142019
Porn site? Nah.
GitHub clone? Nah.
Bug tracker? Nah.
C# compiler? Maybe.
 
Something actually useful which you can finish by evening.
 
user142019
Pastebin!
 
@AndreiTita Why did you have to reduce his options to the empty set?
 
12:47 PM
@R.MartinhoFernandes I had to work within the given constraints.
 
Today I realised Mellon Collie is a pun on melancholy. I feel so stupid.
 
lol
 

« first day (851 days earlier)      last day (4100 days later) »