« first day (1787 days earlier)      last day (3385 days later) » 

20:00
@ElimGarak What part of "i suck at math" was unclear =/
Wow
@ElimGarak yes those are words
They changed everything out from under me
I'd better fix these professor names...
goddamnit
I can't beat 1410m/s
MORE SOLID BOOSTERS
20:02
SRBs and planes aren't best friends
@ʞɔᴉN You're my solid booster bb
@Puppy Divert all power to structural integrity!
oh I know
HAH
I fixed the typo.
Suck it, star-person.
6
@Borgleader Trust me, I have been.
20:03
... FML.
MOAR STRUTS.
@ThePhD I don't star for typos
@Puppy Wait... you can do that? I was just making a star trek reference
hah got eem
@ElimGarak s/UT/UCT/
20:03
not in KSP
in general, I have been diverting my brainpower to improving the structural integrirty of my craft
the problem is that if you stay low enough for the air intakes to pull in enough air, you are so low that the drag will destroy you
Oh thanksfully my database's course professor is smart
They are not gonna force me to write 3 levels deep queries for the project
let's try just getting rid of this fairing
I'm not sure if it's really aerodynamic enough
Holy shit google mailing list's interface is somehow even worse then livecoding's one.
That's impressive.
Can someone help me figure out why the false_type generic lambda is instantiated here?
(also, g++ seems to have a weird thing where it says "expecting 2 arguments" even though providing just one and leaving the variadics empty should be fine?)
yeahhhh 1420m/s
20:11
@melak47 shouldn't you be using std::enable_if somewhere with std::true_type?
@TonyTheLion it's supposed to dispatch on any tag, not just true/false_type
@melak47 Hmm, where exactly are you selecting only the lambda that has that specific type?
lol
70
Q: What do I do when I'm being insulted in a post?

Colin GillespieI am getting attacked. I have seen this happening quite a bit lately, but usually only in the comments though. How do we educate people on how this site works?

@ʎǝɹɟɟɟǝſ overload<Lambdas...> has all the operators, overload resolution should select the best one :D
mom he called me gay
20:15
@melak47 Hmm
Hmm where was I... oh yeah I need to find a reference for this tonemapping thing
hmm
seems that I forgot to get rid of my heavier space engine
@melak47 I don't see how honestly
can save myself 750kg by replacing it with the light space engine
There's no overload resolution
You are just importing every operator() from every lambda there, it seems.
20:17
yea definitely looks like something's missing
I don't know, why do you think it would not consider the [=](std::false_type, auto...) lambda? You are never using that Tag type anywhere.
Oh wait
Oh, I see
Well, maybe. I didn’t really think it through, tried the first thing I noticed.
Note that you can add template<typename Dep = void> to push_somewhere and use a depends<Dep>(container) (write that one yourself) to depend on that rather than xs, I think. Your call.
yeah but that's crap :(
20:20
@melak47 Independently from overload resolution, your lambda is capturing the container, which at the point of instanciation the type is already known, and it's performing an operation that is not allowed.
That even before tag_dispatch<std::true_type>(...) is called
@ʎǝɹɟɟɟǝſ but how does it know... how can it instantiate the body of the lambda to check that without the argument types. Why does it have to be so smart!
Yeah depending on the lambda parameter is probably the right thing to do. I’m covering all options because I only took a quick glance at your program.
@melak47 Compilers be smart yo.
VS is not :v
@melak47 Because the type of the captured container is already known and won't change.
Lel
20:21
guys
That bites.
Allowing your code would mean that the type system is effectively broken
@melak47 'Compiler' meaning 'a program that compiles other programs' :D
goddamnit 1421 :(
remember that "beating overload resolution into submission" article?
20:22
There's not a single flow of control where you would use that lambda correctly.
Never heard of it. Probably written by a noob, too.
Probably.
I bet they do some rinky-dinky tag dispatching junk too.
@ʎǝɹɟɟɟǝſ yeah, so? unless it's instantiated, and is never used, why bitch about it :(
@melak47 That’s not how C++ works.
20:23
@melak47 What Luc said
it is used, at the construction point of lambda
@melak47 "Why check if (false) { int x; x.method(); } if it's never executed"
nvm I found it :)
E.g. ++0 is always an error and the compiler will always report it (or SFINAE from it), instantiation be damned. It’s the right behaviour.
That's the same thing
20:24
Template code like that always confuses me :/
@TonyTheLion I still have no idea what that does precisely.
I may have an intuition of what he is doing, but I'm not sure how everything works
goddamnit
I performed a more aggressive levelling maneuver that put practically all of my plane into the red and I got a whole 6m/s for it.
The instantiation process is largely meant to be invisible and any observable effect is likely an oversight and a defect in the wording (the less said about seeming exceptions the better). Which will get fixed later. Dependent types and expressions are also entire concepts to make things work. Everything else is regular C++.
20:26
@Puppy it's supposed to be 1337 :p
@melak47 It’s possible that a compiler is allowed to reject the program but not required to. Sadly I don’t remember off the top of my head.
lol
@melak47 lol
@ʎǝɹɟɟɟǝſ what? :/
I have no idea what's going on
I guess the second lambda is never actually put into your code for some reason
20:27
@ElimGarak This is cool, you wont learn anything new but its cool.
Yeah, forget everything I said
No but seriously make your expressions dependent.
I mean sure, inheriting all the lambda's operator()s and this is different, but why doesn't this need to depend on the args?
@Borgleader Whoa!
nevermind, bug in g++ I guess. clang rejects it :D
._.
this is why we can't have nice things
20:30
So excuse me for being idiotic, but what does this actually do?
 template<typename X, typename... Dependees>
X depends(X&& x, Dependees const&...)
{ return std::forward<X>(x); }
@melak47 It’s only a bug if the compiler is required to reject the program. I don’t know the exact rules, I rely on rule of thumb. The question could be a good fit on SO.
in relation to what melak47 posted earlier?
@Borgleader That probably took some effort to make, so cool kudos definitely.
Like Dependees seems to have no function here?
The number of times 'no diagnostic required' appears in 14 Templates is quite high tbh.
20:32
@TonyTheLion Move-constructs an X from x
Dependees serves some nonexplicit funciton
I think it's for delaying instantation because we have arguments to be deduced or sth
@набиячлевэлиь Comes from here
But it may be me talking out of my ass
perhaps in context the function makes sense?
Well no funciton without a context
20:33
> funciton
I like it
there's also verbibol
std::funciton
It has a french accent
funcitòn
20:33
@набиячлевэлиь It makes the thing dependent.
@milleniumbug The particular specialization to be used in the call depends (for lack of a better word) on the argument types. Hence a call as an expression is type-dependent.
Which turns hard errors into soft ones.
Welcome to magic of C++ template instantiation rules.
Want some more C++ template instantiation magic?
@LucDanton yay almost guessed it
@Griwes My mind doesn't bend in that direction :(
20:34
@ElimGarak Did you get to the mathbox part?
It's the same thing as DependentFalse
@TonyTheLion Until depends is actually instantiated, the compiler has no clue what the type actually is.
ok
20:35
So, until the lambda is instantiated, it has no idea what the type actually is.
perhaps this is the "just add more engines" bit.
Hence, it cannot hard error on that line.
so it hard errorred before because it tried to figure out the type too early?
overload(Lambda lambda, Lambdas... lambdas) :
@Griwes I don't suppose I can capture depends(this, xs...) and make the whole damn lambda dependent? :ppp
20:36
For some reason I really enjoy this line.
@набиячлевэлиь and lambadas (or labadas)
@melak47 ;_;
@melak47 you can #define _(X) depends(X, xs...)
ergh.
I like explicit dependencies :v Easier to read/review the code. Templates are write-only enough as they are.
@melak47 :D
20:37
@ThePhD I have to have time and interest. So, what is it?
@LucDanton Maybe yours.
:D
@Griwes Any amount of write-only is 'write-only enough'.
I added more engines and everything went splodey.
@Puppy odd
20:38
@sehe The open source library from before, sol. I wanted to get some ideas on how to improve the internal implementation, or how to properly check it for how performant certain subroutines are.
@Puppy MORE engines
@набиячлевэлиь Look at this: coliru.stacked-crooked.com/a/a34dd23cab3a46a0
Do you know how to make it compile?
I don't like it when my plane splodes
Like, uh. That one boost::spirit answer you did were you profiled the crap out of the code and reduced its time by lots. I think it was the CSV parser...?
I wish I was good at searching my own history.
@Griwes wow
constexpr function non-usable in constant expressions
way to go, C++
20:40
@набиячлевэлиь the answer is... coliru.stacked-crooked.com/a/a9b862a1648316b2
@milleniumbug ^
@Griwes wtf
This is basically the same as that depends.
rip my sanity :/
It makes it, err, lazy.
Welcome to C++.
I might be your guide.
Even meth is better than this
20:41
:D
so only because you made it a template it compiled?
The template argument here also serves "no" purpose.
and you instantiated it with void
@TonyTheLion Yes.
@TonyTheLion Don't be afraid, they will fix variadics
20:41
The order of instantiations changes.
why doesn't the first version compile anyway
Quite literally this time
So the definition of baz sees a definition of bar.
so what rule dictates that?
@milleniumbug Because the order of instantiation is borken.
20:42
so its an error in the standard or the compiler?
10
A: Calling constexpr in default template argument

Johannes Schaub - litbRichard Smith (zygoloid) at the LLVM IRC channel had a short talk with me about this issue which is your answer <litb> hello folks <litb> zygoloid, what should happen in this case? <litb> http://stackoverflow.com/questions/10721130/calling-constexpr-in-default-template-argument <litb> it seems t...

I don't know.
10/10 would template again
> <zygoloid> it's a horrible mess. Clang does not do what the standard intends, but as you note, the actual spec is gloriously unclear
but the first version's not a template
"gloriously unclear" is a whole new level I didn't know before seeing this
@milleniumbug And that's why it fails.
With templates, the instantiations are lazy.
20:43
@ThePhD This one?
Without that, they are eager.
@набиячлевэлиь ahahahahhahahahahahaha
First level of C++ lawyery is to stick to the wording of the Standard. Second level is to stick to the intent of the Standard.
@Griwes lazy as in "lazy evaluation"?
I literally laughed out loud.
20:44
ok new record
1456m/s
just goes to show the solution to every problem is more engines.
@TonyTheLion Lazy as in on demand.
@Borgleader It's earlier. He answered like 4 questions where he optimized the code in waves. It was a parser. He started out by cleaning up the rules and then he changed to use mmap and then provided a no-copy version.
@Puppy *solid boosters
is the definition of foo::bar() visible only after the definition of foo?
20:45
@milleniumbug Something like that. Maybe.
I don't really know.
man, who came up with this C++ thing...
> yep looks at notes um.... I dunno how to say this to you, but... you called a contexpr funciton delicate sob expecting it to be... breaks down expecting it to be a constant expression! cries openly
vOv that was the easiest way I could think to get to my chat profile thingy to change shit up
I didn't try to read the standardese on that yet.
@ThePhD Hmm, well this one mentions mmap
20:46
I'll make a lighting talk about it one day.
Maybe for next year's C++Now, dunno.
hilarious
@Griwes >30% lightspeed?
I'm switching to Java
5
@набиячлевэлиь 133% lightspeed.
fuck this shit
20:47
:D
C++ be hard
@milleniumbug Use Scala
The best thing is
Templates usually make things more complicated. And sometimes require some fighting to get the expected result.
But not here, here they are the only way to actually do this sanely.
Which is utterly absurd.
Ugh fucking snackchat throttling.
@Borgleader It's this one!
@Griwes stop splitting your messages on a bunch of lines then...
20:48
Took me a while to find that.
@ThePhD ah bookmarked for later, im still looking at the 3d tutorial thingy, so pretty
@ThePhD Did I ever do something on spirit code by you :) wow.
I forget
> enum { line = __LINE__ };
hmm
> error C2057: expected constant expression
WTF ?!?!
20:49
If only you could debug templates
@Mr.kbok what what
@ThePhD So, is sol your lib?! It comes out nice in that benchmark, for starters
I could gain 0.07m/s^2 acceleration by jettisoning that monopropellant I did not want.
@Mr.kbok hahaha
@sehe I never wrote a spirit anything. I just remembered this answer from a while back.
20:50
@milleniumbug MSVC
__LINE__ not constant anymore
> >2015
> >still using MSVC
that's the best time to use MSVC since ever
Isn't __LINE__ a static variable whose value changes every line, though?
@набиячлевэлиь the shit you can do with managed C++
@Griwes It's a macro, IIRC
20:51
C++/CLI you mean
never before was MSVC not-that-bad
@sehe sol is not my lib, it's @Rapptz's. But, I like it a lot and I want to super improve it, since I have plans on using it, plus I want to try my hand at "how do you make something faster" in... well, similar to the way you took that person's question and made it faster... and better. Add just more awesome, in general.
as in, an integer literal
@TonyTheLion It's C++/CX now.
20:51
@TonyTheLion The name changes every two years :P
@ThePhD I wouldn't rule out that it's just fine. Also I have no experience with Lua
@Mr.kbok no problem in 2015 for me?
> interactive
> templates
20:52
Mkay. So only __func__ was this weird non-macro thing.
@набиячлевэлиь ?
@ThePhD Ah. It's unfair comparison because I really do have specialized a bit in Spirit :|
@Griwes hmmm coool
@melak47 015 == 13 :P
@Griwes It sounds as if you entered the templates line-by-line by hand
@набиячлевэлиь Go watch it, you potato.
as with most "interactive programming shells
@Griwes Co za werbibol pierdzielony, no!
Then jump to ~35:00 or something.
20:53
@milleniumbug smartass :p
@Borgleader I remember looking at this and thinking I was insane.
@melak47 yeah, probably a bug in vc12.
no big deal though
just :dunno:
¯\(°_o)/¯
is it just with enumerators, or static const too?
@melak47 just enums, also only inside a function
@sehe Ah... well, alrighty then. I could probably figure a fair bit on my own. But, thanks for considering it!
20:57
> It’s Gabriel again, your Account Manager at JustCloud

I sent you an email a couple of weeks ago highlighting that your file security license was well overdue and had fully expired.

As previously mentioned, your important files and documents are currently exposed and vulnerable to harmful viruses, corruption and even deletion.

Did you know that nearly 9% of computers crash per day? Some of these can be fatal with 35% of crashes resulting in loss of data!
@Griwes All I see is a Hungarian talking about pretty-printing

« first day (1787 days earlier)      last day (3385 days later) »