« first day (1143 days earlier)      last day (4031 days later) » 

12:00
Put something between the legs - rent a horse!
2
user3010322
using swallow = char [];
void(swallow{ (stack::push(L, std::get<I>( args ) ), '\0')...});
user3010322
^ Seems like a seriously bizarre work-around.
Just "seems"?
user3010322
Well, it is a bizarre workaround.
user3010322
No idea what to make of it.
user3010322
12:01
Or how to make it stop. <_>
user3010322
@CatPlusPlus thx u is worked...
man
@Rapptz Yes, nobody writes HTML, all websites are done by magic fairies and storks
did you purposely misconstrue that?
12:05
Nobody generates HTML, if that's what you meant with "by hand"
It might be templated, but it's still HTML at some level
I meant templated but you're free to interpret it however you feel like it.
It's still writing HTML by hand
Whatever you say.
hey
12:09
hi
@egur What's the point in commenting on something you clearly don't have the first idea about? And then, posting that as an answer? — sehe 12 secs ago
People...
Polar Bears...
user3010322
@user7236293 Hiiiiiiii
user3010322
Whoa, sehe is almost to 100K :O
the processed_signal notification can still get lost — stefaanv 13 mins ago
^ People. I was so tempted to say "You know who can get lost..."
Instead, I put on my polite bear persona:
12:16
@ThePhD hider
@stefaanv I'd appreciate if you demonstrated how. I think the processed_mutex amply protects that. The consumer can't possibly signal the processed_signal (a slight misnomer, btw :)) until it gets the mutex: hence, by definition the producer is waiting on the condition variable first. — sehe 1 min ago
@ScottW hello H2SO4
Ohey, Stefaan Verstraeten is from Ghent
@sehe oh come on I would have done it for you
@user7236293 lol. Good thing I was firsrt
12:17
0
Q: No Overloaded operator= showing in algorithm.cpp

Joseph KI am working with set_union (included in algorithm.cpp) and sets in the STL library. My sets hold objects of a custom class Vertex in which I have overloaded the operator= Here is the Vertex class: class Vertex { public: City city; bool wasVisited; Vertex() {}; Vertex(City c) {...

dat assignment operator
> belgium
that explains it!
ah yes markdown is broken for multiline quotes
Not another Belgium outbreak? I thought it had been eradicated:(
user3010322
You can't kill the Belgium. The Belgium will live on.
@ThePhD I thought there were only a couple of repositories, in high-level biohazard labs?
user3010322
If I do @Robot, will R.MartinhoFernandes get the ping?
12:21
@ThePhD no but @R.M does
user3010322
Ah. @R.Mar sounds cooler, though. :D
user3010322
Arrr Marr~
user3010322
Like some pirate or something.
Piratinho
oh god
not the whole Belgium thing again.
12:27
@ScottW not again please
room topic changed to Lounge<C++>: I thought we'd moved past the Battle of Belgium [c++] [c++11] [c++1y] [no-answers] [no-questions]
user3010322
<_>
user3010322
MSVC is confusing the hell out of me...
I find it hard to believe you can confuse the hell out of a demon.
he's a phantom you mutt
12:31
woof woof cocksucker
user3010322
I guess I'm just not allowed to use this type. shrug.
@ScottW Baby, I love you <3
@ThePhD so, what are you up to?
user3010322
@melak47 Working on a lua wrapper, since my engine is in a semi-stable state right now.
seems like everybody and his fucking dog is working on a Lua wrapper.
12:35
what's wrong with bartek's wrapper? :)
he's helping with mine :v
user3010322
No clue. I'm just contributing.
@melak47 it's incomplete and boost dependency (I didn't want that)
@melak47 bartek's wrappers are too easy to slip on :)
cue @Cat oh no ~dependencies~
12:36
@DeadMG Please post Daisy's Lua wrapper.
yeah yeah
dependencies can be a hassle.
Cool, WCF seems to be substituting url-encoded characters with unaccented ones? I don't know what the fuck
poor cat
having to deal with computers
@CatPlusPlus what is this KSP mod you're making?
12:38
> query:?ptrn=%C4%85%C5%9B%C4%87
> GetCombinedSearch: pattern = asc
I don't even know how to search for this
@ScottW No. I haven't had the time yet
@melak47 I've integrated Fusebox into MechJeb
Maybe I'll do more stuff WHO KNOWS
@ScottW :)
Seriously, how does this happen
And why
Everyone's incompetent fuck
Because I'm maintaining this shit
Besides it worked pretty okay?
Well, WCF, not the crap project I'm maintaining
@CatPlusPlus Eww.. welcome to my whole world, (though mine has C in it as well).
12:44
This project will never end, and will never be good
Ahahaha the value in HttpContext is wrong too
Yeah let's parse RawUrl manually, why not
The big fucking framework can't do it properly
It's like I'm back in PHP world
Oh cat
how do you end up with crappy projects like that?
@ScottW good.
lol
It gives the following error in xcode: Cannot initialize a variable of type 'unsigned char *' with an rvalue of type 'void *'
yea different types
@John yep, cause you can't do that in C++. You should cast.
12:51
Cast it to what? I don't know c++.
@DeadMG I had esimated you higher than to go with appearances. I don't assume you're writing snake in Wide, do I :)
oh never mind guys, I'm sure we'd love questiondumper to come back.
user1804599
@John to unsigned char*. :V
@John Just search. [c++-faq] malloc
Xeo
Xeo
@John Then learn it.
12:51
That breaks down the code later.
@sehe True enough.
user1804599
@sehe FREE THE MALLOCS
Ugh Malloc
user1804599
std::vector<unsigned char> data(dataSize); // there, converted unsigned char *data = malloc(dataSize); from C to C++
Imagine you named your kid Malloc
Hi Malloc, I haven't allocated food for you today, want to allocate some?
12:53
room topic changed to Lounge<C++>: Not this again. [c++] [c++11] [c++1y] [no-answers] [no-questions]
Little Bobby Malloc?
@user7236293 Hi.
Thanks.
Xeo
Xeo
@ScottW ...
Well, maybe that's what he needs as a lesson.
@ScottW hey, why are you up?!
@Rapptz Why are you up?
Just now baby
@Rapptz Don't you live in the same state as him?
@TonyTheLion got a DeadMG situation
you love the Lounge too much
@Rapptz oh
12:59
@Rapptz Sick?
yeah my stomach hurts too much to go to bed
@ScottW Sexy isn't it? :) <3
oh baby
I'm thinking of calling in sick to work.
I need to come alleviate your suffering
@ScottW That's... morning.
user1804599
13:00
knitpickers.com
you weaklings
11 weeks till my next medical appointment.
is what I did UB? I don't like tackling with void* accepting dumb C APIs :(
11 fucking weeks.
didn't you go to doctor this morning?
yep
Xeo
Xeo
13:01
@Rapptz Accessing a value through the wrong type is UB, IIRC
@ScottW Give or take.
well I have a static_assert if the sizes of the void* and function pointers aren't the same
but meh, UB ._.
user1804599
@Rapptz Wrap the function pointer in a struct and pass a pointer to that.
@Rapptz Why don't you just cast directly?
13:03
@R.MartinhoFernandes you can't
Yes, you can.
 error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror]
     g((void*)f);
@R.MartinhoFernandes You sound like Obama
> RawUrl = asc
This is from HttpUtility.ParseQueryString
I don't know what the fuck
@Rapptz Ugh, GCC is wrong :S
It's not forbidden.
It's conditionally-supported.
Kinda silly that GCC supports it "as an extension" and disables it when you enable conforming mode.
13:05
I don't like warnings at all so it's not an option :s
I did find this
5
A: ISO C++ forbids casting between pointer-to-function and pointer-to-object

K-balloDon't cast pointer-to-function to pointer-to-object, they are not guaranteed to have the same size. You will be able to work around this issue by using a void(*)() function pointer instead. C99 [6.2.5/27]: A pointer to void shall have the same representation and alignment requirements as a p...

Oh I know what it is
It's log4net being utterly retarded shit
I'm so glad I can rely on logs to tell me what's wrong!
@CatPlusPlus ah the balance is restored :)
I really need to figure out how to attach debugger to remote IIS worker
Still love Boost
0
A: Reordering the members of a vector based on a set pattern

seheWith a little help from my friends @Boost: typedef std::vector<int> V; V const v { 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16 }; auto rearranged = copy_range<V>(join( v | strided(2), v | sliced(1, v.size()) | strided(2))); See it Live At Coliru #include <boost/range...

user1804599
13:16
Maybe it's the Rails app being bad at encoding the indexed entries
Who knows! So many failure points! So much fun!
user3010322
@R.MartinhoFernandes GIVE It TO ME ;~;
Xeo
Xeo
@R.MartinhoFernandes nom
user3010322
Oh gawd.
@R.MartinhoFernandes finally, someone else that calls it mortadella.
user3010322
13:20
Fucking polymorphic lambdaaaaaas!
user3010322
q____q throw ALL the wrenches in my plan.
Xeo
Xeo
@Rapptz lolz, IRTA "mozzarella" for some reason
Are you working on some kind of "function_traits"?
@Rapptz Everyone does in Portugal.
and in most of South America I'm betting
13:21
but here in America they call it bologna (same name for the pork slices) from what I've seen
@R.MartinhoFernandes WANT. NOW! HUNGRY!
@Xeo Isn't he always?
man.
how will I shut gcc about this void* garbage
Xeo
Xeo
@Rapptz That's total bologna.
user3010322
@Xeo It's necessary, I tell you! /cc @R.MartinhoFernandes
Xeo
Xeo
13:23
(In German it's also "Mortadella")
user3010322
Seriiously! I'm binding to lua right now, I need it.
Yeah, yeah, blah blah.
user3010322
:c
user3010322
Well, how would you do it?
13:24
"I'm trying to support polymorphic lambdas" is wrong no matter how you paint it.
Polymorphic lambdas are easier to support.
user3010322
... Wat. <_>
your eyes have been messed up all day.
user3010322
Because my brain is int a state of mush.
I can't disable warnings enabled by default :(
user3010322
Blergh. It looks like I'll need to just use std::function and forget about all my troubles....
13:26
@MartinJames I just had lunch, but then I saw my friends planning to eat francesinhas together sometime around Christmas and now I'm hungry again.
user3010322
.... Though, I'm insanely curious. How does std::function know what operator() to pick up on a class with 2 overloaded operator() ?
user3010322
What!
user3010322
It's a legitimate question.
My mouse cursor will move in any direction except down. It's now stuck at the top of the screen and I can only move it left/right. How weird is that? Reboot time..
13:26
You're still thinking in terms of this function_traits nonsense.
user3010322
For Lua, I have to extract the argument types and manually pop them from the lua stack. I have the machinery to do that, now I just need to get the argument and result types so I can pass them back and forth between Lua and elsewhere.
user3010322
I don't know how else I can think about it. =/
Yes, and you're still thinking of the hammer instead of looking at the screw and seeing what kind of screwdriver it needs.
@R.MartinhoFernandes Not if you're trying to bind them to a scripting language.
since you can only bind instantiations, not templates.
13:29
@DeadMG Still.
@R.MartinhoFernandes Still what?
There's only one proper way to support polymorphic callables in that context, and it's easier.
the fact is, a function_traits thing is going to be the pretty much only way to go
well, or just have the user pass the signature.
@TonyTheLion "This thing can't land on somebody's head while they're walking around their neighborhood." - spot the non-software guy.
user3010322
Quick question: I can't reach inside of a lambda (e.g., a struct with a operator()) and get it to tell me what arguments it takes, can I (nevermind overloading)?
Xeo
Xeo
13:32
No
user3010322
Well. <_>
&T::operator() is the best you can do.
it's not very good though.
@MartinJames lol
user3010322
Then I'll have to get the arguments are runtime, and throw if they're not correct?
my coworker pointed out a possible problem with Amazon Air:
> what about delivering a package to kids? they could get too close to the copter and get decaptiated?
user1804599
13:34
You’re trying to solve the problem the wrong way.
user1804599
You need to do it the other way around.
you know drones are tiny right?
user3010322
I'm trying to do it at compile time. I get a single type TFx&& tfx, and I have to figure out "what do I call you with?"
also, I would be more worried that they get kidnapped by thieves ... maybe they are fitted with self destructive devices?
user1804599
You can’t do that because templates and overloading.
user1804599
13:36
As I said, do it the other way around.
user3010322
We're assuming that we're not handling polymorphic lambdas or overloads.
Then what's your problem?
user3010322
E.g., things like lambdas, where there is only one function.
(Also, lol, "only one function", MSVC)
user3010322
@R.MartinhoFernandes Given template <typename TFx> work_it_out( TFx&& fx ) {}, figure out the parameters of fx as a callable.
user1804599
13:37
You’re probably trying to make your API restrictive in this regard, but you can’t do that.
Ask @melak about his trouble with "monomorphic" lambdas with overloaded operator().
Xeo
Xeo
@ThePhD No
user3010322
I can switch up on const versus non-const.
user1804599
The same way you wouldn’t be able to get value_type of arbitrary iterators if iterators didn’t have a ::value_type member.
@ThePhD Not if you don't know the argument types.
13:38
@TonyTheLion Get a better leash
user3010322
True. >_<
There's no way around it if the function is overloaded.
@CatPlusPlus Oh you're one of those people
And MSVC fucks you up vOv.
Xeo
Xeo
8 mins ago, by DeadMG
well, or just have the user pass the signature.
~
user3010322
13:39
Guess I'll just demand everyone give me the arguments in the template parameters.
Solr doesn't work and I have no idea how it works and I'm supposed to fix it ahaha ah hahah
aaaa
user3010322
But somehow... Lundi did it.
Fuck it, if this try doesn't work then I give up
user3010322
Ah well.
I am looking forward to the days when I can deliver my sexy female droids to you on drones - when you order it on my future website www.realhotdroids.com
user3010322
13:39
I'll pick Bartek's brain later.
Xeo
Xeo
@ThePhD Lundi has argument-type deduction for polymorphic lambdas?
user3010322
@Xeo Not polymorphic, regular ones.
Xeo
Xeo
sigh
user3010322
> lua.register_function("foo", [](bool x, double y, std::string const& z) { /* stuff */ });
user1804599
Try all possible combinations and pick the ones that succeed!
Xeo
Xeo
13:40
@ThePhD Yes, they do the same shit with function_traits IIRC
user3010322
But how ?
WTF?
I thought you had done this thing a thousand times by now
Why is everyone so concerned with specifying bindings manually
Just make the types explicit and generate this shit
@R.MartinhoFernandes lol
Or better use clang-reflect or whatever
user3010322
13:42
@R.MartinhoFernandes Not... ... not really? :c
user1804599
@ThePhD you can cast that lambda to a function pointer and use partial specialisations to find out the data types. :F
user3010322
I'm sorry, I don't remember... :c
@rightfold Gosh, that's even worse.
Xeo
Xeo
@rightfold And that fails for stateful objects and non-lambdas.
user1804599
> that lambda
13:42
@CatPlusPlus Wat
user1804599
Datman
user3010322
So wait
user3010322
Lundi only supports stateless lambdas, then..
user3010322
Or maybe they support more?
13:43
Erm, no.
user3010322
Arrrgh.
what we really need
I wonder why the U.S. army has not massively produced drones as weapons - why send people to fight? send 100,000 drones fitted with weapons! It would probably be cheaper too :x
is to reimplement the Lua VM.
@CatPlusPlus People don't like generated code, it seems vOv
13:44
People are dumb
You can get much better type safety.
robot, I don't even know what solution you're trying to advocate here.
I'm not advocating anything so far.
Parenting lessons from @sehe - Bed time
6
hmm
so what you're really saying is, "Your solution is terrible and you should feel bad, but I don't have an alternative, but you suck anyway"?
13:45
@Telkitty Probably because those little things are trivially easy to shoot down.
@thecoshman This must be about the fifth time I see this gif in this room...
user1804599
And it’s still awwwwwww.
but 100,000 high speed camouflage ones?
@R.MartinhoFernandes problem?
13:47
sending drones as decoys, then send people to attack!
It can make the wars even better: each drone fitted with 100 tranquilizers! Capture your enemy then use them as cheap labours!
@Telkitty Then there's command and control, written by devs like me. The swarm is likely to turn around and nuke Chicago.
@DeadMG I know he's done it before for monomorphic stuff. The same solution for polymorphic stuff (which he was wondering about before he said 'forget about those') is bad because it can't possibly work.
ah, I didn't realize he was trying it for polymorphic stuff.
..though if it destroyed O'Hare, I don't suppose may would mind:)
that can definitely never work.
13:52
Mar 28 at 17:13, by ThePhD
@sehe See function_traits (Essentially boiled down from what we did before with Callback)
user3010322
I got function_traits working by cheating my ass off.
Erm, I don't see where.
user3010322
In the end, for anything callable, I'm just using decltype( &TFx::operator() )
user3010322
This won't work with anything more than a stick through, but at least it'll cover the basic cases...
Like... a function?
user3010322
13:54
I'll add the ability to explicitly select your overload, so you're not flailing in the dark when doing bindings.
@ThePhD I still don't get what else you want, then.
user3010322
@R.MartinhoFernandes I wanted to be able to (magically) determine which overload a person wanted.
Based on what
Wishful thinking?
user3010322
Yes. Wishful thinking and the ignorant bliss of my stupidity. =/
> In the face of ambiguity, refuse the temptation to guess.
13:56
@R.MartinhoFernandes Needs a few fixes and more c++filt /cc @ThePhD coliru.stacked-crooked.com/a/7e330441e5e0a871
@ThePhD Just think about it. State your problem. Come up with sample inputs and expected outputs.
TDD / BDD
(Not for me; for yourself)
@MartinJames what do you think of the idea of buying a drone to stalk the magpies?
That's what you should have done before and you would have easily come to the conclusion that you can't read people's minds.
13:57
@Telkitty inb4: magpies flee
@R.MartinhoFernandes You can. Just not with C++ TMP :)
user3010322
@R.MartinhoFernandes Yeah.. I know now...
Oh 'stalk'.. I read it as 'shred'.
user3010322
I wish the syntax for packaging overloads didn't have to get so messy.
@ThePhD That's something I suggested to them when they were working in Lundi, but they decided not to give you that choice. vOv
@ThePhD What syntax?
Generate this shit, and syntax doesn't matter
13:58
@sehe but my drone can chase it? ... imagining ... my drone flying after a magpie, that's would be so awesome!
good luck with that
user3010322
@CatPlusPlus I can't write a generator for every single lua type and structs I don't know about, and C++ doesn't come with its own codegen.
Anyway, shopping again. Maybe try to find a cafe that does something like those Bologna things that robot was posting about.

« first day (1143 days earlier)      last day (4031 days later) »