« first day (948 days earlier)      last day (4001 days later) » 

12:01 PM
Whoah.
Its amazing what happens these days
 
user142019
TL;DR
 
Xeo
Humanity's fucked up, old news.
Next.
 
@GamesBrainiac You mean people appealing to emotion to pass laws?
 
Ell
@rightfold girl was raped & bullied & killed herself then the school & people got a cyber-bullying/"abuse of computer systems" bill to somewhere
 
@R.MartinhoFernandes Yea.
I mean, there are already laws in place to fix these kinds of problems.
 
user142019
12:09 PM
@Ell oh.
 
user142019
/care
 
user142019
That shit happens weekly.
 
Ell
@rightfold do you know opengl? or 3d graphics?
And yah.
 
user142019
I know how to use OpenGL to clear the screen.
 
user142019
And that's about it.
 
12:10 PM
@rightfold Oh, since it happens all the time, who cares?
 
user142019
Clearly not me.
 
Ell
I think people use different definitions of care
Is "caring" when you act on what you feel?
Or is caring just the feeling?
E.g. If you didn't do something because you thought you should care even if you didn't, is that caring?
 
crap
 
user142019
For me, "I don't care" means "it doesn't affect me to why would I bother."
 
12:14 PM
I care about you, but I'd still let you step in front of a bus <3
 
Ell
I can't explain myself :p
 
I do care about things like this. I mean, loads of bad things are happening to people. And one this about that story, how come the parents could not do anything to the guy?
That makes no sense.
 
wait, what are we talking about, what happened to whom, and who does or doesn't care?
 
rightfold doesn't care about the content of the image Games posted
14 mins ago, by Games Brainiac
http://imgur.com/gallery/LaV8n
this ^
 
@melak47 Rape victims kill themselves every week and that doesn't affect Zoidberg, so he doesn't care.
 
Ell
12:17 PM
 
Zoidberg has a cattitude
 
Ell
as in, a clone or whatever
 
@Ell Blasphemy!
 
I just think he has a lot of homework to finished, and he's screwed right now.
 
Ell
Meh not clone. It looks very inspired
 
12:18 PM
it should. it's made by the same people as TA
 
user142019
My homework is almost done.
 
Ell
@melak47 Cavedog studios? :P
 
@Ell ..well, not exactly :p
 
Ell
I remember the intro still
What began as conflict between ... consciousness... flesh and machine :p
Meh. I can't remember xD
Ravaged a million worlds :L
 
user142019
@Ell I read that as "closure… finite state machine".
 
12:22 PM
@Ell Cavedog was a division of Humongous Entertainment...and PA is is being developed by Uber Entertainment :p
 
Ell
I don't understand why people fund things on kickstarter o.O
 
but some of the same people that worked on Total Annihilation, as well as Supreme Commander are working on PA
@Ell the only thing I funded was PA :p
 
@Ell What's so hard to understand?
 
Ell
well what do you get out of it?
 
People donate money to things they like/care about all the time.
@Ell That is what you don't understand?
People give money without getting nothing in return all the time. And this isn't even one of those cases.
 
Xeo
12:24 PM
@Ell How about... the thing that's being kickstarted getting finished?
My bad
 
so what the hell does it mean when they say "a list can be mapped over"? In relation to Haskell's Functor type
 
Hmm, some devs want to try out git on a smaller scale first.
 
@TonyTheLion that you can write map(list, function)? Dunno.
 
Xeo
@TonyTheLion fmap f xs
 
@Xeo and I have no idea what fmap actually does :/
 
Ell
12:27 PM
Isn't mapping when you replace each item with the return value of a function called with each item
 
Xeo
@TonyTheLion For lists, it's map which is transform in C++
 
wait, is f a function?
 
Xeo
Just pure
ya
 
Transform!
 
Hello
 
12:28 PM
Exchange stds!
 
ah so it maps f over the list xs, ie calls f(x) for every x in xs?
 
@TonyTheLion It means you can map the structure of a list onto a function.
 
Xeo
ya
 
I am becoming more and more afraid of C++.
 
@Ell in this cases...the game gets made, and you get it.
 
Ell
12:28 PM
[1, 2, 3].map{|i| i*3} = [3, 6, 9] this is ruby :3
@BartekBanachewicz Why? :P
 
@BartekBanachewicz no need to be afraid.
it won't bite
 
std::for_each(std::vector<insert C++14 class deduction>{1, 2, 3}, [](T& i) { i+=3; });
 
C++ makes you feel positive.
 
or what is the lamdba template syntax anyway?
 
Xeo
@Ell map (*3) [1,2,3]
I love sections.
 
12:30 PM
it was weird IIRC
 
user142019
@Ell map (*3) [1..3]
 
Xeo
@rightfold Meh, saving a character :P
 
@BartekBanachewicz template lambdas... eeeek
 
user142019
Oh, you want me to save more than only one character?
 
Xeo
@BartekBanachewicz [](auto& i){ ... }
or []<class T>(T& i){ ... }
 
user142019
12:30 PM
map(*3)[1..3]
 
Ell
(1..3).map{|i| i*3} is the shortest in ruby I think :L
 
std::for_each({1, 2, 3}, [](auto& i) { i+=3; });
 
Xeo
@rightfold [3,6,9] -- it's pure, just write the result
 
class Functor f where
    fmap :: (a -> b) -> f a -> f b
hmmmm
 
Ell
Time to get opengl camera movement sort of working!
 
12:31 PM
I forgot I can leave {1,2,3} as plain std::initializer_list<int>
 
user142019
@Xeo :D
 
@Ell oooooh. shiny.
 
@BartekBanachewicz Is that C++14?
 
so it transforms a to b, by calling f on a and then on b ?
 
Xeo
@TonyTheLion instance Functor [] where; fmap = map;
 
12:31 PM
@Tuntuni yeah.
 
@TonyTheLion I prefer to keep the redundant parentheses at the end (a -> b) -> (f a -> f b)
 
Xeo
@TonyTheLion Nono
f there is the functor type / class
 
oh :(
 
@BartekBanachewicz :o, so we will be able to just pass a container instead of two iters? is that a new overload or a new feature of c++14?
 
Xeo
For lists:
 
user142019
12:32 PM
instance Functor Maybe where
    fmap _ Nothing  = Nothing
    fmap f (Just x) = Just (f x)
 
@Tuntuni no, it's been there since ever, and it's called a range. But anyway, I am not sure if what I wrote will work. Probably not.
 
confuzzled I am
 
@BartekBanachewicz Erm, no?
 
Xeo
instance Functor [] where
  fmap :: (a -> b) -> ([a] -> [b])
  fmap = map
 
@BartekBanachewicz UnaryFunction for_each( InputIt first, InputIt last, UnaryFunction f );
Takes two iters
not a container
 
12:33 PM
UnaryFunction :/
 
@BartekBanachewicz I see. :D
 
user142019
@Xeo parens around [a] -> [b] aren't needed but yeah. :P
 
well fuck std then
 
@Xeo huh?
 
Xeo
1 min ago, by R. Martinho Fernandes
@TonyTheLion I prefer to keep the redundant parentheses at the end (a -> b) -> (f a -> f b)
 
12:34 PM
@BartekBanachewicz Yeah, the arg is the element.
 
so it calls f on a and b
 
@Tuntuni bajtek::range_for_each({1,2,3}, [](auto& i){ i += 3;});
 
Xeo
@TonyTheLion f in class Functor f is a type
That's the important thing
 
@BartekBanachewicz Haha. Wrapper, yo #YOLO #SWAG
 
12:34 PM
I don't think I understand type classes then
 
because fuck iterators.
 
because that's weire
@Tuntuni
 
a and b are types.
 
@Tuntuni you should check out Boost.Range
 
@TonyTheLion Well #YOLO.
LOL
 
user142019
12:35 PM
class Functor a where
    fmap :: (b -> c) -> a b -> a c
 
also, @R.MartinhoFernandes, how is Taussig going?
 
user142019
@TonyTheLion ^
 
Xeo
fmap :: (a -> b) -> f a -> f b -- general functor
fmap :: (a -> b) -> [a] -> [b] -- for lists
 
f a is like templates in C++: f<a>
 
Ell
Ooh sfml has a new logo
 
12:35 PM
@R.MartinhoFernandes lol wat.
@Ell slowpoke :)
 
Ell
Haha
 
@Ell Yeah, the site has a new design too. I like it
 
Xeo
@BartekBanachewicz For type classes
 
@Xeo are there nontype classes? -.^
 
Ell
I wonder if SFML supports gl's debugging thing
 
12:36 PM
@rightfold so it's like a conversion of type a to type b?
 
@Ell which part of sfml?
 
Xeo
@TonyTheLion nope
 
Graphics? Graphics is shitty as fuck.
 
Ell
@BartekBanachewicz The context creation
 
12:36 PM
@BartekBanachewicz l0l. why is that? :P
 
blargh
 
user142019
@TonyTheLion a b is a<b> in C++.
 
Ell
Oh. Best be fixing it then :P
 
Xeo
(a -> b) is a function from a to b (types). [a] is a list of type a, and likewise [b] is a list of type b
 
@Ell do you mean KHR_DEBUG extension and/or debug context?
 
12:36 PM
@rightfold so b is also a type, so a is a meta type?
 
@Tuntuni because it doesn't preserve OGL state when drawing.
 
Xeo
So fmap :: (a -> b) -> ([a] -> [b]) takes a function from a -> b, and returns a function from [a] -> [b]
 
user142019
typename<Functor f /* concepts! */, typename a, typename b>
f<b> fmap(std::function<b(a)>, f<a>);
 
@TonyTheLion It's called a type constructor.
 
Xeo
Or, it takes a function from a -> b and a list [a] and returns a list [b]
 
12:37 PM
@Tuntuni also SFML Sprite class is a fucking joke
 
@BartekBanachewicz o wat. so you only use the window part or do you also use it load music/images/etc.?
 
Ell
@BartekBanachewicz I mean void glDebugMessageCallback :P
Whichever extension that is
 
@rightfold Ugh, std::function. You suck.
 
@Tuntuni I only use Window and Input
 
user142019
@R.MartinhoFernandes I need to show the type signature.
 
12:38 PM
@rightfold And?
 
@BartekBanachewicz Aha.
 
Xeo
@rightfold s/(c)/(a)/
 
@Ell which is only accessible on debug contexts, IIRC. To be honest, I've never used them; I prefer gDebugger
 
Lemme quote your code: /* concepts! */
 
huh
that's confusing beyond belief
 
user142019
12:38 PM
@R.MartinhoFernandes How can you do that without std::function? Function pointers?
 
or I'm stupid :/
 
Ell
@BartekBanachewicz Ahh right. I'll figure it out some other time, it's not on the top of my list
 
user142019
Or both!
 
@Tuntuni I also use my own SFML fork compiled into my code
because SFML is using CMake and I can't be bothered to use CMake
 
SFML - Seriously, Fuck My Life
 
12:39 PM
@BartekBanachewicz Oh ya, I remember you telling me that. :)
 
so I wrote my own SConscript for SFML
 
@BartekBanachewicz Why not? I like it.
Quite easy to use and setup.
 
Xeo
template<class A, class B, Callable<B(A)> Call>
F<B> fmap(Call call, F<A> fa){ F<B> fb; for(auto&& a : fa){ fb.push(call(a)) } return fb; }
 
Click and there's your makefile.
 
Xeo
Let's see if that helps :P
 
12:40 PM
@Tuntuni I don't like the idea of generating projects. It's good for one-time builds, but the generated .sln and .vcproj files are simply useless beyond that. Scons is full-feated every time on every platform
 
@BartekBanachewicz You can also generate nmake makefiles.
Or w/e they're called.
 
@Tuntuni that's irrelevant. I don't want a makefile which generates a makefile. I want something that builds my stuff
 
Is it normal to think while you type?
 
And scons proved to be damn easy to use, and it just works everywhere.
 
@BartekBanachewicz No I meant that you can generate a makefile with CMake. Then you just use that makefile to build SFML.
CMake builds what builds your stuff.
 
12:42 PM
45 secs ago, by Bartek Banachewicz
@Tuntuni that's irrelevant. I don't want a makefile which generates a makefile. I want something that builds my stuff
I don't know how to say it clearer.
 
Well it does build your stuff on the end. :D
Just not right away.
 
and that's the problem
 
heh :p
 
it's an added complication which can be easily avoided.
I want all my projects on every platform to be able to just download and type $ scons
and it's getting to that point slowly.
I was also experimenting with generating sconscripts from QTcreator, but I think I will need my own fork for that.
 
ah
have you tried the qt visual studio add-in?
 
12:45 PM
not yet.
I've installed it yesterday.
 
@Xeo Holy what the crap?!!!
 
but eventually made the project with MFC.
 
lol
 
Xeo
@TonyTheLion Pseudo-syntax with concepts n shit
 
You have a function that operates on "simple" types (like `Int -> String` ~ `a -> b`). And you have a complex generic data structure (like `[]` ~ `f`, which can make `[Int]` ~ `f a` or `[String]` ~ `f b`). `fmap` takes that simple function and turns it into a function that operates on the complex generic data structure. A crucial point is that this resulting function does that by messing only with the data, but maintaining the structure.
So `fmap` for lists produces a function transforms all the data (the elements) as the original function would, but preserves the structure of the ordered l
@TonyTheLion :|
 
12:47 PM
@R.MartinhoFernandes oh I see, interesting
soon I'll understand Monads too
haha
@Xeo you assume that I understand concepts
 
Xeo
@TonyTheLion Think of Callable<B(A)> as a placeholder for any specific B foo_fun(A a)
 
right
9 mins ago, by Xeo
template<class A, class B, Callable<B(A)> Call>
F<B> fmap(Call call, F<A> fa){ F<B> fb; for(auto&& a : fa){ fb.push(call(a)) } return fb; }
not quite sure how you can iterate over fa ?
 
Xeo
I should've done that snippet specifically for std::vector
Imagine template<class T> using F = std::vector<T>; :D
and s/push/push_back/
 
8
Q: iter_swap() versus swap() -- what's the difference?

MehrdadMSDN says: swap should be used in preference to iter_swap, which was included in the C++ Standard for backward compatibility. But comp.std.c++ says: Most STL algorithms operate on iterator ranges. It therefore makes sense to use iter_swap when swapping elements within those ranges, si...

 
12:53 PM
@TonyTheLion That will never compile...
 
I know, that's why I want your help
 
Ell
@BartekBanachewicz gDebugger isn't working for me :(
 
@TonyTheLion No, forget it. If you want to understand this, do it with GHC.
C++ is terrible.
 
Good morning.
 
soup
 
12:58 PM
@R.MartinhoFernandes oh I see. Gotta do it at home then, don't have GHC on here
 
kitchen
 
knife
 

« first day (948 days earlier)      last day (4001 days later) »