« first day (1007 days earlier)      last day (4167 days later) » 

21:00
I meant free, normal functions, of course.
@BartekBanachewicz well, in C++ a class can model a C function in your lua engine, right
@BartekBanachewicz Interestingly, that breaks on my box too, replaced:
namespace c_funs { namespace basic {
    template <typename T> using void_unary = void(T);
    template <typename T> using void_binary_same = void(T, T);
    template <typename T, typename U> using void_binary_diff = void(T, U);
} }
So, no MSVC suckage
TOUT VA BIEN TABARNACK DE CRISSE
@EtiennedeMartel Go home; you're drunk.
@ThePhD Not yet. But that could help.
@sehe kys -___-
21:03
@EiyrioüvonKauyf what
@EiyrioüvonKauyf making it meta functions works better than aliases. Someone was **being psychic yesterday. Here's a workaround:
namespace c_funs { namespace basic {
    template <typename T> struct void_unary { typedef void(*type)(T); };
    template <typename T> struct void_binary_same { typedef void(*type)(T, T); };
    template <typename T, typename U> struct void_binary_diff { typedef void(*type)(T, U); };
} }
This should give a clue on how to work with the function aliases
something is borked with it :/
oh gawd.
BIÈRE TIME
@BartekBanachewicz You know, you could really increase your productivity by unlearning the gasp reflex. I recognize that from some of my colleagues. Quite senstive to that now.
@sehe well I've came to realize I should probably be using &c_fun::fun. What's the gasp reflex?
21:06
ehh nvm it seems wrappers it is -_-
@sehe gasp
@EtiennedeMartel Tchin!
"o shit"
"oh gawd"
"FML"
"no way"
"MSVC suckage"
"what will I do"
hmm what do you call something that gets wrapped? a wrappee?...that sounds horrible
@EiyrioüvonKauyf That sounds so cute
user142019
21:10
@Borgleader One year of forced Python programming. No good code means no food.
@Borgleader nah i can beat that
that's why i use astyle with custom opts
user142019
gg=G
+1
it can't do things like } else { which some people like or make sure no like is greater than 70 chars
21:11
Is this the origin of the analog literals?
user142019
Even better: :%!~/.vim/gofmt.sh.
If you can't indent yourself then let your editor do it I dunno
It's really a non-issue
^ or use a custom indenter
.. no it's an issue sometimes ;A;
@sehe still my only reaction is "what will I do" ;/
@BartekBanachewicz keep trying
21:13
@sehe this was supposed to be simple. Make a list of types, make basic free functions templates, iterate over types and try if binding each one will compile and run.
user142019
Vim formats my Go code on save.
TBH I understand less of this code after I've added phoenix than before :/
@BartekBanachewicz learning is never simple. I'm trying too, you know
@sehe but that's... I can't C++, and this is extremely hard TMP.
@sehe I like how some other's people can make me feel stupid. Only C++ programmers can have that.
21:15
no a few others can too :D. never an opportunity to not feel stupid
I feel like I am missing a lot of "basic" concepts.
@BartekBanachewicz No, you probably miss a few extremely contrived concepts though
@BartekBanachewicz like?
@BartekBanachewicz You did no such thing. Before, it was broken and couldn't work. You didn't add phoenix, instead you replaced your functor by the phoenix thing that can work (there's proof). Now you need to massage mpl into actually creating your function types. Or, maybe, perhaps you can move it into your functor instead. (Lightbulb moment)
@kbok +1 good old boost way of life
@EiyrioüvonKauyf like how to pack regular function in the type so that MPL will accept it.
21:17
@BartekBanachewicz @sehe examples? :D
hmm, I ve got a really odd problem with qt...
@Tiina well did you try flowers and chocolate ofc
@EiyrioüvonKauyf I feel really stupid when reading those.
@EiyrioüvonKauyf flowers and chocolate?
21:18
^ On posingdjs.tumblr.com credits to @nordloef
@Tiina you're dealing with a qt = sounds like "cutie" lol
@kbok he's gonna get dirt on his records.
@EiyrioüvonKauyf I wish you could be right :D
qt > cutie
@kbok Dat website.
21:19
@StackedCrooked i disagree
@EtiennedeMartel lol
user142019
Qt is a terrible name.
It sucks and people who think the official pronunciation is better are idiots
It's a terribly embarrassing name.
It makes people cringe all over the planet.
great pickup line tho. cough
user142019
21:20
@StackedCrooked Maar het is zo schattig! :3333333333333333333333333333333333333333333
Reus is not bad.
user142019
Let's all go clopping.
@sehe I've did it w/o Phoenix
@BartekBanachewicz wut?
21:21
@kbob have you ever gotten weird pm's from awkward people that think you're a girl haha
@StackedCrooked Aren't those guys Norwegian?
user142019
Sigillum Diaboli is a great song.
@rightfold Don't tell me you just learned what that meant.
Let's make a big C++ framework and call it MGG but the official pronunciation will be "my jay-jay". Who's laughing now?
struct void_calls {
    void_calls(lua::state& state) : state(state) {}
    lua::state& state;

    template<typename A>
    void operator() (A) {
        state.register_function("foo", c_funs::basic::void_unary<A>);
    }

TEST_CASE(...) {
    mpl::for_each<basic_types>(void_calls(state));
}
21:22
@BartekBanachewicz you mean, you bailed and copied pasted a dozen lines a dozen times?
user142019
@EtiennedeMartel No.
@BartekBanachewicz neat
@EtiennedeMartel yeah I think so.
@StackedCrooked That explains it.
I don't see how.
21:23
@sehe It got to the point where it doesn't compile because Lundi, not because MPL :)
@BartekBanachewicz FWIW, here's a working phoenix approach, quite a hoop to jump to get it to work with function pointer template aliases... coliru.stacked-crooked.com/…
@BartekBanachewicz Oh, you are registering them then? No wonder it's slow.
@kbok the british wouldn't get it
ACK: lua_t::register_function("foo", PFviiE)
ACK: lua_t::register_function("foo", PFvddE)
ACK: lua_t::register_function("foo", PFvbbE)
ACK: lua_t::register_function("foo", PFvSsSsE)
ACK: lua_t::register_function("foo", PFv3nilS_E)
ACK: lua_t::register_function("foo", PFviE)
ACK: lua_t::register_function("foo", PFvdE)
ACK: lua_t::register_function("foo", PFvbE)
ACK: lua_t::register_function("foo", PFvSsE)
ACK: lua_t::register_function("foo", PFv3nilE)
@kbok but it gives us 100% coverage! At least for basic types
21:24
^ real vanilla function pointers
@BartekBanachewicz compilation coverage
@EiyrioüvonKauyf Selectively embarass only american people? Perfect!
embharass
Do we call "Text!" a string literal?
wait jk programmers are educated
@sehe nobody is preventing me from running them from Lua after I bind them, huh?
21:24
@Pawnguy7 Yes.
@BartekBanachewicz you're binding nullptrs AFAICT
By the way, @BartekBanachewicz, as far as I understand, you're trying to get an overload-set as a collection of function signatures, right?
@kbok Just call it Vagina.
user142019
@kbok I went even further; I made a collection of basic types and then generate signatures from them.
I actually wrote actual template functions, just with empty bodies :)
21:26
@EtiennedeMartel I like the fact that it's embarassing only when talking, and because someone though there should be a stupid official pronunciation
@BartekBanachewicz template functions (I don't even)
@sehe hm?
"function templates"?
@BartekBanachewicz function templates.
Oh, I blame Polish for that.
@kbok I don't like the fact that you're beating around the bush (pun intended).
21:27
@EtiennedeMartel Here, have 1 internet
IMHO they are still functions, just templated.
function templates, I suppose. I don't know what a template function is. Oh wait:
template <template<typename...> F, typename... T> struct TFunction { typedef F<T...> type; }; // a template function - nah
@BartekBanachewicz urgh, watch your language
A template function would probably be what boost people call metafunctions
@kbok How much is that in Canadian dollars?
@EtiennedeMartel Unfortunately, it has no value. Yet. But we never know, look what happened with bitcoin.
21:29
@BartekBanachewicz They're not functions. They're templates for a function. In the same sense that a blueprint isn't a house.
user142019
@EtiennedeMartel Zero.
@kbok Then I don't want your Internet.
@EtiennedeMartel Fine, I'll keep it. You can come get it anytime if you change your mind.
Anyway I just found a bug :D
I mean, that test case found a bug.
@BartekBanachewicz so you want to expose function templates in the form of a collection of instanciated function templates for all basic lua types?
21:32
yes, and possibly stuff like long, unsigned, etc too (basic C++ types in general)
Okay, that's totally insane, please go on
insane in what sense?
@BartekBanachewicz boost-insane
Wait until you see how I then make that for std containers too! :D
By the way, I think the issue is similar so I though it could be nice to expose an overloaded function
21:34
lua["foo"] = [](vector<int> v) { ... }
do any of you use Youcompleteme for vim?
I'm a bit concerned about build performance though
@kbok What happened with it?
@kbok that's only test. It won't affect lundi compilation time.
21:35
@EiyrioüvonKauyf I tried. It didn't work well enough for me. Too slow, and hangs.
@sehe It went from ~10cents to ~20$ I think
That's prolly good. Unless it resembles a tulip.
I don't think my former employer gets that I quit
@BartekBanachewicz Sure. Also no performance issues if you don't use it :D
@EiyrioüvonKauyf I have gone for years without intellisense. I think I can manage. Until someone sorts it out to work well.
21:36
I keep wanting to answer questions despite my rep cap.
@sehe thing is.. it seems ok.. i just don't want options unless I ask for them like tab
@Rapptz Good
having this thing working 100% of the time is annoying
@EiyrioüvonKauyf Me too.
@EiyrioüvonKauyf Hear hear
so...do you know of an option.. i'm thinking of filing an issue. this is a serious issue for me.. .also i think i broke Syntastic -_-
21:37
@sehe Your answer doesn't mention §5.2.4.1 for pseudo-destructors which is what the OP wanted I think.
The beer train on my desk is getting longer.
@BartekBanachewicz Say I have void cocotte(int x); void cocotte(string x); void cocotte(vector<string> x); I want to say "lua, please expose cocotte" and it will do the rest
@kbok oh gawd.
that's uh..
you have no idea... or perhaps you do... how complicated it will be.
@Rapptz Feel free to add :)
I'm busy
Since you're enumerating basic types, you can test agaisnt a given signature for overloads and extract a list of functions, weed outs duplicates (if necessary... I don't know), then expose those
21:39
> -140 18 hours ago reversal Serial upvoting reversed
How do I explain the analog in analog literals?
That's you guys I assume :<
@kbok We'd need to Fusion-parse all overload,s verify them, reject the ones that we don't like and generate functors for all of them. The we would have to create dispatching functor that would runtime inspect lua type passed, look in registered overload functors and call the appropriate one.
and you know what? It's fucking possible and we can do it :3
@BartekBanachewicz Yep.
@MooingDuck nop
21:40
@kbok but I will really need your help. You see how big this is getting :F
@MooingDuck huh?
You know, lundi is the thing I show to people when they ask "what do you do with your free time?" so yeah, let's do that
@BartekBanachewicz no not possible. so much work o_o
@sehe someone serially upvoted me yesterday. Probably because I mentioned my rep :(
@BartekBanachewicz I'll have time for the next few weeks to work on this
21:41
@EiyrioüvonKauyf do you realize how much work we already put into Lundi?
@kbok amazing.
@BartekBanachewicz can you just generate a script to do that >> the boilerplate
@EiyrioüvonKauyf Considering what was done already, it looks quite feasible to me
@EiyrioüvonKauyf ">> boilerplate"?
@MooingDuck yeah. I hate when it happens. I only had it happen twice, I think. And modestly. But they got reverted. First time I tried to notify the perpetrator ("Thanks for the nice gesture, but please don't. This is not how SO works")
21:42
@kbok after we have this I think we might start seriously thinking about proposing it as Boost.Lua
@EiyrioüvonKauyf That totally defeats the point. People should be able to call lundi functions from their code in a transparent way, and also from templates
22 hours ago, by Mysticial
Quick everyone, serially upvote @MooingDuck!
@BartekBanachewicz I'm not completely happy with it ATM. There's a few not-fun things to add, I think, to make it really usable. That's why I try to go forward with my game to try and work out what would be useful.
1
A: min and max simply doesn't work in this case?

Derek LedbetterMake sure that you're actually using the min and max functions from <algorithm>, and not some macros defined elsewhere. For instance, the Windows header windef.h defines max like this: #define max(a,b) (((a) > (b)) ? (a) : (b)) This won't work in your code because it potentially evaluates eac...

Look at Daniel's comment
@kbok I've implemented current lambda binding while battle-testing it with minicraft
21:44
@MooingDuck haha
What a jolly-good guy
Blame @Mysticial !
@BartekBanachewicz I think we should consider applying for Boost once we're able to show this to someone and have him answer "yes, this is better than everything else and I'd rather use it"
5 mins ago, by Mooing Duck
> -140 18 hours ago reversal Serial upvoting reversed
21:45
@MooingDuck oh dang. That's pretty explicit
@Mysticial :)
AHAHAHAHAHA
Wasn't me who did that.
@kbok obviously it's better than everything else :)
@Mysticial suuuure
*As in, I didn't serially upvote you.
21:46
Lol
@BartekBanachewicz It really is, and we have to prove it now
I take no responsibility for the things I say in this room.
6
Do not upvote Cereal
Calcium rich milk is clearly superior
Someone else mentioned §5.2.4.1 !
I gave him a +1 for actually answering the question
Why do you mention your voting in chat?
21:49
I think it's the first time I've done it.
BTW: this could use more cv's by now, I guess: stackoverflow.com/q/17747557/85371
@Rapptz that's why it strikes me
@Mysticial We know that by now :/
@sehe Because I mentioned it earlier!
@Rapptz ok! Exclamation mark!
Hey now, I'm on a budget. I can't use two exclamation marks.
It's scary when you close-vote a question with an OP who has >125 rep. I got downvoted out of the blue twice for that ;p
21:51
That's not very out the blue, then, right.
Also, what's scary about losing internet points
@sehe At least, the first time it was :(
Nothing, I'm mentally ill
@sehe He must be scared of so many things
Somehow, that never happens to me anymore. Perhaps it is because I don't engage in discussions that often anymore. I still do downvote. And I do leave comments when I do - unless it was already clearly explained by others
internet rep lol
"It's scary when the bill doesn't add up to a round number"
"It's scary when you get hit by a car"
^ compare and comment
21:54
That's not scary. It just sucks.
it's scarier when i have to get out of bed
3
@kbok It's scary when you think you will be hit by a car. (/cc @kbok)
It's scary when your code compiles
a car going at > 10 miles per hour
@Magtheridon96 True that. No errors should be a warning: "The compiler wasn't able to find any of your errors"
21:54
no Seg Faults are scary
-___- and i just got one dammit
@sehe Actually, it is.
thank you boost
Don't thank boost. Thank C
so, thing is.
no i think boost is being screwy. I love it when i find undocumented bs that complicates my life. like keep this around because it's actually important
21:56
Don't thank boost, thank me. All the time
C is like your douchebag wingman
I can pass incomplete class type via template, and instantiate it inside with any type I want.
Can I do the same with function template?
@EiyrioüvonKauyf Everything in boost is thoroughly documented
Really? :)
@BartekBanachewicz Probably, but you still have to try
21:57
Sometimes the documentation is only a notch above similar Doxygen output.
@kbok no. "thoroughly" no one on boost seems to understand edgecases -_-
Though I agree it is usually fairly good.
@kbok Much. A lot of it isn't, though. I think Boost Serialization is underdocumented. MSM, Flyweight, BGL aren't well documented
@BartekBanachewicz I don't understand what you're asking
@kbok i am trying and it works not.
21:57
(And yes, I have the BGL book)
@BartekBanachewicz think the drawer should have a refernece to the window?
Give me an example, because I've never seen such quality docs elsewhere (except for Qt but meh Qt)
@sehe Thanks for pinging me twice?
@kbok @kbok @kbok
@MooingDuck I can instantiate a class with a class that itself is incomplete. I'd like to, somehow, make it instantiate and call a function I (in whatever way) give to it. "via name" if it makes sense
@kbok it was really important (cc @kbok)
21:59
can't let @sehe beat me
@kbok ahahaha. Well, the first time was in response to a different message :/
What the boost docs need is more Jimmy-proofing
@Magtheridon96 what?
@BartekBanachewicz More Idiot-friendliness
@sehe Oh, you edited to reply to yourself.
21:59
@Magtheridon96 boost was never meant for idiots

« first day (1007 days earlier)      last day (4167 days later) »