« first day (860 days earlier)      last day (4081 days later) » 

Xeo
11:00 AM
Oh, right, we were still on about local_iterators.
I actually use just iterators.
 
You can now have first be an iterator to bucket 3 and last an iterator to bucket 4.
 
Xeo
@R.MartinhoFernandes Right, makes sense for local_iterators.
 
@melak47 he should present them a view of where the sun doth not shine, and release a claim of ownership upon their ignorant selves
 
where the sun doth not shine...
 
¬_¬ he should aim his ass at them an piss on them
 
11:02 AM
with his ass?
 
¬_¬ he is a lion you know
 
Xeo
My actual problem: I'm storing iterators into an unordered_map to realise aliasing of commands. It's been working just fine, but I was wondering at one point how.
 
@Xeo aliasing of commands?
 
Xeo
@BartekBanachewicz typedef std::unordered_map<std::string, std::function<...>> command_map;
 
11:03 AM
something like function table. okey
 
Xeo
And typedef std::unordered_map<std::string, command_map::iterator> alias_map;
(simplified)
 
ummm
aliases! okay
 
Oh, and that example above is also a good one to show how iterators suck: see how it does not matter that both iterators may still be valid; they are useless without a valid range.
 
Xeo
Seems I need to use actual pointers (reference_wrapper) in the alias_map. :/
 
Speaking of which, Christopher Waltz is awesome.
 
Xeo
11:06 AM
@R.MartinhoFernandes Well, if you had range = m.all(0), you'd need have the same problem, wouldn't you?
 
@Xeo they should be even more lightweight than iterators, no?
 
user142019
SQL class today how fun.
 
@melak47 like this /cc @BartekBanachewicz
 
Xeo
Unless you go through some sort of indirection in the range... hm. You could just store the bucket number.
 
@Xeo What problem? Valid range => usable; invalid range => unusable.
 
Xeo
11:07 AM
@R.MartinhoFernandes Yeah, but how do you mark the range actually invalid?
 
@Xeo The point is that the iterators are not the important concept.
 
one trivia Q. Does anybody know why string functions dont follow iterator style of STL, aka why string::npos instead of instance.end() ...
 
@NoSenseEtAl std::string is kind of broken
 
how do you pass a single command to a bash shell, bash -c (commands to run)?
 
@BartekBanachewicz so it is flaw, not a intentional design. I know of member fun bloat :), but IDK about this
 
11:12 AM
I want something along the lines of 'su -c bash -c <command> ; exit' (no I can't use sudo, and yes I do have use bash for the command, no I can't change this stupid limits on these stupid servers)
 
@R.MartinhoFernandes definitely, which film did you see?
 
ergh, our professor is trying to be all hip...
 
@bamboon Django Unchained.
 
Xeo
@R.MartinhoFernandes That one was goood.
 
@R.MartinhoFernandes "A nigger? In my house?" won this movie
 
11:15 AM
@R.MartinhoFernandes I still have to see that one. Have you seen Inglourious Basterds?
 
Yes.
> Please answer in C++ as I don't speak other languages.
 
lol
 
@bamboon I still prefer that one to Django Unchained, but both are great.
 
@R.MartinhoFernandes I'd agree with this
 
damnit
rejected by cambridge people
 
11:20 AM
@BartekBanachewicz Yeah. Unheard of, right :(
 
@DeadMG they tell you why?
 
@sehe I mean, I can understand chat, but mailing lists?
 
apparently, they have other candidates who are more experienced in their specific field
 
@DeadMG what field is that?
 
security and virtual machines and shit
 
11:22 AM
@BartekBanachewicz That makes little sense...
@BartekBanachewicz I don't see that much difference, really. It's both persistent, written history :)
 
@sehe It's my university. <Insert Dante Inferno quote here>.
 
Xeo
@Mysticial: I just noticed your 4 FLOPS answer was reddited again two weeks ago.
 
@BartekBanachewicz Oh my. How can people be so evasive "that wasn't the first time I posted here". ROFL he did a good job evading the point there.
@BartekBanachewicz Nice message id: #7868888
:)
 
The fuck. Callback gets called twice with the same item.
 
@sehe I'd get a lot of goodies on 4chan for that :P
@sehe I actually laughed too. I can't really understand the point of calling someone "a wanking idiot" and then trying to dispute of whether it was the first message on the mailing list (sic!) or not
 
11:26 AM
@melak47 Damn. I must have missed a change in politics then. Windows is "hip" now?
 
As if it was the essence of that argument
 
You're a wanking idiot. Frist.
2
 
I guess Metro UI is Hip
 
@BartekBanachewicz Mind boggling
@R.MartinhoFernandes Stop making me laugh out loud :)
 
@sehe I think our prof must've misread a metro memo
ffs mardkown/up/fgssadg
 
now we need more dancers ;)
 
@melak47 <shakes booty>
 
anyway, that guy...
he apparently created a local repo with tortoise and wanted it to be magically served via http
as if http fairy showed up automatically each time he wants a file available
 
but that's how it works god damn it
 
i dunno what the fuck he is trying to do actually -.-
 
11:37 AM
Services that suggest music you might like really get upset when you are eclectic
 
"I like everything! Stop giving me everything to listen to!"
 
> You like? Here Music!
 
user1357851
I hate spam, I wish I could find out where those spammers got my 3rd priority email address
 
I think it's more a meta question guys, but... How do I repwhore?
 
@BartekBanachewicz you have rep?
 
11:40 AM
@thecoshman Can you rephrase that one?
 
oh, can't wait for @Zoidberg and @NoSenseEtAl to duke it out
 
user1357851
it is only 3rd priority, I could always close the account and the spammers could go to hell
 
user142019
@thecoshman ?
 
@BartekBanachewicz you have rep => rep whore
 
@thecoshman That's not what I'm asking.
How do I get loads of rep fast?
 
11:40 AM
@BartekBanachewicz it's what I am saying
 
user1357851
@BartekBanachewicz by having the window open on the new questions list and answer a hell lot of questions hoping some getting upvoted
 
@Telkitty doesn't seem to work very well for you :P
 
questions with upvotes get seen more, thus get more upvotes, thus get seen more, thus get more upvotes...
shall I go on?
@BartekBanachewicz you asking how you did get lots of rep, or how do you get about getting loads?
 
user1357851
@BartekBanachewicz because I am not rep whoring, I always have ... umm ... 'better' things to do :p
 
@thecoshman I want 10k. Clearer now?
 
11:43 AM
@BartekBanachewicz for what?
 
@thecoshman personal reasons.
 
IIRC 20 is all you need for chat
 
Plus dental floss
 
@BartekBanachewicz you going to print it out and wank all over it?
 
11:44 AM
I am going to do my job as a community trusted user
whatever, srsly
 
@BartekBanachewicz That's at 20k
 
@thecoshman hush pirate
 
And "trusted" is a bit of an exaggeration.
 
@sehe too vulgar?
 
@R.MartinhoFernandes but you get mod tools at 10k
@thecoshman certainly to the point :P
 
wow
C++ Grandmaster!
> It was reported that 10,000 programmers have enrolled in the course including people from Intel[], Stanford[], Google[], MIT[], IEEE[], Harvard[], and many other companies and educational institutions from all over the world.
 
I can't believe people are taking it seriously.
 
> Company and organizations names have been used without permission and are property of their respective owners.
WTF? You can't even mention them without a notice?
 
@R.MartinhoFernandes just CYA
 
@BartekBanachewicz wtf is up with those [] pairs
 
11:49 AM
@R.MartinhoFernandes without it, it might look as any of this actually endorsed the course
@melak47 that's not my fault quoting doesn't escape md
 
@melak47 They are [*] in original mail.
 
> By popular demand enrollments have been extended until 15 March.
 
I guess people have panicked and figured they may as well sign up, just encase this turns out to not be utter shit
 
@BartekBanachewicz Fuck that. You need to not know English to claim that "someone that happens to work at company X enrolled" means "company X endorses".
 
@R.MartinhoFernandes legal blabla
 
11:52 AM
@R.MartinhoFernandes as inbred as it may seem, it is the done thing
 
@R.MartinhoFernandes IANAL (I am not a lawyer? Well, " I ANAL" certainly wasn't the acronym)
Uh, they actually run a system for checking solutions
 
Lol
This is gonna be great.
 
@thecoshman to obnoxious
 
@sehe how so?
 
if at first you don't succeed, skip it and go do something else
 
11:55 AM
Uh, and we still don't know who's behind it
 
@BartekBanachewicz maybe Bjarne?
:P
 
well, I am going for 2nd labs introduction
cee you
 
@BartekBanachewicz Plus, the disclaimer does not say anything about endorsing or not. It only talks about not having permission to use the names (WTF?)
 
@R.MartinhoFernandes "Yes I stole that loaf of bread, but because I admitted to it, it's all good!"
 
11:58 AM
Hmm, ranges mailing list seems to have gone dead.
 
I can see the logic
 
@TonyTheLion ofc, it's perfect logic
 
lol
usually that wisdom ends up being "I shouldn't have waited this long"
 
@melak47 Wise words.
 
12:02 PM
@melak47 but you are wiser, and that's what matters!
 
For example: shouldn't have waited to study for the exam til today, which is when I have the exam. Never know when a madman is gonna chop down a tree with a chainsaw and rob you of your sleep!
 
Okay, I thinkI got a pretty good system going here...
Rather than ultra-wank with boost:variant and stuff, I've set up a flag-type-dealie system for the windowing, to make it easier to pass multiple parameters and window styles to the underlying window class
 
So you wanked with something else.
 
Yep.
 
You wrote your own wankage!
 
12:05 PM
I know!
 
Wanking is good.
 
It's so exciting~
 
you self-indulgent wanker :)
 
enumflagoperators and WindowStyles, mmm.
 
boost::variant<enumflagoperators, WindowStyles>
 
12:06 PM
Oh gawd. Dx
 
Having wanked long enough, it may come to you eventually.
 
I hate it when Castle does cliffhangers ~_~
 
lul
guvment has to regulate reeincarnation
next thing you know, they're selling you reincarnation tickets. If you can only afford to become a chicken in your next life, well, that's life.
 
@melak47 oh fuck is there a cliffhanger this week
 
12:13 PM
@TheForestAndtheTrees haven't watched the latest episode yet? Save it up til the 2nd part is out then :p
 
@Xeo like they could even remotely control such a thing, if it were to occur
 
they don't have that great firewall for nothing. 404, soul not found
 
user142019
Classes y u no sealed by default.
 
@Zoidberg because then no students could go to class
 
user142019
lol
 
user142019
12:26 PM
I'm talking about C#.
 
user142019
I want public inheritable class Foo instead of public class Foo.
 
user142019
And public class Bar instead of public sealed class Bar.
 
Um.
That sounds a bit like const cpp for classes. xD
 
Xeo
Why do you want to seal your classes?
 
@Xeo "Design for inheritance or forbid it."
 
Xeo
12:36 PM
Eh, what about "implemented in terms of" relations? Don't just arbitarily restrict stuff.
 
@Xeo That's what composition is for.
What about having no defined invariants for derived classes to use?
 
Xeo
@R.MartinhoFernandes Do I need to link to your optimized tuple?
 
@Xeo Private inheritance is composition. It just happens that C++ uses that tool in weird ways.
 
Xeo
Whatever, I'm no friend of arbitarily restricting things.
 
It isn't so much a problem in C# as it is in Java though.
 
Xeo
12:41 PM
The first version of easy_bind is absolutely useless. It's exactly the same as writing just auto f1 = (std::string(*)(A&,A&))&Worker::MyFn;. The second version is hard to implement, since the standard only gives you _1, _2, etc and not placeholder<0>, placeholder<1>, which would make it extremely easy. — Xeo 30 secs ago
 
In Java all methods are overridable by default. That means that any derived class can step over all of your invariants.
Or changing your implementation can easily break all derived classes.
 
Xeo
Java sucks, though.
 
C# shares a lot of stuff in the subclassing department.
It's not about arbitrarily restricting stuff. It's about accidentally allowing too much.
(Why do you make members private at all? Isn't that just arbitrarily restricting stuff?)
 
user142019
@R.MartinhoFernandes except private ones, right?
 
@Zoidberg Yeah, right.
 
user142019
12:45 PM
But that doesn't make any sense anyway. :P
 
@Zoidberg Why not? C++ allows it, because it makes sense.
 
anyone knows Qt here and can help?
 
user142019
You can override private members in C++?
 
user142019
Does that work with polymorphism?
 
Xeo
12:46 PM
friends~
Also, inner classes that inherit from you, IIRC.
 
The class itself!
Private overridable members are actually great for designing for inheritance.
 
Xeo
Derp, right.
NVI
 
user142019
Oh even override works when overriding a private function. stacked-crooked.com/view?id=df90cc179472a2a92fb8eda34d8e7484
 
user142019
Okay TIL.
 
Xeo
Non-virtual interface, used by the standard iostreams.
 
user142019
12:49 PM
But isn't a private virtual function kinda silly? xD
 
Xeo
@Zoidberg Read up on NVI.
 
user142019
@Xeo k
 
@Zoidberg No. It's the less silly kind of virtual function.
 
user142019
Oh. :P
 
user142019
Let's see if this works in C# too.
 
12:50 PM
No.
 
user142019
Oh I see.
 
user142019
> 'Voxx.Graphics.B.foo()': virtual or abstract members cannot be private
 
.... Whoa.
I can make half of a union private and the other half public, I think. o_O
 
Oh gawd, you and your unions.
 
Wanna see? :3c
 
user142019
12:54 PM
wtf does the c in :3c mean.
 
user142019
You always do that.
 
It's a smug-like version of the catface; you have to imagine the paw of the cat under its muzzle/chin, and it's looking at you with a silly, playful, somewhat smug catsmile.
 
guyz, why this code don't work? it compiles fine, but when i select a word in QTextEdit, the actionBold button isn't checked.
QTextCursor tc = ui->textEdit->textCursor();
    tc.select(QTextCursor::WordUnderCursor);
    if(tc.charFormat().fontWeight() == QFont::Bold) {
        ui->actionBold->setChecked(true);
    }
 
user142019
@ThePhD okay xD
 
user142019
:)
 
12:58 PM
 
What is `Bare` (as in `Bare<Tuple>`) in this snippet here?

http://loungecpp.wikidot.com/tips-and-tricks:indices
 
I call it Unqualified nowadays.
 
@R.MartinhoFernandes ahh - tyvm
 
Also, ooooh, broken link.
 
user142019
I'm a Slowpoke.
 
Xeo
12:59 PM
 
@Xeo lol - damn - you're fast
 

« first day (860 days earlier)      last day (4081 days later) »