« first day (1102 days earlier)      last day (3863 days later) » 

11:00 PM
@R.MartinhoFernandes Yeah.
 
@thecoshman not exactly what I meant. But thanks for removing the veil of civilization
 
Xeo
@R.MartinhoFernandes Awesome
 
@DeadMG It doesn't, really. You just believe in it. Yesterday's case was different. But, oh well
 
@sehe oh sorry, should we pretend homophobia was never rampant? (I'm tired, not trying to make a point)
 
Jeez, puppy. Calm down.
2
 
11:01 PM
@thecoshman What's even more unfortunate is how he was caught by reporting a burglary, and when the police got there, asked him to explain his sleeping arrangements in case he had been sleeping with his friend.
 
@EtiennedeMartel Mind if I borrow it for a tweet (or is there a retweetable?)
 
so he got both robbed and caught on the same night.
 
@sehe A colleague of mine sent it to me.
TWEET AWAY!
 
Is there any comprehensive template tutorial, updated to C++11?
 
11:02 PM
any way
night shit lords
 
@Pawnguy7 Try mine.
 
@EtiennedeMartel twitter.com/sehetw/status/392788154366709761 forgot the #loungecpp tag there...
 
@DeadMG where?
 
@sehe Oh boy. You really like hash tags.
 
11:04 PM
@R.MartinhoFernandes It makes for better qualifications. And I use them to relocate my own stuff (since twitter search is so utterly broken)
 
@DeadMG Did you write these?
 
@JustinChang Yep.
 
@sehe And I can then retweet that.
 
Hmm, what happened to the Daisy pics?
 
didn't survive the move from Amazon hosting.
 
11:07 PM
Sue them!
 
Oh. What you hosting with now?
 
some nobody that offered free hosting.
000webhost.com
they suck, but it's free.
 
They suck! For Free!
Excellent marketing there
 
hey, I'm not paid to endorse them
 
11:10 PM
Some free website hosting companies only tell you that they are out of space after you register and then confirm registration...
 
@DeadMG Damn. Missed opportunity
 
@JustinChang Well, they do seem to be currently hosting my website, and it's certainly for free.
 
> When I drive and other drivers do rude things, I often get angry. Then I remember a trick: I imagine myself floating down a stream in a raft, and the other cars are just twigs and leaves floating past me one way or another on this stream. They don’t have to treat me a certain way, because they’re just twigs. And so I serenely float down this stream,
> not worrying about how the twigs float around me (though I try not to hit them, because, you know, safety first). And in truth, this is how life is—other people aren’t trying to offend you, don’t even worry about you most of the time. They are just twigs floating by. Be nice to the twigs though. I read this in Bob Ross' voice Today 2:02pm
 
@DeadMG yeah, I've never noticed the problem with 000
 
The C++ motto should be "Yes, well, don't". Sample use: "But you can legally do <bizarro thing> in C++! Yes, well, don't."
Dat twitter handle, too
 
11:14 PM
@DeadMG Wait if you have a free hosting, how do you have your own SLD?
 
> "SLD"
 
@JustinChang The domain isn't free.
I registered it a long time ago.
 
oh ok
@sehe ?
 
First time I heard "second level domain". People usually just say domain
 
@DeadMG seems a good place to start :D
 
11:16 PM
@sehe I thought I had to specify because we were dealing with free hosting. I guess not.
 
lol
so true
 
@R.MartinhoFernandes Woops.
 
@Cat has probably seen this before, but I'm sure he'll laugh again.
I'd really love to hear what someone is saying as they show those pictures.
 
I have trouble losing reps
Whenever I post a bad answer, it will get deleted
 
11:20 PM
reps. using them. Sales reps?
 
sometimes by a mod
 
So. Don't post bad answers
 
you are not reading
 
@Telkitty猫咪咪 Translation: You alsways lose reputation on Stack Exchange for posting bad answers. Answer: Stop posting bad answers (@sehe) or go to the meta.
always*
 
I like this new guy.
room topic changed to Lounge<C++>: Don't tell Belgium what to do. [c++] [c++11] [c++1y] [no-questions]
 
11:23 PM
fuck me. I just used the friend keyword. it seems I'm doing something bad
 
@Telkitty猫咪咪 You're expositioning your problem badly. You made it completely ambiguous that you actually want to lose rep
 
@Abyx friend is actually a way to reinforce encapsulation.
 
C++ Programmers don't like friends ;_;
 
@EtiennedeMartel you probably mean another kind of friends
@MohammadAliBaydoun exactly.
 
Xeo
> If someone told you that loops are for wusses and real C++ programmers use algorithms [...]
I wonder if he's jabbing specifically at the Robot
 
11:25 PM
@Xeo Likely about Sean Parent
 
@Abyx I was reading about friends today because I had that same misconception.
 
@Xeo Oooh, where?
 
Ell
I messed up my machine learning review test :(
 
Hey, guys. I have recently started programming on a Mac, and I don't really want to use XCode right now because it says I need to update a lot on the OS. What other C++ compiler do you recommend for Mac?
 
Xeo
7
A: Cannot use std::iota with std::set

Steve JessopTo solve your actual problem: std::set_difference has less to do with std::set than you might expect. You can use any pair of iterators as the first two parameters of set_difference provided they return the values in order. There is no particular benefit in it being a set. So for example the be...

 
11:26 PM
@JustinChang Xcode is an IDE. What are you exactly asking for?
 
Ell
this makes me sad.
 
@JustinChang clang or gcc
 
@sehe ok thanks
 
"So if you love algorithms so much that you might as well marry them, then you can reach outside the standard libraries". Lol, +1 for truth and entertainment — sehe 8 secs ago
lol
@JustinChang (Xcode by default uses clang AFAIK)
 
xcode used to use gcc for compiling until apple went mad & made their own
 
11:27 PM
@sehe I'd recommend clang on OS X.
 
Xcode uses Apple builds of clang
 
meh Lounge<wisdom>
 
Why wisdom? I'm not noticing any
 
that message of cat.
 
@Xeo huh?
 
11:29 PM
30 mins ago, by DeadMG
I wish that being suspicious of every new person didn't pay off.
...
 
nevermind...
 
28 mins ago, by Etienne de Martel
Jeez, puppy. Calm down.
 
all I'm saying is
 
@DeadMG Hmm... What are you trying to say?!?! (just kidding)
 
@DeadMG so. Someone accidentally used a question mark for the intended purpose, on your turf. Big deal
 
11:31 PM
Don't use gcc on Mac.
 
newbs are good. unless they're fucking stupid or too annoying.
 
For once, I agree with you.
 
please don't.
 
Either capitalize, or drop the period.
 
it feels so wrong
 
11:32 PM
That's more like it
 
nah, I capitalize only the I.
 
bleh shivers in repulsion
 
3:34 AM, huh. time to write bad code
 
I'm dealing with someone else's abysmal code
 
11:35 PM
:12516665 It's COFFEE TIME!!!!
 
Raw pointers, new, memory management, circular dependencies,
It's as if it were written in 1997
 
I deal with an abyxmal code every morning.
 
@EtiennedeMartel "Don't tell Belgium what to do." What?
 
not that bad one though
 
I want to rewrite all of it.
 
11:37 PM
do it!
 
@Nudler applying some 'fantasy spray' to compensate for the missing code: ideone.com/dq78eM I don't see the problem (well, I see lots of problems, but not "still the same") — sehe 23 secs ago
 
But every time I try, I look at the amount of getters and setters and raw pointers and coupling and I feel terrible
 
> fantasy spray
Such a useful invention
 
indeed
 
11:38 PM
This is going to take me 1-2 week(s), but it will be worth it in the end.
 
I hope you have some kind of tests for that code.
 
@DeadMG I think your tutorials made me more confused :(
 
The author wrote a pdf with some test code, so I guess I can use that
 
@Pawnguy7 Which ones?
 
omg lol no
 
11:39 PM
@Jefffrey templates
 
Actually, fuck it
 
@Pawnguy7 Link?
 
@Pawnguy7 Which part is confusing you?
 
@Abyx Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous code, Or to take arms against a sea of troubles, And by opposing end them? No, that's no question at all!
 
11:40 PM
I am not preserving any semantics with this shitty thing that requires you to restructure your codebase to incorporate it
Anyway, good night
 
@JerryCoffin You're right, it's way nobler to kill yourself.
 
@Pawnguy7 That's what you asked for
 
@DeadMG I never suggested any such thing.
 
@sehe True.
 
@MohammadAliBaydoun G'night.
 
11:42 PM
To start with, I have no clue what a template alias does.
 
@JerryCoffin I think I just misread it.
 
@sehe ...and the users replied: "It's exactly what we asked for, but not even close to what we want!"
 
@Pawnguy7 Pretty sure I introduced it.
 
Xeo
Boost.Range's adaptors return specific ranges with their own iterators that have the actual functionality - in filtered's case, it's boost::range_detail::filter_iterator or something along those lines, which is obviously incompatible with what boost::sub_range is expecting (ComponentVector::const_iterator). One solution is a type-erased any_range. Another is to wait for C++14 and fully deduced return types. :) — Xeo 2 mins ago
 
@DeadMG define introduced
 
11:43 PM
@JerryCoffin I do have several canned responses in store, depending on context :/
 
Xeo
^ @R.MartinhoFernandes Did you stumble upon problems like that with ogonek/Taussig/your range experiments? /cc @LucDanton
 
@Pawnguy7 Said what it does.
 
@DeadMG I have a vague idea it acts an alias, but that is about all I got.
Not exactly sure what for.
 
@Pawnguy7 lol. Maybe, just read a book instead. You'll have fewer authority issues reading that, which will help you focus and buckle down, instead of giving in to your performance anxiety.
 
Xeo
11:44 PM
It does exactly what it says on the tin. Really.
 
or hell, just read the tutorial.
 
@sehe authority issues?
@DeadMG I read all of it.
What... benefits does it offer?
 
ok
well, if you check the comments in the code sample
 
Xeo
@Pawnguy7 parameterized aliasing.
 
it shows that when you use the type metafunction, you have to do typename blah<args>::type.
but for the template alias, you can just use blah<args> directly.
 
11:46 PM
@Pawnguy7 Try using it. ideone.com/GDkGWi See not difficult at all, right? Now: ideone.com/Um5cuU
 
also, the template alias is way clearer to both define and use.
 
@Pawnguy7 You see, the trick is: Baby steps, and give yourself the confirmation that you understand by doing small (small) spike tests
 
@Xeo No. I used iterator_range a lot.
Also, wow.
That sucks.
 
Xeo
Also, that made me wonder how exactly the list type in Haskell works, since you can filter and map it, and the type stays the same.
(Same for function types, really)
 
@Pawnguy7 It's giving you the easy escape. Instead of buckling down and rereading until you get it, you go back to the author, implying he didn't write it clearly enough.
 
Xeo
11:50 PM
I wonder if it's all just effectively hidden type-erasure
(I could imagine how it works if [] was a type-class, but it's not, so I'm a whee bit confused.)
 
@Xeo The laziness there comes from thunks, not from the structure.
 
@sehe I never said it wasn't clear, I said I was confused.
Given I am confused with many things, it does not reflect badly on the content.
 
Xeo
@R.MartinhoFernandes How did laziness enter the picture here?
 
Is using alias and typedefs pretty much the same thing (they can be interchanged)?
 
Xeo
Yes for non-template using-aliases
The standard even specifies that the semantics and everything of a non-template using-alias is the same as if the type was introduced through typedef.
 
11:55 PM
Yeah, they were introduced to allow templatized aliases, right?
 
Xeo
they were introduced because reusing typedef looked fugly
 
You raise a good point though.
 
Xeo
(and I think the non-template version was "backported" for consistency)
 
@Xeo There's no need to have the type change with filter and map if the result is strict.
Kinda like std::vector<T> map(std::vector<T> const&).
 
Xeo
@R.MartinhoFernandes ... true
 
11:56 PM
@Xeo Also because they are more beautiful.
 
Xeo
1 min ago, by Xeo
they were introduced because reusing typedef looked fugly
 
I think part of the problem is, I have never seen anything like thing<T>::type.
 
I just had to reinforce the point.
 
@Pawnguy7 The very fact you came running back implies you hope/expect the author fixes this
@Pawnguy7 You know. At some point in time, we all hadn't ever seen anything of the sort
 
@sehe Hardly. I often ask questions here.
I would have asked if I was referred a different tutorial as well.
As I have throughout today.
 
11:58 PM
@Pawnguy7 ... suit yourself
 
Xeo
@R.MartinhoFernandes So, I guess a [a] really is some [Thunk a] or something?
 
Thunks are magical and don't care for types.
 
Xeo
heh
 
It's a function pointer that replaces itself with the result.
 
@sehe It is like teaching templates before you understand the context in which they are useful.
 
Xeo
11:59 PM
I like how the Haskell documentation liberally uses "magical"
 
@Xeo are you serious?
 

« first day (1102 days earlier)      last day (3863 days later) »