« first day (609 days earlier)      last day (4342 days later) » 

9:00 PM
:P
 
@awoodland I just couldn't leave the out-of-context quote, for obvious reasons
 
@RMartinhoFernandes no, LucDanton helped out
 
@Ell syntactically or semantically? I can answer for one of these cases
 
Ell
@Cicada syntactically
 
SEMANTICALLY, of coursE!!
 
9:00 PM
@StackedCrooked oh a starworthy comment about me :P
 
Ell
as in - can I just replace them? and get no compile errors (apart from assignment, which could be replaced by .reset())
 
@Ell Then I'm of no use, I'm afraid. Sorry.
 
@TonyTheLion Admit that you're feeling honored!
 
Ell
ahh kk, ty anyway
 
@TonyTheLion Cool.
 
9:01 PM
@StackedCrooked I'm not admitting jack shit
 
@TonyTheLion What, that too!?
 
I wouldn't want to become da pimp in this house yet
 
@TonyTheLion Oh thanks, I nearly missed the oppty
 
@sehe how would you translate "informatica op HBO-niveau" to English?
 
@sehe lol
 
9:02 PM
CS?
 
@RadekSlupik HBO?
 
@TonyTheLion Well, you can do that. Everyone knows he did
 
@ScarletAmaranth I'm a what? Also, btw, the last letter on my name is an "s".
 
@TonyTheLion hoger beroepsonderwijs.
 
@TonyTheLion Home Box Entertainment.
 
9:03 PM
@RadekSlupik College level Informatics/CS
 
@RadekSlupik ah, that's college equivalant I think
 
Oh ok.
Thanks.
 
@RMartinhoFernandes lol
 
@RMartinhoFernandes I dunno, what did I call you again :P ?
 
@RMartinhoFernandes And he searchez for his own name :)
Hi
@ScarletAmaranth Follow the link. Maniac :)
 
9:04 PM
@RMartinhoFernandes Oh, you're a MAD ROBOT! :) But you knew that already, didn't you :P
 
a template maniac or something
 
Ell
agh just accidentally did #require I'm getting tired :O
 
but he's a robot
 
@sehe That gray arrow is sneakier than it should be :P
 
he's metaprogrammed to act that way
 
9:05 PM
@Ell you accidentally what
kill it, kill it with fire!
 
@ScarletAmaranth But you know it's there, hiding
 
Ell
whats the -> operator called? indirection?
 
Member access.
 
pointer dereference
 
@RMartinhoFernandes so have you actually read The C++ Standard entirely? or is that only litb
 
9:06 PM
or just John, really
 
lol
John? Why?
 
@Ell Structure dereference
 
Do you have anything against John? I'm flagging that (no I'm not)
 
This is a list of operators in the C and C++ programming languages. All the operators listed exist in C++; the fourth column "Included in C", dictates whether an operator is also present in C. Note that C does not support operator overloading. When not overloaded, for the operators &&, ||, and , (the comma operator), there is a sequence point after the evaluation of the first operand. C++ also contains the type conversion operators const_cast, static_cast, dynamic_cast, and reinterpret_cast which are not listed in the table for brevity. The formatting of these operators means that their p...
 
@sehe It's lurking in the shadows, lookin' all sneaky and shit.
 
9:07 PM
don't flag shit
 
@ManofOneWay We have always beat them in the past years. And they're not playing very well this year. I'm confident.
 
@TonyTheLion Jack shit a flag ship shit. Admit it
 
-> is just "member access". Just like .. No, there's no different name.
 
Doesn't make any sense for raw pointers
 
who needs raw pointers?
 
9:08 PM
@RMartinhoFernandes Yeah. Too bad you're not in the selection
 
Ell
if I have std::unique_ptr<TypeA> and i want to be able to do .reset(new TypeB), how can I do that? I mean, if i make a static cast operator will it work?
 
@sehe wut. I suck at football.
 
My point is, your confidence doesn't really help
 
@Ell What's the relation between TypeA and TypeB?
 
Lexicographically?
 
9:09 PM
They are both types.
 
Ell
@RMartinhoFernandes TypeA is composed of TypeB, but no other relation
 
@sehe Tease, tease
 
@Cicada Strip, strip!
 
You wish
 
Ell
actually, can I provide a custom deleter for an std::unique_ptr? trivially? Which calls something before it destructs
 
9:10 PM
@Ell Then you can't do that. Sounds like you're solving the wrong problem.
 
Ell
@RMartinhoFernandes I was just trying to make it look nicer, i can just go TypeA(new TypeB) or whatever. But I might have approached it on the wrong angle
 
@Cicada Huh. What did I say? :)
@Ell perfect forwarding to the rescue
 
Ell
@sehe that's what I was thinking :D
 
@Ell So... what is the q? How to write that?
 
The more I hear about C++, the less I want to actually learn that "language"
So what is perfect forwarding?
 
9:13 PM
Good
 
Sounds like baseball or something
 
@Cicada It's imperfect.
 
When you see Buddha in the middle of the road...
Kill him
 
Ell
@sehe it's alright I don't think I need to go to such drastic measures. Basically I want something in an std::unique_ptr<> but it's dtor is private, instead you are supposed to call Dispose(pointer_to_obj) so I want an std::unique_ptr<> that will not call delete, but instead this Dispose thing.
 
std::unique_ptr<T, void(*)(T*)> ptr(new T, &Dispose), assuming Dispose is a function.
 
Ell
9:15 PM
I knew it had to be something like that
 
struct A {
      A(int,double,char) { }
      A(std::string) { }
};

struct B {
     std::unique_ptr<A> _a;
     template<typename... A>
         /*explicit*/ B(A... args) : _a(std::forward<A>(args)...) { }
};
@Ell I will have made a mistake ^ but I reckon the gist of it is there
 
Ell
@RMartinhoFernandes static assertion failed: "constructed with null function pointer deleter" :( what is the void(*) part?
 
@Ell A function pointer. You can pass it a stateless lambda too.
 
void(*)(T*) is a pointer to a function that takes a T* and returns nothing.
 
Ell
hmm so why isn't it working....
constructed with null function pointer deleter?
 
9:18 PM
Because you didn't pass the function pointer on initialization (the , &Dispose) part)?
 
Ell
I did o.O
 
Hmm. Code?
 
Ell
`mInputManager.reset(OIS::InputManager::createInputSystem(parameter_list), &OIS::InputManager::destroyInputSystem);`

<- that is the setting of the pointer, the declaration is (gimme a sec)
`std::unique_ptr<OIS::InputManager, void(*)(OIS::InputManager*)> mInputManager;`

Declaration of destroyInputSystem is...
static void destroyInputSystem(InputManager* manager)
 
Hm. I think it's the initialization.
Checking.
Yep. Can't use the default constructor with a pointer type for the deleter.
Alternatives: explicitly provide the deleter upon initialization: unique_ptr<...> ptr(nullptr, &fun)
 
Ell
right kk
 
9:25 PM
struct InputSystemDestroyer {
    void operator()(InputManager* manager) { OIS::InputManager::destroyInputSystem(manager); }
};
std::unique_ptr<T, InputSystemDestroyer> p;
This works too.
 
Ell
Thank ye :) I have just done the (nullptr, &fun) thing and it compiles fine
I don't see the reason of having a destroyInputSystem. isn't that what a dtor is for?
 
Yes, a destructor is preferable.
 
Ell
who linked me to this "genesis" guy who is now gone?
 
> If the smart thing to do doesn’t scale, maybe we shouldn’t scale.
 
Ell
hmmm. Another destructor is protected, but I don't know what do this time o.O
got it. just have no idea of how function pointer syntax works :L
 
9:37 PM
Can you use alias templates?
(I.e., clang 3 or GCC 4.7?)
 
Ell
errrm one sec
I have gcc v 4.6.1
i could do it in the morning I suppose
2
 
defining a struct to represent information about a compile target
 
Ell
how would alias templates help?
 
so far I've got CPU type, OS type, endianness, and word size
 
With template <typename T> using alias = T; you can write something like alias<Return(Args...)>*. No confusing (*) in the middle.
 
9:38 PM
anything else I need to include, mewonders?
 
Damn it feels good to have working code
 
Ell
architecture? or is that cpu type?
 
cpu type
 
Ell
is void(*)(CEGUI::OgreRenderer&) right for static void destroy(CEGUI::OgreRenderer& renderer) ?
 
9:41 PM
std::function<void(CEGUI::OgreRenderer&)>?
 
Ell
@DeadMG that works?
 
@Ell Of course.
 
Ell
apparently not for me... template argument 2 is invalid
 
@Pubby Hey (echo) partner, Y U NO ECHO anymore :)
 
Ell
i've included <functional>
 
9:43 PM
did you remember to include the correct -std flag if you're on those crappy GNU compilers?
 
#include <dysfunctional>
#include <family>
 
and using a recent enough version?
 
@sehe I am trying to figure out how to automate my ECHOing
 
Tomorrow is father's day, anyway ^
 
9:43 PM
Mine uses C++11 by default :P
 
Ell
@DeadMG I'm on 4.6.1 and I have c++0x enabled, if thats what flag you mean?
 
@Pubby Oooh. Splendid. Good call. Fixing Edit Fixed
 
@Ell indeed tis
 
Ell
doesn't compile o.O
 
well, if you don't show me your code, I can't psychic it
 
user457812
9:46 PM
But the codes are top secret
 
As long as the red button is hidden, the codes are safe
 
Ell
right okay, now I get error: invalid initialization of reference of type ‘CEGUI::OgreRenderer&’ from expression of type ‘std::unique_ptr<CEGUI::OgreRenderer, void (*)(CEGUI::OgreRenderer&)>::pointer {aka CEGUI::OgreRenderer*}’
so basically I'm trying to get a OgreRenderer* from a &, right?
 
user457812
The code, Ell, where is the code?
 
Ell
right, I will upload it :L
 
user457812
Give us the codes, all of them, release them onto our faces, a flurry of curly braces and strings dripping down our chins
 
Ell
9:49 PM
I am embarrased about my code quality! but I will show you anyway
 
@Ell Yes, basically.
 
user457812
I am embarrassed about what I just wrote so shut up
 
Ell
I guess I can't get better if I'm not critisized
 
you have defined a destructor which takes a T& but the unique_ptr holds, unsurprisingly, a T*.
 
Ell
@DeadMG oh yes - I will have to write a functor or lambda or something?
 
9:52 PM
no, it needs to be talked about with you
else it won't resolve
 
@nil You should be
 
user457812
I'm also embarrassed that I wrote a string scoring function that's a dick joke. In python. So it's like a dick joke in a dick joke.
 
user457812
We've got an IRC channel? O_o
 

 Kyrostat

Inactive room, go away.
 
Ell
@nil not us
 
user457812
9:55 PM
Ah, darn.
 
no reason you can't setup an IRC channel
no one is gonna stop you
 
user457812
No point to doing that, though
 
The point is: ·
 
@RMartinhoFernandes Good one :P
 
user457812
Nice try, but that's clearly a dot, not a point.
 
Ell
9:56 PM
agh what is functor syntax for function pointer thingy
ughh i need to get this done by 11! just compile for god's sake!
 
Dam. This room is still a SOAP opera due to this Kyrostat business. There's a room for that, guys
 
Upset with Tony the Pony ? Ne'er.
 
Hehe. That cleared up. Sadly, i'm no room owner so I can't bin my own echoes. Sorry guys
 
9:59 PM
lol
 
Ell
cmonnn got 1 minute to commit!
 
@Ell ... you broke our lol chain, are you HAPPY NOW?! :P
 
start again
lol
 
Ell
lol
 
10:00 PM
rofl
 
Dis robot :D
 
combo breaker...
damn you
 
Ell
you know what I don't care because I just committed in time
 
Ell
and I will speak to you all later :) good night
until next time
 
10:01 PM
@Ell Good luck
 
@Ell Have fun.
 
@thecoshman Me too
 
I like cake :D
 
When I"m a father :)
 
@TonyTheLion Happy father's day?
 
10:04 PM
lol
you on mumble?
 
Kinda. Passively
 
user457812
That lion is totally sticking its tongue out at the cub
 
I wonder how multiplexers work
 
What kind of multiplexers?
 
10:15 PM
digital
the only implementation I can come up with would require like O(2mn) gates, where m is the number of inputs and n is the selector size
although I guess that's misleading, since n = log(m)
but that's still kinda a lot of gates
 
does MSVC support boost::variant?
 
@thecoshman Srsly?
 
10:33 PM
@DeadMG why the 2?
 
@thecoshman Yes.
 
@KillianDS NOT and AND for the inputs which should be low for the gate to be selected.
consider like, a 4bit selector
the output is like, A && !(input1) && !(input2)
that way, if input1 and input2 are 0, the output is A.
then you have like, B && (!input1) && input2
then just OR the lot of them together when you get to the end
 
Ah, okay, you're immediately starting from AND/OR gates :), I thought you were specifying the abstracted component's number of input/output gates.
 
nah
was just trying to figure out how they work on the logic gate level
 
I guess you'd use diodes actually instead of and/or logic
 
10:39 PM
well, you can replace with an equivalent implementation if you like
 
11:04 PM
TIL: Python pwnz.
 
it's the only language I know with an actual antigravity module
 
it's the only language I know with Django
 
oh, that too
 
Ell
Hi guys
 
quack @Ell
 
11:08 PM
hey ell
 
Ell
How are you all? Just watched the end of shawshank redemption, such an amazing film imho
 
as good as a duck could be
 
I'm better.
 
Ell
Better than before or better than a duck?
 
Both.
 
Ell
11:12 PM
Well that's good to hear
What's everyone up to over sunmer?
 
sunmer?
 
Ell
*summer
 

 Kyrostat

Inactive room, go away.
night all
 
I hate summer.
Winter ftw.
 
What.
 
11:15 PM
lol
 
@CatPlusPlus (your voice is missing on mumble :))
 
Ell
@sehe night
 
@CatPlusPlus well, winter > summer.
 
Nope.
 
Yep.
 
11:20 PM
Naw.
 
winter is cold :(
 
Summer is boring. Winter has new year, christmas, my birthday, Sinterklaas…
Summer has nothing.
 
Nothing including no uni, which is wonderful.
 
Cold > Hot: When it's cold, there's almost no limit to how much you can put on. But when it's hot, you have only a finite number of things to take off before you end up in jail. (in most jurisdictions)
 
@CatPlusPlus You're not forced to go there when it's not summer either.
 
11:23 PM
Christmas break is 1 week long, 2 tops.
Summer break is 4 months.
 
Ell
Either jail or internal organs just fall out of your body cavity
 
When I go to the Sahara, I take a car door with me so I can open the window if it's getting hot.
 
Ell
Do the stereo typical British all have bad teeth?
 
@Mysticial In Summer, I'm completely home alone (flatmates are away in school vacation), so I just walk around the house naked.
 
So you don't do that when it's not summer?
Why do robots wear cloths?
They have nothing to hide.
 
11:29 PM
so they fit in. because robots are our friends.
 
Or enemies…
 
lolz :P
 
tits, I'm cold
 
Hmm. Tits and cold.
 
11:44 PM
Sounds a bit like the Dutch "tis koud".
 
Cold can have some good effects on tits :P
 
Like make them disappear?
Oh, no that's not good.
 
Tits are sucked.
 
Well, babies suck tits.
I know somebody who drank human milk a few years ago and she found that it had a disgusting taste.
 
11:55 PM
all I can say to that is, poor baby.
 
May be the tit had expired.
 
@endoalir she wasn't a baby then.
She was 11.
 
hey, tastes can change in 10 years
 
I like bison cheese.
 
Is it better than unison cheese?
 

« first day (609 days earlier)      last day (4342 days later) »