« first day (831 days earlier)      last day (4135 days later) » 

11:00 PM
@MooingDuck looks like a fan I'd be unplugging right before I go in and see how hot I don't care it's getting since I refuse to listen to that
 
user142019
@MooingDuck lol cool
 
awwwww, those cats are cute
Did I say "cool"? I said "cute".
0
Q: immutable item got from vector[]

LouisTanI have a question regarding vector [] operator in C++. vector<stack<T>> myStack; ops.. . ... This Code does not modify mystackVec. stack<T>temp = myStackVec.at(stackPos); cout << "removing " << temp.top() << endl; This code does modify myStackVec...

lol
 
@MooingDuck I prefer the fans on that: en.wikipedia.org/wiki/Mil_Mi-26
 
So, I still can't connect, apparently there's missing packages or something
 
11:08 PM
@CatPlusPlus sticky?
 
@Zoidberg Added
 
user142019
Dankeschon.
 
user142019
I'll join next week when this school shit is done.
 
@CatPlusPlus I have a 32bit OS still :( We'll see how well my computer handles that stuff.
 
very basic but how do out put 1 2, 1 3, 1 4 then 2 1, 2 2, 2 3, 2 4 from a on dimensional array containing 1 2 3 4 ?
 
11:10 PM
nested loop, print every different pair
 
By asking on StackOverflow, though that'd get downvoted (rightfully so)
 
Can you show us the array declaration at least?
 
ok I don't need 2 2 and it could start at 2 3 or any where as long as it does each permutation
 
is it just int array[] = {1,2,3,4};?
 
yeah
 
11:11 PM
Why do you have an array in the first place? Just loop from 1 to 4.
 
I just want to match each element to each element
 
what?
 
for (int a : array) for (int b : array) if (a != b) std::cout << a << b << '\n';
 
he had 2 2 so I think he wants them to match too
 
Wait, do you want 2 1 or not?
2 mins ago, by sabgenton
ok I don't need 2 2 and it could start at 2 3 or any where as long as it does each permutation
 
11:13 PM
lol
 
The spec is still a bit unclear. What if there are duplicates in the array?
 
@MooingDuck that doesn't work like he wants it to
 
I don't think he wants permutations, he wants all possible pairs.
 
@Rapptz sure?
 
11:14 PM
yes I'm pretty sure
 
oh, yeah, I don't know what I was thinking
it looks like a double-for-loop
 
It's not like 1 2 was a permutation of 1 2 3 4 :)
 
(for a sec, I forgot what next_permutation does)
 
next_permutation is lovely.
 
Wait, next_permutation gives you the next permutation? That's crazy! What were they smoking?
 
11:15 PM
does that mean prev_permutation gives the previous one?
 
The would be insane! I think it means "prevent permutation". But if you call it a second time, it means "prevail permutation".
 
user142019
lol
 
lol
 
user142019
pres_permutation yields the present permutation!
 
@FredOverflow specificially, I momentarily forgot what a permutation was
 
user142019
11:17 PM
It's even O(1)!
 
@MooingDuck it's a lexicographical permutation.
 
@Rapptz momentarily
 
it was a moment a while ago too. :)
 
user142019
 
user142019
My Facebook cover is wonderful.
 
11:19 PM
Ergh, Haskell.
 
JPG, I can see the artifacts
awful
 
user142019
That's because Facebook sucks.
 
user142019
My desktop wallpaper is the same except PNG and it looks much better.
 
@FredOverflow yeah I want 2 1 I just mean if some how 2 1 was at the end that would be ok
@FredOverflow could you fix codepad.org/ynkYbwc5
sorry I haven't done for 's that way before
 
@sabgenton Bad approach, I think.
You're asking him "Do my work for me".
 
11:22 PM
sorry
 
user142019
Oh my God.
 
@sabgenton wait, you're using C? Not C++? Don't you think that would have been important for us to know?
 
@MooingDuck Yeah, a C compiler would choke on C++11 code.
 
lol woop no will change
 
user142019
lol <iostream> and std::cout and range-based for in C.
3
 
11:23 PM
to C++
 
user142019
@sabgenton Use stacked-crooked.com which actually supports C++11.
 
user142019
Node codepad.org.
 
I'm not sure it'll compile, unless codepad uses a recent compiler.
 
user142019
@EtiennedeMartel codepad explicitly passes -std=c++98 to GCC.
 
11:24 PM
#include <stdlib.h>
int main() { printf("the unholy power of poop"); return 0; }
 
@Crowz Stop.
 
lol printf
I like printf :(
 
user142019
I like printf too.
 
user142019
It's short and good.
 
I would approve of a type-safe printf.
 
user142019
11:26 PM
It's type-safe enough for me because compiler warnings.
 
@MooingDuck Make your own?
 
@Rapptz just started :D
 
Ell
Doesn't c++11 have typesafe printf?
 
@Ell Not that I know of.
 
Ell
11:27 PM
What is the "f" suffix for anyway?
 
format
 
Ell
Oh right
 
@Ell No
 
@Rapptz yeah, that
 
@MooingDuck Boost.Format, FastFormat
 
11:28 PM
@CatPlusPlus those too
 
user142019
I don't want type-safe printf in C++.
 
Ell
Ugh I have a long night ahead of me. 12 pages of chemistry mechanisms to draw :'(
 
user142019
Because I don't want C++.
 
user142019
I want a decent language.
 
?_?
No one's forcing you to use C++ though.
 
Ell
11:30 PM
C++ is awesome
Just wish it had a library as extensive and easy to use as .net (queue someone suggesting Qt)
 
Why would anyone suggest Qt
 
Ell
Because its big :P
 
@Zoidberg Why didn't you post that instead?
 
user142019
@FredOverflow would require upload. Sec.
 
user142019
11:33 PM
 
user142019
Here is full quality. Don't look at the domain name, please. I just got it from Google Images, okay?
4
 
lol
 
@Zoidberg Do they automatically convert to jpg?
 
Large images yes
 
Ell
You know, I'm gonna take a second and thank @stackedcrooked for such a wonderful service he provides us with. Thank You!
8
 
user142019
11:35 PM
lol
 
user142019
I'll have to write a parser in Haskell. \o/
 
@FredOverflow is there a way to do it in C++03 I don't strictly need to negate 2 2, 3 3 etc
I haven't learn't C++11
 
@Zoidberg how nice that the only place you can find a haskell wallpaper is from "themenwhostareatgoat.se"
 
user142019
:P
 
user142019
It's the only nice Haskell wallpaper I could find.
 
11:38 PM
@Rapptz who are those guys?
 
I don't know.
 
and why do they do it? (the stare)
 
user142019
And it was PNG.
 
@JohanLarsson "The title refers to attempts to kill goats by staring at them."
 
ok ty
 
11:41 PM
@sabgenton Of course there is, have you never looped through an array before?
 
@Ell I mentioned earlier how Coliru is cool because it's basically made for us.
 
for (int i = 0; i < 4; ++i)
{
    int a = array[i];
    for (int k = 0; k < 4; ++k)
    {
        int b = array[k];
        if (a != b) std::cout << a << b << '\n';
    }
}
 
@FredOverflow Would you be surprised?
 
@FredOverflow I wouldn't. He's clearly new to programming
 
Ell
11:43 PM
Isn't writing parsers in Haskell supposed to be easy? I remember seeing almost exactly ebnf syntax and parsing straight away, then again I don't know what I'm talking about
 
@Ell Writing parsers is easy as long as you don't require error recovery.
 
I don't loop arrays. I unroll them. :P
 
I think the library is called "Parsec" or something.
 
@FredOverflow Is it really that big?
:)
 
@Mysticial The compiler would optimise it@@
 
11:45 PM
That's an angle or something, isn't it? :) Oh wait, it's a distance. 10^16 meters, wow.
 
@FredOverflow If the library you're working on needs 10^16 meters of code, you're probably doing something wrong.
3
 
I'd be surprised if it used more than a thousand lines of code.
 
@FredOverflow thanks very much
 
@FredOverflow A thousand is hard to get under. I can easily go over 1000 in a single file if I forgot to split it after a while.
 
But it's a Haskell library. One line of Haskell equals 100 lines of Java in expressiveness.
 
11:48 PM
@Mysticial You write too much
 
Nov 1 '11 at 20:30, by FredOverflow
> You can eat a one pound steak, or you can eat 100 pounds of shoe leather, and you feel a greater sense of accomplishment after the shoe leather, but you know, maybe there are some downsides.
 
@FredOverflow So you saying that Haskell == 100*Java?
That would mean that Haskell sucks 100x more than Java.
 
@Mysticial I talked about expressiveness, not suckiness.
 
In other words 1 line of Haskell can express the same amount of suckyness as 100 lines of Java.
Damn... that's concise.
 
user142019
Is it possible to do newIORef =<< getCurrentDirectory without =<< or >>= or do-notation?
 
user142019
11:52 PM
IO is an instance of Functor (obviously).
 
thought I got pinged
 
Huh? What is this event about?
 
lame puns
 
@Rapptz there's an event starting
 
@MooingDuck yeah I know
 
11:54 PM
Lame Pun Friday? Here in the C++ chatroom, I must say that notification had me chuffed to bits
 
Everyday is lame pun day in the lounge.
3
 
What event is this?
 
@DemCodeLines Haven't seen you in awhile.
 
@CCInc Long time no see!!!
 
Have you taken up PHP?
 
user142019
11:55 PM
Eww PHP.
 
Yeah
 
user142019
PHP is almost as bad as Java.
 
user142019
Don't use it.
 
I agree
 
user142019
Me too.
 
11:56 PM
@Zoidberg You bad troll. We all now PHP is much worse than Java.
 
user142019
It's not.
 
user142019
PHP > Java.
 
user142019
user image
2
 
You need PHP to get server functionalities going.
 
user142019
You don't, you fool.
 
11:57 PM
PLus its the most simplest language in terms of dealing with servers
 
user142019
It's not.
 
(bletch)
 
user142019
It's merely a pain and is not simple at all.
 
@Zoidberg woo C++ is positively awesome! :p
 
No debugger shudders
 
user142019
11:58 PM
CoffeeScript, Python and Ruby are all by far superior to PHP when it comes to "dealing with servers".
 
@Zoidberg Where the fuck does that come from?
 
user142019
@EtiennedeMartel I made it out of boredom.
 
why does it seem like all the haskell code examples everywhere are some kind of library?
 
@DemCodeLines Define "server".
 
user142019
It comes from my hard drive.
 
11:58 PM
@Zoidberg Oh, right. It's so unbiased.
 
user142019
It's not.
 
This room is actually the only place where I've seen people use Haskell.
 
@JerryCoffin ...as long as FredOverflow is around ;)
 
user142019
/r/haskell. :P
 
@Zoidberg what is the unit of awesomeness?
 
11:59 PM
@JohanLarsson asn
 

« first day (831 days earlier)      last day (4135 days later) »