« first day (442 days earlier)      last day (4491 days later) » 

11:00 PM
I thought toString should just return a string?
At least that's the convention in Java
and not output it in the console
 
sbi
string Color::toString() const {
  std::stringstream out;
  out << *this;
  return out.str();
}
 
ah okai
 
sbi
Now all the formatting is in one place (the output operator).
 
// It should probably look something like this.
std::ostream & operator <<(std::ostream & output, const Color & color)
{
    return output << "(" << color.alpha() << ", " << color.red() << ", " << color.green() << ", " << color.blue() << ")";
}
 
That works even better as a free function template.
 
11:01 PM
like that, I thought you meant to output it in the toString function
@stack
It's more so that you know what you are reading really
the Alpha is there as well
 
template <typename T>
std::string to_string(T const& value) {
    std::ostringstream os;
    os << value;
    return os.str();
}
 
sbi
@RMartinhoFernandes Yeah, of course. But one step at a time. First he'd need to grasp the concept of turning output and stringifying on its head.
 
return output << ....;
 
@sbi
I actually get what you were saying. Thanks for that.
 
@CatPlusPlus Idd
 
sbi
11:03 PM
@CatPlusPlus What does that buy you? And doesn't this make RVO less likely?
 
What RVO? It's returning a stream reference.
 
What RVO? You're not returning by value.
 
@sbi you are making a not so good point.
 
Does this compile for you?
 
sbi
Indeed. Sorry for that brainfart.
 
11:04 PM
lol
 
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
#include <iostream>

namespace mpi = boost::mpi;

int main(int argc, char* argv[])
{
    mpi::environment env(argc, argv);
    mpi::communicator world;
    std::cout << "I am process " << world.rank() << " of " << world.size()
        << "." << std::endl;
    return 0;
}
 
sbi
@StackedCrooked What?
 
@sbi yes?
 
sbi
@StackedCrooked No.
 
@sbi I see. If that is how you want things to be, then so be it!
 
11:05 PM
Maybe.
 
I get missing file mpi.h, wonder if my boost install is broken
 
@CatPlusPlus misses the important point: it let's you kick yourself in the balls, while you are shooting in your own foot. I mean, the language is harmless like the rope...
 
sbi
Anyway, It's just another way to write the same, and doesn't buy you anything at all. And for longer lines, it might actually hinder readability.
 
No, C++ is not harmless. It twists your brain.
 
I just wrote the second-to-last part, tell that to other people.
 
11:06 PM
@wilhelmtell Maybe.
 
sbi
@StackedCrooked Which things? What are you talking about?
 
@sbi You know what I mean!
 
@RMartinhoFernandes Yup, when I do gitmodules, I do gitbisect on the 'master' repo and yes it will catch regressions/bugs introduced in submodule changes, provided you commit them separately.
 
Ell
why doesnt everyone just use auto for type inferrence?
 
@sbi I think now he's trolling you back.
 
sbi
11:07 PM
@StackedCrooked I must have lost the plot.
@RMartinhoFernandes Who is trolling whom?
 
There was no plot. What a twist!
 
@Ell 1) Because it's still a new thing, 2) because sometimes it's important to write the type.
 
@Ell my msvc2008 don't support auto
 
C++ kicks people in the balls.
 
@sbi What!? Now you also lost the plot!? I'm starting to lose all hope I once had in you.
 
11:07 PM
With a shovel
 
To be entirely fair, bug bisecting is very rarely useful to me. It is only useful when trying to establish the origin of a bug that was discovered very late (e.g. in v 6.9.0 of zfs-fuse, when the bug turns out to exist from around 0.5.0 :)
 
How can you kick something with a shovel?
 
Ell
I dont understand why it is so new though - havent many languages supported it many many years ago?
 
@Sidar I like shovels.
 
I bet you do...you C++ scumbag
=P
 
11:08 PM
@Ell What are you talking about?
 
sbi
@StackedCrooked Why "also"? Have I lost something else? Or has someone else lost the plot, too?
 
@Ell Because it's C++.
 
Everyone: stop typing. I'm still catching up reading this chat and I've been at it for about 1 hour now
 
@RMartinhoFernandes you can use auto t = (T)foo(); if you need to write type
 
Ell
11:08 PM
@StackedCrooked type inferrence (auto)
 
@Ell Yeah autos have been around for a while.
 
@sehe Right, and it works the same svn:externals. That's my point. They probably missed the bug among the other changes (i.e. committed external updates with other changes).
 
Ell
how do I overload a->b this operator?
 
@Abyx Yeah, but that's a lot uglier (and bug-prone) than T t = foo();.
 
@sehe
It's okai...you have till may 2012
 
11:10 PM
@Ell "a->b this operator" ?
 
-> ? isn't that like the dot ?
 
@RMartinhoFernandes no, it's consistent with other autos
 
Ell
->
 
@Sidar No a dot is like this: '.'. (Dot, not a dog, even if it looks like one.)
 
Ell
^^that operator
 
11:11 PM
@Ell It's new in C++.
 
@stackedCrooked....I know that
 
Ell
@stackedcrooked a->b
 
I haven't seen operator that^^ anywhere.
 
I mnean to say one is meant for pointers and the other for non pointers
 
Ell
sorry the chat is confusing me
 
11:11 PM
T* operator->()
 
@Ell Well, you use operator-> for that.
 
some_type_that_has_an_arrow_operator_which_means_it_can_be_a_pointer operator->()
 
@Sidar I see you are making progress!
 
Ell
people somehow go back in time and a message appears before mine - after mine has been sent o.O
 
...Actually that was pretty basic LOL
 
11:12 PM
 
Ell
but what is a->b supposed to return? o.O
 
@Ell That's because of Einstein.
 
Ell
a reference to a?
 
@Ell some_type_that_has_an_arrow_operator_which_means_it_can_be_a_pointer It's the pointer that you want to delegate to.
 
Ell this place is only to confuse you more. The longer you stay ...more likely you will get the answer to your question I witnessed it
 
Ell
11:12 PM
aaah I see :)
 
@Ell It can return whatever you want it to return. It can return a fire truck if you want.
 
@StackedCrooked But I want it to return int!
 
@RMartinhoFernandes How uninteresting.
 
@Sidar why is that?
 
struct fire_truck { wheel wheels[8]; };
 
11:14 PM
@RMartinhoFernandes At least return a bike or something.
 
Ell
wait... I cant overload .?
 
Aliens.
 
Ell
nooooooooooooooo
 
@Ell No.
 
@Ell Yeah, you just keep loading until it overloads.
 
Ell
11:14 PM
now it will never behave like a value!
 
Overloading . would be too awkward.
@Ell The key to behaving like a value are the copiers and destructors.
 
@Ell Behaving like a value?
@RMartinhoFernandes Overloading the butt-hole? That's taboo you know.
 
pointer is value
 
@StackedCrooked Gosh, what?
 
Ell
@stackedcrooked basically a nullable value (not reference/pointer)
 
11:16 PM
Btw, shouldn't you be adding null checks?
Also Boost.Optional.
 
great. Now I reached the end and everything is starting to crack up. This chat no longer makes any sense :)
 
@sehe why is what
 
@sehe You're a bit late to that conclusion :)
 
6 mins ago, by Sidar
@sehe
It's okai...you have till may 2012
 
@sehe What do you mean?
 
Ell
11:17 PM
@RMartinhoFernandes yeah I will, I'm just writing the skeleton so I don't forget any operators first. And this is an educational excersize more than anything
 
@sehe You mean it did?
 
1 min ago, by StackedCrooked
@RMartinhoFernandes Overloading the butt-hole? That's taboo you know.
among others
 
@sehe Well, that's just common sense.
 
@sehe Some ancient folk decided to not continue their calendar, so now we intelligent people concluded that the world will end.
12 May 2012 I think
 
They ran out of space on the rock.
 
11:18 PM
Yeah
Memory and such
If only they had A++
 
Yeah, and the governments are not building giant ships on the Himalayas. :(
 
Bastards.
 
Who the fuck came up with that idea?
 
Q.E.D.
 
Lets hack those bastards...more like crack
LOL @ sehe
 
11:19 PM
@CatPlusPlus that the calendar the Feynman lectured about?
I think it is a tad obsolete
 
@ell
Why do you want to overload the -> operator?
Wait...am I saying that correctly?
 
@Sidar Why wouldn't you?
 
Ell
@Sidar nevermind I've given up on that now
 
No I'm interested in where your idea came from
 
@Sidar because he can :) It's C++ and you're supposed to shoot -> foot
 
11:20 PM
@sehe

Aliens
 
Ell
@Sidar because I was trying to get it to behave like a value, so if it contained a pointer type, -> would just delegate that to the pointer it was holding
 
@Ell Btw, if I were you, I'd use a char buffer[sizeof(T)]; member, and placement-new. Or you could make that your next exercise :)
 
Ah interesting. But then you wouldn't be able to access other properties I think
 
Ell
@RMartinhoFernandes char array...? what for :O
 
My brain is full of crack right now
 
11:21 PM
So the memory is local.
 
@Sidar Surely you are kidding?
 
On what?
 
@StackedCrooked: You were afraid that (removed) message was gonna get starred, and it would harm your Careers profile, weren't you?
 
@Ell So you don't need dynamic allocation.
 
1 min ago, by StackedCrooked
I once wrote a C++ program. It didn't work.
 
Ell
11:23 PM
@RMartinhoFernandes ahhh i see :) thankyou - very clever! But I have decided to give up now because i cant overload . -.-
 
@CatPlusPlus What!? I never said that! How dare you!
 
@CatPlusPlus: great! I didn't know you could do that
 
I can do everything.
I just don't feel like it.
 
And you can't!
 
11:24 PM
I can do everything too. And I feel even less like it.
 
Ell
ugh I can never get a good way of writing cross platform code
 
MWwahahahah.
 
@CatPlusPlus Oh noes, the Skrjabin of the C++ chat
 
Stop refreshing my chat, dammit!
 
11:24 PM
@Feeds Too soon.
 
Damn Feeds. I can't kill his messages.
@CatPlusPlus What? Chat refreshes if I do that?
Wow.
 
Yeah.
 
Ell
is it overkill to give getters and setters if a class is POD?
 
@RMartinhoFernandes put him on ignore :)
 
It's always overkill to give getters and setters.
 
11:25 PM
Arggh.
 
First.
 
whole C++ is overkill
 
overkill to 'give' (WTF?) getters and setters (They never give back)
 
@Ell Setters are generally something I avoid.
 
Ell
meh
 
11:25 PM
Factor is awesome, I tell ya.
 
Ell
anyway
 
@CatPlusPlus Settlers however, is a fun game.
 
Ell
its too late now
but Im off to bed anyways - goodnight
 
C++ is so unclear to me I can't grasp the "good" and " wrong " way of doing things
 
Good night.
 
11:26 PM
@Ell Enjoy!
 
I just woke up an hour ago.
 
bb
 
Ell
really? o.O
 
@CatPlusPlus It is. I uninstalled it, though, for being an awesome bloat on my precious SSDs
 
@Sidar That's how it's supposed to be.
 
Ell
11:26 PM
but its 25 past 11 :o
 
@Sidar Well, that's normal :S
 
Ell
anyway
 
@CatPlusPlus Well, ... fine.
 
26 past midnight, actually.
 
@CatPlusPlus you are in GMT+2 or +3 ?
 
11:26 PM
OMG it's late.
 
No it's not. Most answers I google are contradicting as hell
 
It's not late, the day just begun.
 
@RMartinhoFernandes I have to be at work at 9 tomorrow. We have corporal breakfast. (But I don't want to sleep now.)
 
Not for me, it just ended
 
@CatPlusPlus You and your silly timezone crap. It's ~23:30
 
11:27 PM
Hi! Can anyone help me out?
 
@StackedCrooked You're having a corporal for breakfast?
 
I have a urgent question!
 
Ain't that cannibalism?
 
@stackedcrooked

NO
 
I have to go get up early for work tomorrow.
 
11:28 PM
@StackedCrooked: DON'T ask to ask :)
 
But I don't want to go sleeping now.
 
Don't go to sleep
 
What should I do?
 
Shoot yourself.
 
Hybrinate
 
11:28 PM
@RMartinhoFernandes Ha, you mean masturbation?
 
@StackedCrooked just don't go sleep
 
It's a semi-sleep
 
I’ve not been in this room before - does C++ screw people up....?
 
Time to expand on my ignore list.
 
11:29 PM
@Abyx That's what I'm doing already!
 
@Dan Judging from what goes in this room, yes.
 
@StackedCrooked ok, keep doing it until 9 AM
 
jQuery is quite bitchy...
and PHP is usually ok
 
BAN HIM!
 
C++ raped me and burned my family alive
 
11:29 PM
You should not have said that.
 
Shoo.
 
and made me watch
 
@Sidar lmao
 
Im not laughing
 
jQuery is cool
 
11:30 PM
@Sidar That's how you learn.
 
@Sidar: good for you that you died before the nasal demons got you and you forgot to use goto while still had the chance :)
 
@Sidar That means you are serious. I can tell.
 
I tried to switch cases, but for a while...
 
@Sidar Everyone does once in a while.
 
@Sidar You're a detective?
 
11:31 PM
OBJECTION
Im both
 
Both what?
 
I was once raped by a dino
Now I call it stockholm syndrome
 
There's a lot of rape in your past.
 
And that kids, is why drugs are bad for you.
2
 
@Sidar Are you referring to this song?
 
11:32 PM
Well what can I say. You either got it or you don't
LMAO @ song
 
Btw, did I mention before that Alien is a story about interspecies rape?
 
Alien is awesome
Ripley
 
@RMartinhoFernandes No. Pervert.
 
Seems I did.
 
Robotic perv. That's the worst.
 
11:33 PM
Sep 27 '11 at 9:25, by R. Martinho Fernandes
@sbi One of the writers once said it's a story of interspecies rape. Which is wrong.
 
I know this is a dumb question...anyone got IE9 running ATM?
 
Any dutch folks in here?
 
Nope, I’m a Brit :D
 
Damn you Dan
 
@Sidar Ja hoor!
 
11:34 PM
NEEE
NOT YOU
 
@Sidar I like Dutch people.
 
Perfect logic.
 
@Sidar I'm only pretending.
 
Lots of good kitesurfers come from your way.
 
Good, for a second there....yeah
 
11:34 PM
@Dan Sorry, I'm no homo.
 
@StackedCrooked Are you talking about IE?
 
technically you are a Homo. Which means "equal" or " the same".
 
@Dan id est?
@Sidar Interesting.
 
Im a son of god
 
@Sidar Absolutely. Alles kits?
 
11:36 PM
TBH, I’ve been working all god damn day....IE9 seems to be messing with my BF like plugin - I just want someone to check it for me.
 
you called god a bitch
with your boyfriends plugin?
;D
 
@StackedCrooked So you're a robot too?
 
@Sidar Hello Jesus. I never thought I'd met you here !
 
You are forgiven
 
Tjee. Gewoon 3 nederlands(talig)en hiero.
 
11:37 PM
We robots are going to kill all the homos one day.
 
@RMartinhoFernandes Robot? You're funny. Gives pat on shoulder.
 
I think I'm too sober to be here.
 
Sehe ...Stop messing with my mind
ALIENS
 
@CatPlusPlus I feel like that too.
 
HVA studend hier
t
 
11:39 PM
@StackedCrooked Eerst wil hij weten of er Nederlanders zijn, en dan verwijt hij je dat we met z'n kop rotzooien :)
 
@sehe Who are you talking about?
 
OMG, it's gibberish all over again.
 
mijn koop?
 
@Sidar (editing is possible: press up arrow on empty input field?)
 
@CatPlusPlus YES I agree
 
11:39 PM
I know sehe, what I did was quiker ;D
quicker*
AHA!
 
@StackedCrooked You have sidar on ignore then?
 
@RMartinhoFernandes It's scandalous. The gibberish speaking persons should be banned.
 
YES
BAN THEM ALL
 
@sehe Sidar? No, I can see his messages right here.
 
LOL
 
11:40 PM
@Sidar Yeah and is guarnteed to get you on a lot of block lists for absolutely wrecking the chat with garbage thank you very much
 
That's okai.
I'm only human.
 
I don't have anyone on ignore. I'm a tolerant person.
 
@Sidar Too bad. I'm a hybrid.
 
I'm not a cat.
 
That ain't saying much
 
11:41 PM
@StackedCrooked Part man, part cartoon?
 
Well
 
You guys have fun and such
 
Part man, part moon.
 
It's a painting of a pipe
 
11:42 PM
What?
 
@RMartinhoFernandes Part awesome, part super-awesome.
 
Me too. However, I'm worried about @StackedCrooked having a meltdown since he didn't get my reference to this and this message
 
"this is not a pipe"
anyways you guys have a good day, me is going now.
Kthxbye
 
@StackedCrooked So you're not human at all?
Shoot the aberration!
 
@RMartinhoFernandes No, I'm just a really fine gentleman. Just like all of you.
 
11:43 PM
14 mins ago, by StackedCrooked
@RMartinhoFernandes Ha, you mean masturbation?
 
@sehe Was I supposed to "get" something?
 
Very gentlemanly.
 
@RMartinhoFernandes I didn't mean what you think it does.
 
@StackedCrooked: it's unimportant
 
@StackedCrooked What else would it mean?
 
11:45 PM
@RMartinhoFernandes I was talking about masting (The act or process of putting a mast or masts into a vessel; also, the scientific principles which determine the position of masts, and the mechanical methods of placing them.). It's a satisfying form of physical activity!
 
Does the word "masturbation" have a double meaning?
 
It was a typo. Don't be so sexually obsessed!
 
@StackedCrooked You're not a plant.
 
@RMartinhoFernandes I think so too.
 
@StackedCrooked making me very curious about your behaviour when drunk/drugged now
 
11:47 PM
@sehe Are you saying that you are drunk/drugged right now?
@sehe Hm..
 
You can read what I'm saying
 
@sehe You are saying that you are very curious about my behavior while being drunk or drugged.
@sehe Or did I misunderstand?
 
Now you should pay attention when you're walking on the street. If you see a C++ programmer, run! It could be @sehe following you to drug you. God knows what he plans to do afterwards.
 
I'm completely missing the point to your inquiries. You yourself said:
 
@RMartinhoFernandes Cool. Thanks for the warning!
 
11:50 PM
12 mins ago, by StackedCrooked
@CatPlusPlus I feel like that too.
I was responding to that. You can see the responses by the angled arrows...
 
@sehe Yeah, all these drunkards around here. It's getting on my nerves.
 
@StackedCrooked I can see that. The logoff button is there to save you. And see here: ggznederland.nl/index.php?p=115302
 
Optic nerves.
 
That?
@sehe I don't quite understand what you are saying...
 
Your remarks are getting on my optic nerves.
 
11:54 PM
You should see an optometrist.
 
Only given enough ambient lighting.
 
@sehe Well, he shouldn't see an optometrist in the dark. That would be awkward, not?
 
And when he's geographically close and there are no objects obstructing him/her from view
 
@sehe Hmm.. Right.
It's 1 am. I should probably try to go to sleep.
 
I'm a robot. I go see electronic engineers and software developers when I need to check my eyes.
 
11:57 PM
@StackedCrooked I bet you like refactoring your code. I notice you rewrite at least 50% of your messages after initial posting :)
 
@RMartinhoFernandes Yes. That is good. Keep up the good work!
 
@sehe I have noticed that only happens when he's drunk or sleep deprived.
 
@sehe Well, I'm a craftsman. What can I say?
 
Cheers! And good night
 
@sehe Cheers! And also good night!
 

« first day (442 days earlier)      last day (4491 days later) »