« first day (821 days earlier)      last day (4351 days later) » 

20:00
@TonyTheLion Yeah, well, Pixar are experts at getting crap past the radar.
After all, since animation is seen as "family oriented" in North America, if you want to put stuff for adults in animated works, you have to hide it.
seems so
Hence the multi-tiered humor and parental bonuses.
CLANG I LOVE YOU
@EtiennedeMartel And thank Japan for thinking otherwise.
./track.h:463:44: error: no template named 'is_copy_constructable' in namespace 'std'; did you mean 'is_copy_constructible'?
20:00
@MooingDuck Don't tell your wife.
@MooingDuck how fitting.
@MooingDuck facepalm
@ShotgunNinja I can't speel
I knew spelling would be important someday!
There was a post on CNN today about Japanese anime porn
3
lemme find it
20:01
Well, well.
@TonyTheLion You have my interest.
Reminds me, the main reason why there are so many tentacles in hentai is that dicks have to be censored, so they use a substitute.
@TonyTheLion Shit, it's blocked on my work PC.
Unlucky
> This supersized fantasy figurine sold at an auction in 2002 for $427,500
20:03
@EtiennedeMartel Lawl, and the reason they don't anymore is because there are major loopholes in the censorship rules... All you need is a tiny black bar over some part of it.
she had huge oversized boobs
@MooingDuck compilers do spell checking now? :p
@melak47 only clang
@MooingDuck because clang is awesome?
user142019
That's not spell checking.
user142019
20:05
It's suggesting the similar.
template<typename Iterator>
void selectionsort(Iterator begin, Iterator end)
{
    for (; begin != end; ++begin)
    {
        std::iter_swap(std::min_element(begin, end), begin);
    }
}
Is it just me, or is the simplicity of selectionsort awe-inspiring?
@TonyTheLion It's all about the tits.
@MooingDuck in VC++ you'd just type is_cop and get correct name
@FredOverflow It's awe-inspiring until you get to asymptotic time complexity.
20:06
@EtiennedeMartel hmmmm
@EtiennedeMartel Heartily agreed.
Fuck tits.
Oh, wait.
Tit fucks?
Hm, where's @kbok? I need to know how far we were in the sex counter before @TonyTheLion resetted it.
@EtiennedeMartel Not as fun as you'd imagine, with few notable exceptions.
user142019
inb4 onebox pic of tittyfuck
Ell
Ell
20:08
Ugh, I done fucked up again :(
@EtiennedeMartel Not far.
user142019
@Ell +1
user142019
> Asia
TIL Asia is more fucked up than I had previously imagined.
20:09
@TonyTheLion Oh NOW people are starting to realize this.
just spend a night on /b/
some mangas are completely fucked up
I've known how delightfully fucked-up the Asian countries are for a long time.
Ooooh yeah.
@NolwennLeGuen you mean /h/? or /d/?
OMG, I'm uneducated.
I knew the chan type boards originated in asia
20:10
@ShotgunNinja no, I don't
but I never really went further than that
There's also Hentai Foundry, which I can summarize as "DeviantArt for porn".
@NolwennLeGuen Thank God.
Plus there's Sad Panda.
give this man upvotes
Those who know of Sad Panda, know of Sad Panda.
20:12
he saved kittens :)
@TonyTheLion "Kittens domesticate man to serve as boat"
@NolwennLeGuen or that
@ShotgunNinja What is your favorite O(n log n) sorting algorithm?
Ell
Ell
Ugh gawd if only life had a rewind button :o
@TonyTheLion SAVE THE KITTEHS
20:13
@FredOverflow Modified Quicksort, with a three-sample selection heuristic for choosing pivot points.
@Ell do you want to risk the tape of your life getting messed up in the great astral VCR?
@ShotgunNinja Mine is heapsort :)
Ell
Ell
Meh it wouldn't bother me really :p
@FredOverflow Heapsort is pretty cool, even if Quicksort is usually faster.
@ShotgunNinja How do you compute the median of three? ;)
20:15
@FredOverflow Yeah, heapsort is cool, but I personally like how Quicksort works internally.
ITT: People comparing their favorite sort algorithms
We're reaching new levels
@NolwennLeGuen What's yours?
Ell
Ell
Quicksort looks cool when you write it by hand
@EtiennedeMartel I prefer shitsort. It gets shit sorted.
Mine is introsort.
20:16
@EtiennedeMartel Introsort = Quicksort + What?
I also really like Bogosort, especially the O(1) destruction of the universe part.
@FredOverflow Heapsort.
Best from both worlds, really.
@ShotgunNinja That's the quantum version.
std::sort and I don't care how they implement it.
user142019
I just use std::sort or Data.List.sort or Array.sort or Array.sort!.
In some universes, it works in O(1) time; in others, it deletes the universe.
20:16
@NolwennLeGuen There's also Intelligent Design Sort.
@EtiennedeMartel I also like to stop Quicksort when the lists have about 30 elements and then use Insertion Sort once at the end. Does that technique have a name? Usually doubles the speed.
@AndreiTita Introsort IIRC
@FredOverflow Fred Sort?
@EtiennedeMartel lol
Ell
Ell
Bubblesort!
@FredOverflow Nah, it's qsort switching to introsort under some conditions.
20:17
@EtiennedeMartel No, it's a common technique. I learned it from Programming Pearls.
@EtiennedeMartel Genius!
@FredOverflow I've seen that before.
@FredOverflow You humble person.
@FredOverflow IIRC .NET uses that technique too
@AndreiTita Pretty sure std::sort does not use qsort from C.
@FredOverflow No, the algorithm.
@FredOverflow Dunno -- like many of the modifications to Quicksort, it was invented by Sedgewick, but I've never seen his name used for it.
@TonyTheLion "Escaping on a bulldozer".
@AndreiTita Why would Quicksort resort to Introsort? That doesn't even make sense, because Introsort involves Quicksort. Happy tail-chasing...
@AndreiTita It's quicksort switching to heapsort if the recursion gets too deep -- which is Introsort.
20:19
@FredOverflow Yeah you're right. What @JerryCoffin just said.
@AndreiTita I don't want to be right, I want people to learn, be it me or someone else :)
user142019
School y u no interesting.
@FredOverflow I just want strawberry ice-cream, most of the time.
@AndreiTita ...and chocolate the rest of the time?
20:21
Anyone care to guess the origin of downvote?
@Zoidberg You fell for the "I'm going to learn stuff in school" fallacy.
user142019
@FredOverflow Java.
-1
A: Who echos the characters in terminal?

Nolwenn Le GuenThis is because the standard output is usually line buffered: for performance reasons, the system will wait until you write a full line (that ends with \n) before actually sending the data to the output.

@FredOverflow isn't that introsort?
@AndreiTita Today I tried raspberry chocolate. It tastes okayish, but it only has 30% sugar.
20:21
Maybe I misunderstood the question?
user142019
@AndreiTita The only reason I go to school is because my terrible father forces me to.
@JerryCoffin Pretty much.
@NolwennLeGuen Well, it's not incorrect, so...
@MooingDuck No, Introsort = Quicksort + Heapsort.
But you misunderstood, yes.
20:22
@EtiennedeMartel I don't rly get it. It was downvoted instantly after I posted it, so, uh, whatever
@FredOverflow oh right. Then I don't know a name for that, but MSVC does it too
@NolwennLeGuen It's the computer gnomes.
@Zoidberg "Java" is not a topic. What specifically are you learning right now?
@EtiennedeMartel Which part
user142019
@FredOverflow Nothing, that's the problem.
20:22
Hello guys.
user142019
Hello Rapptz.
Not hello.
@Zoidberg What is the teacher teaching?
user142019
@FredOverflow OOP using Java.
Wait.
There's two question in there.
user142019
20:23
Aka inheritance, abstract classes, etc... That stuff I already know since years.
@NolwennLeGuen I think the problem is your answer is unclear as to "Who echos the characters in terminal?" (Also the second question)
@NolwennLeGuen The question is (largely) about what echos the input to the terminal as you type it in. Your answer is about what happens when you print something out.
@Zoidberg Okay, so... some Java specifics? Or just general dynamic dispatc? Or inheritance? Or interfaces? Or GoF patterns?
@Rapptz Hello.
@Zoidberg Ah okay. Does he only teach how it works, or also why you would want to use it?
20:24
@JerryCoffin There's 2 questions actually, I answer the first one.
I'll do as you say and edit my answer with "ITS THE COMPUTER GNOMES"
2
user142019
@FredOverflow Inheritance, abstract classes, classes, interfaces, polymorphism, static members, and value types vs. reference types (or whatever the Java terminology is).
@NolwennLeGuen WRONG! (You misspelled "IT'S").
user142019
@FredOverflow he teaches by giving examples and telling what things are, then we have to do exercises.
lol
user142019
20:25
@NolwennLeGuen -1 for terrible answer.
Ah shit. My SFINAE selecter appears to have categorized std::string as a static container.
user142019
@NolwennLeGuen flagged as "not an answer".
@Zoidberg I love you too, faget
user142019
@NolwennLeGuen Why can't you simply delete stuff?
Anybody wanna guess what I meant to teach with this diagram? :)
user142019
Heaps?
@FredOverflow Skull fucking.
user142019
lol
20:26
Nope, it's one specific algorithm from the STL.
@EtiennedeMartel My terrible sense of humor combined with a horrible ego
user142019
Arrays with pointers to previous elements!
Binary search?
@NolwennLeGuen Pain.
You have 14.2k reputation. Get out. — Shotgun Ninja 41 secs ago
20:27
@AndreiTita nope
^ that's enough for me to downvote you until you lose chat privileges
user142019
RB-trees. xD
Just guessing. I don't know anything about this.
Yeah doesn't look right.
@NolwennLeGuen Right, you have more rep than me.
@NolwennLeGuen And those downvotes would probably get rolled back.
@EtiennedeMartel shit happens
20:28
I guess skill is not a good indicator of reputation.
@EtiennedeMartel décidément tu ne comprends absolument pas la psychologie
Hint: It's an algorithm that takes a unary predicate, so it cannot be searching or sorting.
@EtiennedeMartel it more or less is
partitioning?
20:29
Rien ne m'empêche de faire un downvote tous les deux jours, de façon insidieuse, patiemment :)
Lentement mais sûrement.
@NolwennLeGuen You actually did pick up a flag. lol
@EtiennedeMartel Et oui. Patience et longueur de temps font plus que force ni que rage.
I flagged that shit.
user142019
@FredOverflow std::is_partitioned?
20:29
@NolwennLeGuen Maybe -- but only with a lot of emphasis on "less"!
You have 14.2k reputation. Get out. — Shotgun Ninja 3 mins ago
@Mysticial Wouldn't be the first time. I remember answering how to catch exceptions with pokeballs. 5 upvotes or so.
@Zoidberg nope
@NolwennLeGuen Tabarouette, tu sors les grands proverbes.
@EtiennedeMartel C'est un de mes préférés :)
20:30
@NolwennLeGuen Ohhh... linky?
@Mysticial It got deleted, I'll try to find the question
adjacent difference?
@Rapptz never heard of that :)
really? lol :(
@ShotgunNinja butthurt much?
20:31
partitioning was the closes so far, conceptually.
@NolwennLeGuen nah, just being silly.
@ShotgunNinja Oh I guessed so! XD it was hilarious :3
1>e:\projects\sinder\fileio.h(119): error C2338: Fuuuuuuuuuuu!
@Rapptz last hint: 25.3.8 ;)
std::remove_if?
20:34
yes :)
user142019
remove_if
user142019
damn
@Zoidberg Did you post before he edited?
user142019
@FredOverflow I copied to clipboard before he edited. :P
20:35
lol
user142019
Like, a minute ago.
user142019
But I wasn't sure.
@NolwennLeGuen wow
That's a good one.
user142019
But how is remove_if close to partition?
20:35
@NolwennLeGuen Wasn't there recently a question about an uncatchable ChuckNorrisException or something? :)
@Zoidberg Well, both in some sense separate the "good" elements from the "bad" elements.
user142019
Also, TILA: std::partition. It seems pretty badass.
@FredOverflow I must have missed it :)
user142019
@FredOverflow Ah of course.
@Zoidberg std::partition is specialized for bidirectional iterators and random access iterators. Pretty interesting stuff. STL talked about it once.
user142019
STL talked about it?
20:38
@Zoidberg In one of his lecture series.
user142019
Who is STL?
Stephan T. Lavavej
user142019
Standard Template Library in person?
user142019
Oh. :P
@Zoidberg That too.
20:38
@NolwennLeGuen: bulbapedia.bulbagarden.net/wiki/Ghost_(literal) "Even Master Balls fail to capture the ghost."
@MooingDuck Ghost is not a pokémon
> My real name is STL. I use my initials because they're short and don't suffer from a banana problem. Despite a certain happy coincidence, I was using my initials long before I ever heard of the Standard Template Library.
@NolwennLeGuen hmm, debatable
user142019
@FredOverflow During the last half hour in here I learned more than at school in a month.
> I know how to spell ‘banana’, but I don't know when to stop
what
20:39
Okay, so you learned one algorithm and one person? :)
user142019
@NolwennLeGuen That's brilliant.
@NolwennLeGuen Little children often say "bana" or "bananana" or something.
user142019
@FredOverflow yup xD
@FredOverflow You learned about adjacent_difference :D
20:40
@FredOverflow Ok I've tried but I don't get AT ALL how in sweet tits you can explain remove_if with that.
@FredOverflow I suddenly have the picture of someone helplessly trying to stop spelling "banana"
user142019
Well, I know a few more algorithms exist in <algorithm> now since I went through the C++ Reference page of the algorithms library.
@AndreiTita The same way Scott Meyers does in Effective STL. Pretty sure his diagram looks almost identical. The arrows are assignments. The "good" elements (here the even ones) are assigned to the slots, left one first.
Hmm... I read that chart item as 'ONE WEEKEND MESSING WITH GIRL'
@NolwennLeGuen I read that as "stop peeling banana".
@MartinJames Do you have a Perlfriend lol
20:42
Future-proof GNU code: ideone.com/CKt5pV
@FredOverflow Ah it removes odd elements. I thought it was removing only one.
@AndreiTita You can use find_if with erase for that.
Ofc.
It was my failure, not yours :)
user142019
The only algorithms from <algorithm> I've ever used are std::for_each and std::swap.
remove_if must be my favorite algorithm, because not using it usually results in less-than optimal and very hard to understand code.
@Zoidberg Nowadays I prefer std::iter_swap(&a, &b) over std::swap(a, b) because that gives me the using std::swap; for free.
user142019
20:44
Damn <algorithm> is handy.
user142019
I didn't know about std::all_of and friends.
user142019
I always used a Boolean with a for loop. T_T
@Zoidberg C++11
user142019
@FredOverflow I basically started C++ with C++11. :)
user142019
I have never touched C++03.
20:45
std::all_of ? neither do I...
LINQ master race is superior.
user142019
LINQ for C++.
14
Q: Is there anything like "std::and" or "std::or"?

ereOnGiven a container of boolean values (An example is std::vector<bool>), is there a standard function that returns true if all the values are true ("and") or true if at least one value is true ("or"), with short circuit evalutation ? I digged trough www.cplusplus.com this morning but couldn'...

user142019
Haskell has all and any.
@Zoidberg @FredOverflow thanx for the highlight
20:47
@Mysticial Oh, I just noticed -- congratulations on 3rd place.
user142019
I once implemented those in CoffeeScript in my ø library.
user142019
ø.all = (f, xs) -> ø.comp(ø.land, ø.curry(ø.map, f))(xs)
ø.any = (f, xs) -> ø.comp(ø.lor, ø.curry(ø.map, f))(xs)
@StephaneRolland What highlight? Informing you of std::all_of?
user142019
I also implemented list or, which returns true if any element of the list is true:
user142019
20:47
ø.lor = (xs) -> not ø.null(ø.filter(ø.id, xs))
user142019
Problem is that is iterates the entire list even though that's not needed; CoffeeScript isn't lazy. :P
@JerryCoffin Oh that. Thanks! Though it's only matter of time before @Luchian overruns both of us.
allOf = foldr and True or something :)
@NolwennLeGuen That's redundant
@Mysticial Yeah, almost certainly.
20:49
@Borgleader Nothing is redundant when it comes to uncontested supremacy
user142019
@FredOverflow I did that as ø.all = (f, xs) -> ø.comp(ø.land, ø(ø.map, f))(xs) where ø(f, x) means partial application. :P
user142019
(And ø.comp is function composition.)
@FredOverflow that's the reason why I love hanging around here and SO. Lots of information from you about use of things I still don't know.
user142019
I do have ø.foldr, though.
20:50
353
Q: Uncatchable ChuckNorrisException

Max CharasIs it possible to construct a snippet of code in Java that would make a hypothetical java.lang.ChuckNorrisException uncatchable? Thoughts that came to mind are using for example interceptors or aspect-oriented programming.

@EtiennedeMartel Poor stone-age primitives -- stuck watching a CRT TV.
@JerryCoffin It's actually a family photo of Etienne.
Etienne is the blue or the red ?
@NolwennLeGuen Tu connais pas La Bande à Ovide?
20:52
@FredOverflow And this doesn't get closed!
@EtiennedeMartel Non mais je sens que je vais pas tarder
@NolwennLeGuen At least it's protected :)
@NolwennLeGuen I know better -- Etienne is a purple dinosaur. [Okay, I'll admit: that was a low blow].
user142019
It seems I have a song in my iTunes library named Prolog auf Erden. Is that an ancient version of Prolog?
@NolwennLeGuen D'un autre côté, c'est Belgo-Québécois. Juste assez pas Français pour être inconnu en France.
20:53
@Mysticial Oh boy, that's a fight :)
> belgo-québécois
WHY WOULD YOU DO THIS
@JerryCoffin Etienne's a drunkosaur.
@EtiennedeMartel et @NolwennLeGuen la Belgique et le Quebec réunit, ça fait deux frois plus gros que la population de paris et sa région non ?
@EtiennedeMartel thatsthejoke.jpg
inb4 "actually no, that's Barney.jpg"
Ba dum tish
@StephaneRolland aucune idée, mais si c'est le cas, ça fait beaucoup de cons !
20:56
@NolwennLeGuen Do what?
@EtiennedeMartel I thought you were the one who claimed he didn't "get" cultural references (though calling Barney "culture" is certainly a stretch).
@JerryCoffin My culture is wide but shallow, i.e. I know many things but usually by name only.
@NolwennLeGuen ah désolé j'ai beaucoup de tendresse pour les quelques belges et quebecois que je connais.
@StephaneRolland Personnellement, je trouve les Belges très imbus d'eux mêmes. Ça doit être leur côté Français.
J'aime beaucoup les liégeois
20:58
(Disclaimer: cette observation est faite avec un échantillon de 1)
That Doom3 review got me thinking kotaku.com/5975610/…
@EtiennedeMartel I'd love to star this but sadly noone would get it
Most of the template code we have is bullshit.
@EtiennedeMartel Oh well who cares
I can redo it in english
user142019
20:58
I need to do networking in Haskell. Bear with me.
@StephaneRolland Je sais, je plaisante :(
Is it normal to lie on your bed and cry because you can't solve a simple prolog problem?
I haven't spent time with it, but it certainly looks good.
I know only one Belgian guy. He says that in Montreal, beer and fries are crap.
What I wonder is if there are stl alternatives.
20:59
@NolwennLeGuen No.

« first day (821 days earlier)      last day (4351 days later) »