« first day (1638 days earlier)      last day (3328 days later) » 

3:00 PM
@райтфолд Which needs to be inherited by the object?
 
user1804599
No.
 
user1804599
It wraps the object.
 
@райтфолд Breaks in slightly more complex scenarios.
 
user1804599
> T value;
 
But the object.....bah
 
user1804599
3:01 PM
@milleniumbug Yes, but for simple cases, and apart from the >, this is forwards-compatible!
 
@Cinch I'm not at school
 
wait that's C++1z code?
 
@MichaelMitchell I haven't gotten the paper back yet :|
 
It needs concepts right?
 
i'll probably get it this week
 
user1804599
3:01 PM
@Cinch yes, for static_assert without message.
 
@Blob lame
 
@райтфолд No wonder.
Is there a way to do the same in C++11?
 
user1804599
No.
 
Okay, good, that's the answer I was looking for
All that black magic with C++14++ is weirding me out even more
When C++14++++++ comes around My mind will explode
 
user1804599
Is anyone here really good with the preprocessor?
 
user1804599
3:03 PM
I really want to have the > there.
 
@райтфолд \>?
 
I don't think that's possible.
 
@райтфолд what are you working on?
 
user1804599
 
niet
 
user1804599
3:06 PM
Hehehe variable templates.
 
@райтфолд you want it to be requires< ... > instead of requires(...)?
 
user1804599
No, I want template<typename T, typename U> instead of template<typename T, typename U.
 
MarkdownPad installer has an option for "English (United States)" and no other English :(
 
@райтфолд hmm, well you could do some interesting hacks to eventually gobble up the requires-statement with the return-type, not super-pretty though, and it requires a fair bit of typing - but it will eventually work
 
user1804599
Using return type with enable_if would be ideal.
 
3:15 PM
I can write you a way to do it when I get home, need to get dressed and leave the gf's house
 
user1804599
Some kind of type-level comma operator would be terrific.
 
user1804599
@FilipRoséen-refp Have fun.
 
Does anyone know how I could go about retrieving my router's IP address using HTTP requests? Maybe request it from Google?
 
user1804599
No.
 
3:33 PM
@FatalSleep Are you trying to do initial configuration of the machine, or are you trying to retrieve the router address on a machine that's already configured? For the router's address, do you want the internal address, or the one that's visible to the outside world?
 
I want the router's public address, no need to worry about configuration.
 
@FatalSleep One trivial way would be to parse the address out of the result of one of the web sites like myexternalip.com.
 
Hmm... I had a similar idea. However, I'd like a more direct approach.
 
user1804599
Maybe I should look into PCHs.
 
user1804599
My builds take over ten seconds.
 
user1804599
3:40 PM
Or a RAM disk perhaps.
 
lol 10 seconds
oh noes
 
user1804599
I can do a lot in 10 seconds.
 
Just enough to break you out of the flow.
 
Xeo
10 seconds.. hah, I wish Unreal would build that fast
 
user1804599
Let's see what a clean build takes.
 
user1804599
3:44 PM
> ninja 261.66s user 9.69s system 319% cpu 1:24.88 total
 
user1804599
Takes way too much time.
 
ooh that was a tasty food time.
simple, but tasty
 
Xeo
Hm, I have yet to eat
I think I'mma make some pasta today... although. I ate pasta yesterday.
 
yeah, but you can do a lot with pasta
 
user1804599
ConceptClang seems abandoned.
 
Xeo
3:50 PM
I had tagliatelle with shrimps and garlic sauce yesterday. Today would be spaghetti with cheesy sauce
 
@FatalSleep You can do the job via UPnP. I looked into it once, and decided it wasn't worth the trouble--I quickly concluded that UPnP in trying to be all things to everybody, UPnP ended up a complete mess that doesn't work well for much of anything.
 
user1804599
Typical lack of eye for detail.
 
@JerryCoffin UPnP? If it's a mess, I would rather not use it then. That said I'm trying HTTP since it'd be a nice multi-language approach.
 
@Xeo oh, yesterday sounds tasty
 
Xeo
3:53 PM
twas good
 
user1804599
user image
5
 
Not bad
 
@FatalSleep I found it messy anyway. It tries for too much abstraction. Instead of simply: "here's a list of stuff you can ask your router to do", you have to start with finding a UPnP control point, which can give you a list of UPnP devices, which can each give you a list of UPnP services. Then you have to figure out which service can provide the information you want (made more difficult by crappy documentation) and how to actually invoke that service to do its thing (more crappy docs).
 
@JerryCoffin That sounds overly complex.
 
The only thing I've ever seen UPnP used for is port forwarding autoconfig
 
4:00 PM
@райтфолд can you fart twice, though? I mean not with an interrupt/resume trick, but independently completed farts?
 
user1804599
No idea.
 
And that's only in home networks
 
See. There are limits to what can be achieved in 10s
 
@sehe You can't?
 
@CatPlusPlus Exactly--it's actually used for only fairly small number of fairly specific purposes, but was designed (and especially, documented) as if it was providing everything to everybody for all purposes in all situations. It ends up much harder to use, without adding (meaningful) extra functionality.
I should probably also add one other minor wrinkle: at least if memory serves, virtually all the data used in UPnP is formatted as XML, so using it also means adding an XML parser to your code.
 
4:06 PM
@JerryCoffin I guess this works. Simple HTTP request to this: ipify.org
 
I think I can. But this will require some preparation and concentration.
It's not something I feel comfortable doing for anything dependable.
 
user1804599
I need something fun to do.
 
I've got an awesome idea
bet you haven't tried it yet
 
user1804599
Tell me.
 
create a programming language
 
user1804599
4:10 PM
:(
 
no dont
 
:D :D :D
 
Create a scripting language.
 
@райтфолд gamble
it's fun
(when you win)
 
user1804599
:(
 
4:22 PM
@FatalSleep Yup--may be marginally slower, but almost certainly a lot less work than using UPnP.
 
hello all
how's everyone doing
 
@JohannesSchaub-litb wow you havent been here in a while.
 
@AlexM. gambling should also be fun when you don't.
@JohannesSchaub-litb wow. hi
 
that was the plan. to be absent for a while and then earn praises
 
hi Johannes, how are you doing?
it's been a while
 
user1804599
4:39 PM
Ugh, Go's unit tests fail.
 
ffs, libsmi still crashing
-.-
 
user3010322
4:51 PM
libsmi?
 
is there any good programmable reverse proxy where I can easily specify some source and destination url patterns ?
 
user1804599
Ugh, non-exhaustive gitignores.
 
@NeelBasu what makes you think we would know?
 
5:08 PM
@Borgleader I talk in this room only. don't other rooms
 
@NeelBasu Do you talk in your bedroom? How about sing in your shower, which would be in your bathroom?
 
@Nooble Ya I do both. I talk in bedroom, sing in shower.
 
@NeelBasu Very interesting information. I shall be keeping this in your portfolio...
 
@LightningRacisinObrit and you said my counter wouldn't get me anywhere... this be magic. ;-)
 
@Nooble I'll be honored honored
 
5:22 PM
@JohannesSchaub-litb I guess the above message to LRiO could be of interest to you too, look at that beauty! I'll publish my findings (and the implementation) really soon
 
user1804599
Nice.
 
@JohannesSchaub-litb long time no see by the way; how are you these days?
 
@райтфолд exhaustive ignores. That would be whitelisting (so, includes then). Try *\n.*\n!*.hs etc.
 
user1804599
No.
 
@Nooble I talk in my headroom.
The bride talked to here g-room
 
user1804599
5:34 PM
There are build artefacts that not covered by gitignore.
 
user1804599
Basically, if you have no changes, and you run the build system, there suddenly are changes.
 
user1804599
That's not how it should be.
 
haha. You mean, gitignore isn't complete.
 
@FilipRoséen-refp Looks like pretty bad magic to me.
 
@Puppy bad ass magic
 
5:34 PM
no, just ass magic.
 
@райтфолд No false negatives in .gitignore is hardly "exhaustive"
 
@Puppy whatever you say
 
it's like just casting the function to the appropriate pointer (a thing I never need) but the arguments need to be default-constructible (?) and it's more verbose.
 
@sehe :P
 
Don't worry. That punny guy is just my mush room talking
 
5:36 PM
@Puppy seems like you don't see what is really going on, but maybe I should have stated that the auto pN are function-pointers
 
yes, I got that part.
 
@Puppy ie. given a set of overloads, and some parameters, the magic will give you the address of the function that would be called given those parameters
 
@FilipRoséen-refp it'd be nice to show the type of p1,p2,p3
 
@sehe sure, I'll make it explicit
 
oh I see people are already picking you up on it
 
5:37 PM
@FilipRoséen-refp You mean like static_cast<Sig>(&func)?
 
Xeo
@Puppy doesn't work when taking into account conversions
 
@Puppy yes, no express how you get that Sig without writing it out explicitly
 
@FilipRoséen-refp You did write it out explicitly.
 
@Puppy nope, I didn't
 
but even worse because the user had to provide actual argument objects.
so if they were remotely complex or expensive, you'd have to shit around producing them for it to work.
 
5:38 PM
ITT @Puppy doesn't understand the magic, the interface can of course be changed, that's not the magic part.
 
@Xeo You could probably lambda that.
@FilipRoséen-refp The interface is the only important part, since you can already static_cast<Sig>(&func) for the same effect.
 
Xeo
@Puppy try lambda what?
 
@Puppy shit, I'm too tired to explain shit like this to you
 
@Xeo For conversions.
 
Xeo
try write it out
 
5:41 PM
auto p4 = [](long long obj) { return func(obj); };
seems pretty fine to me.
 
@Puppy long story short; the pointers (p1, p2, p3) compare equal to the actual overload
 
Xeo
@Puppy and that gets you the address / correct signature how?
 
@FilipRoséen-refp So does the static_cast outcome.
 
@Xeo is @Puppy trolling?
 
@Xeo The whole point was not to get the exact signature since you wanted a conversion.
 
Xeo
5:42 PM
@Puppy but you need the exact signature for the static_cast
 
@Puppy the whole point is getting the exact signature of the function that would be invoked with a given set of arguments
 
Xeo
> auto p2 = resolved_address_of (&func, 'A'); // decltype(p2) == void(*)(long)
 
@Xeo You don't need to static_cast if you go the lambda route for conversions.
 
Xeo
note the 'A' argument, of type char, and the actual overload selected, with a parameter of type long.
But really, try writing that resolved_address_of.
 
I don't see why anybody would ever need it.
 
Xeo
5:45 PM
that's not the point right now. The point was that you think it's a simple static_cast or lambda.
And since you don't seem to accept our arguments, I want you to find out yourself by trying to write it.
 
Should I do something today hmmmm
 
Xeo
You should come out from under the couch - oh wait, that's my cat, not you.
 
@sehe see this (updated) /cc @Xeo @Puppy
 
@FilipRoséen-refp Looks like magic indeed.
 
I'll publish everything soon enough, but now I need to hang out with my little bro' - we gonna play some FIFA!
 
5:53 PM
@Xeo That's not an equivalent comparison, since in some cases you'd apply static_cast and in others you'd use a lambda, rather than delegating both cases to one function.
 
Xeo
that is not the point!
 
@Xeo he just doesn't get it, it's better to just leave @Puppy being DeadMG, ie. impossible to reason with.
 
it's completely the point.
I don't see any feature that the function offers that you can't do with either of those two.
 
So you have a third option instead.
 
Xeo
Unless I grossly misunderstood you, you said that resolved_address_of(&func, args) is a shittier version of static_cast<Sig>(&func).
 
5:55 PM
except possibly function pointer equivalence, which is hilariously useless.
 
Xeo
The use cases of resolved_address_of are completely irrelevant to my point.
 
the use cases for the magic used to implement resolved_address_of is what matters deeply, resolved_address_of is just a simple way to show off that sort of magic
 
really? because I'm pretty sure that my fundamental point was that it has no use cases.
 
With lambda you have to write [](decltype(x) a){ return a_function(a); } which is getting annoying
 
Xeo
@Puppy I didn't exclude that possibility (I also don't think it has much, if any, use)
 
5:56 PM
if you have more than one argument
 
Xeo
my point is purely the implementation
which is far from static_cast<Sig>(&func), or a lambda, I'm pretty sure.
 
@Xeo you got that right
 
the implementation doesn't matter to me, what matters is what interfaces it can provide.
 
Xeo
well, the static cast will be there. But getting the Sig part is the thing.
 
And the static_cast is not equivalent because you have to write specific type of the function, not the one that's convertible.
 
5:57 PM
@Puppy you are looking at this the wrong way
 
@milleniumbug That's true, but you can just define the convertible one as a lambda.
 
Xeo
@Puppy And that's exactly what we don't care about. We care about how it's done in the implementation.
 
ok
 
@Puppy See what I said earlier. (that it's getting annoying if you have more than one argument)
 
@milleniumbug Why would you need to write decltype(x) instead of just the actual type?
and I fail to see how providing an object of type T is less annoying than providing T itself except in a very few special cases.
 
5:59 PM
Because genericity and stuff?
 
genericity in a function pointer? good luck.
 

« first day (1638 days earlier)      last day (3328 days later) »