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

8:01 PM
damn I've just found Data.Map.adjust /@Xeo
 
Xeo
lol
 
seriously screw their naming
 
Xeo
Context would've helped :P
 
@Xeo shhuush :)
 
Xeo
Hm, kinda surprised there's no a -> (a -> Bool) -> Either a a function
 
8:02 PM
is that some sort of alternative?
 
Xeo
huh, no
 
so what's that supposed to do?
 
Normal copy constructors can work with what is a suitable use case for an rvalue reference, correct?
 
Xeo
ya
 
user1804599
Hmm. readRequest s >>= cb >>= writeResponse s looks too nice to type check.
 
Xeo
8:05 PM
@BartekBanachewicz ... a c = if c a then Left a else Right a, transforming a condition to Left/Right partition
 
@Xeo aaaah
Also I've been just explaining Data.Map to my GF
 
Xeo
Although it should be Right a on a positive condition
 
Xeo
@BartekBanachewicz Phonebook, look up names, find phone numbers.
 
@Xeo ah right. I just made a list with a few names, called it students table, zipped with numbers and then adjusted a few of them after packing it in fromList
let hugify = ("huge " ++) is my personal favorite
 
8:09 PM
I think I made one of these with a normal copy constructor once :D
 
inb4 hugify "penis"
 
> void SetRotatedAABB(float angleRads);
 
@MohammadAliBaydoun what the fuck :D
aahahaaha
 
It makes no sense :<
 
8:09 PM
too bad too little people will get the joke
@MohammadAliBaydoun sure it doesn't
 
I'm fixing that LTBL system for SFML
 
Define LBTL.
 
Let There Be Light
 
SFML is FUBAR
 
Xeo
@MohammadAliBaydoun ... wat
That doesn't make it an AABB anymore....
 
8:11 PM
LITB
 
@Xeo That's what I thought :<
 
@MohammadAliBaydoun I see. Never used it. What needs to be fixed with it?
 
@Pawnguy7 Code repetition, style issues and redundancy in the context of C++11 in some areas
 
new MacBook Pro has Intel Iris Pro GPU
just sayin'
 
@BartekBanachewicz Fork it, fix it, profit? :D
What I have never understood.
Is why setSize only takes vector2f.
 
8:12 PM
Also, it uses new and delete and in fact requires that you do too.
 
@Pawnguy7 fork it is alright, just with a right accent
 
But setPosition takes that OR floats.
 
@MohammadAliBaydoun gimme s, gimme u, gimme c, .... suckage!
 
@MohammadAliBaydoun in that if you don't, you get UB?
 
2 mins ago, by Bartek Banachewicz
SFML is FUBAR
fuck incompetent C++ programmers and bad C++ libraries and that language
use Haskell.
 
Xeo
8:14 PM
right tools etc
 
Lua, Terra and Haskell
I don't think you need anything more.
 
@BartekBanachewicz Python :)
 
@BartekBanachewicz I'm probably going to be a much happier person when I forget SFML.Graphics. And a healthier person when I start using other languages ;_;
 
user406009
What is a good Haskell graphics library anyways?
 
@GamesBrainiac and which gap in that 3 does it fill?
@Lalaland There's HsGL binding, and that's all you need, I guess.
 
8:15 PM
So. Who's up for rewriting Box2D? ^_^
 
in what language?
(sorry I had to)
 
Filipino!
 
I might have a chance if I knew openGL, but alas that is not the case.
 
@Xeo how can I create my type concretization alias for Data.Map?
 
@BartekBanachewicz I haven't used Terra, so I could not tell. But you could make some pretty awesome scripts for tasks with Python.
 
Ell
8:17 PM
@BartekBanachewicz that sounds like a horrible mix :S giant state machine in a pure language :/
 
@GamesBrainiac Lua is a script language FYI
 
Xeo
@BartekBanachewicz Oh, that reminds me of your aliasing question
 
@Ell Also, I checked out VLC. It seems to be working, thanks.
 
Xeo
type X = A
type Y = A
-- X == Y == A
 
Xeo
8:17 PM
type is like typedef in C++
 
hmm data Map k a
type MyMap = Data.Map String String ?
 
Xeo
@BartekBanachewicz Your type what?
 
user1804599
@BartekBanachewicz Jawohl!
 
hmmm. That gin tonic had too little tonic in it.
 
Xeo
Fammit Robot.
 
8:19 PM
@Xeo concretize, vb to render concrete
 
I'm totally drunk but it was necrr part of the plan
nevr
 
necrofiliac?
 
fuck touxh screens
3
 
Speaking of SFML.
I still don't know why you cannot have static windows.
Granted, as they said, it was bad design, but still.
 
@Pawnguy7 why the fuck would you want to?
 
Xeo
8:20 PM
@R.MartinhoFernandes Get a Blackberry. :P
 
@BartekBanachewicz I had an affinity towards static things at that point in time :D
 
@Pawnguy7 terrible suckage
 
Hey, I fixed it :\
 
there! so don't concern yourself with it
that's like asking "how do I pass 2d array to function in C++"
 
Xeo
@GamesBrainiac btw, saw my reply wrt curry?
 
8:21 PM
(and by 2d array I of course mean T*)
 
@Xeo Oh shit, I thought you left me. Let me go back and look :P
 
Fair enough, but I seem to recall the reason was SFML has some sort of global variables.
 
1 min ago, by Bartek Banachewicz
@Pawnguy7 terrible suckage
I want a beer
darn it.
 
meh I can type mop re or less fine if socer
fuck
 
@Xeo Ahh, now this all makes sense. I humbly appreciate it Xeo! :D
 
8:23 PM
sorry I'll stop now
 
I love how he spelt "fuck" correctly
 
Xeo
@R.MartinhoFernandes You get drunk too easily, guy.
@GamesBrainiac np
 
this was easier than usual
 
@Xeo But it really was not all that different from my function, although in my function, I just took 3 arguments all together. If what I did was not currying, what did I exactly do?
 
@Pawnguy7 Remember the "entity" name problem we were having before?
 
Xeo
8:25 PM
@GamesBrainiac What function?
 
@MohammadAliBaydoun yours?
 
@Pawnguy7 I think I solved it. "solid" is a better name. And it works in the context of a physics engine
 
@Xeo
2 hours ago, by Games Brainiac
def fun(f, a, b):
    return f(a, b)

print fun(lambda x, y: x + y, 10, 20)
 
Or uniform_mass or something.
 
@GamesBrainiac that's prety much useless
or rather, you've made $ operator
 
8:26 PM
That's boobs
 
Xeo
@GamesBrainiac That's just a non-sensical convolution of 10 + 20
 
@Xeo Ahh arrite then :P
 
(.).(.)
I might be drink but I can still recognise boobs when I see them
 
let fun = ($)
(+) `fun` 10 20
@Xeo @GamesBrainiac ? ^
 
wait it's not
dann
 
Xeo
8:28 PM
@R.MartinhoFernandes No, apparently you can't.
 
@Pawnguy7 Maybe I was talking to Jefffrey ;_;
 
hmmm I could turn on my box and type o a anctual keyboadd
 
@MohammadAliBaydoun no, it was me
 
@Pawnguy7 Oh, cool <:
 
@MohammadAliBaydoun I don't know what you are talking about.
 
8:29 PM
@GamesBrainiac in haskell $ is used to change fixity
 
@Jefffrey I'm talking about ~stuff~
 
@MohammadAliBaydoun Where do you get your inspiration for game developing?
@BartekBanachewicz Apparently very hard to find.
 
@Jefffrey wat?
 
gonna go out and buy some junk food at the späti
 
Follow the arrow.
 
8:31 PM
@Jefffrey My inspiration is powered by the tears of 4-year old African children
 
Is Robot drunk?
 
Fuck.
 
Fuck.
 
Xeo
@TonyTheLion Obviously
 
@TonyTheLion Unexpectedly!
 
8:32 PM
I thought so
 
That's what I always say, isn't it?
Fuck.
 
Not that hard to achieve is it
 
mov :: Source -> Destination -> Machine -> Machine
 
lol
 
8:32 PM
it's evolving!
 
I went to teh pub to have one drink, chat a bit with the bartender lady adn then come back, still sober. Everything went according to plan, except for the last bit. Not my fault.
 
type Address = Int
data Source = Value Int | SrcMemory Address
data Destination = Register String | DestMemory Address
hmm
if I make both 2nd constructors named Memory, can I then construct them with, for example, Memory someAddress :: Source?
 
No overloading.
 
You can make a typec;ass to unify that. Maybe
Not Maybe.
Just "maybe".
 
8:36 PM
SrcRegister and DstRegister then
well it starts to make sense
 
@JerryCoffin I did!
hehe
 
def curry2(f):
    return lambda x: lambda y: lambda z: f(x, z)


def plus(a, b):
    return a + b

happy = curry2(plus)(10)

print happy(20)(50)
This is fun :P
 
user1804599
Dat pun.
 
@GamesBrainiac all functions in haskell are curried
 
what do you do with y?
 
8:40 PM
@MohammadAliBaydoun that could work. Making some sort of physics game?
 
@R.MartinhoFernandes Nothing! :D
 
Ell
@BartekBanachewicz if it's $, it's not useless right?
 
10 mins ago, by Bartek Banachewicz
@GamesBrainiac in haskell $ is used to change fixity
 
@R.MartinhoFernandes I just wanted to see how much I can mess with lambdas! :D
 
but python is too limited in that regard I think
 
8:40 PM
@BartekBanachewicz It's also a materialisation of function application.
 
@Pawnguy7 That's one way to put it <:
 
Useful for all the weird stuff you can do with exponentials in pointfree style.
 
map ($) is funny enough
 
@MohammadAliBaydoun what is another way to put it?
 
Exponentials be hard.
 
8:41 PM
@BartekBanachewicz Can't find much on gamedev.net
 
@BartekBanachewicz Don't think that would achieve much.
 
map (uncurry ($)), maybe?
 
@Pawnguy7 With a few lines of Lua code, it becomes a top-view RPG like the old versions of Final Fantasy
 
Xeo
@R.MartinhoFernandes zipWith ($)! :D
 
8:42 PM
Oh, right, exponentials use uncurry ($), not ($).
 
I wish Haskell had better IDEs.
 
ah right zipWith not map
 
A postifx operator for uncurry would be nice.
 
zipWith ($) [(+1), (+2), (+3)] [1..3]
 
Xeo
@R.MartinhoFernandes You can do postfix operators in GHC, right?
as an extension I mean
 
8:43 PM
@MohammadAliBaydoun Is Box2D used, or was that unrelated?
 
It's always on.
But yeah, it's an extension.
 
@Pawnguy7 Nah, I'm not using Box2D :P
 
@MohammadAliBaydoun Are you using LTBL?
 
I didn't like the design and the required memory management.
 
We used bar above in class to denote uncurried functions.
 
Xeo
8:43 PM
@BartekBanachewicz [ f x | f <- fs | x <- xs ]!
 
Wait, I think maybe.
 
@Xeo ($) <$> [(+1), (+2), (+3)] <*> [1..3] !
 
@BartekBanachewicz Is there a standard GUI library that comes with GHCI?
 
@Pawnguy7 I'm writing a better version of LTBL so I can use that
 
fuck I accidentally ate all of bread without synchronizing it with dumpling :\\\\\ (hello)
 
8:44 PM
@GamesBrainiac there's no "standard" for what comes with GHCI, really.
 
@BartekBanachewicz Those are the non-abstract articles you were talking about?
 
@Pawnguy7 I was able to remove his AABB class and change it with a POD and some generic free functions that operate on it
 
@Jefffrey at least some of them, yes
 
I wonder if combining marks are fair game as operators in Haskell.
 
@R.MartinhoFernandes what
please don't
 
8:45 PM
@BartekBanachewicz Erm I see. So say you wanted to make a simple GUI with Haskell, what would you use? With scala you can use swing, for python tkinter, whats there for haskell?
 
Xeo
@BartekBanachewicz Meh, Applicative can be obfuscating at times
 
ogonek a = ą
 
Xeo
There's a reason we have list comprehension and list functions in general
 
@Xeo I find it perfectly readable :|
 
8:45 PM
@BartekBanachewicz looks great.
 
@TonyTheLion lol :|
 
@MohammadAliBaydoun and this is in the same project as your networked level editor?
 
Well, it looks horrible in my browser, actually.
 
@Pawnguy7 Now I have to rewrite his QuadTree because it's not generic :|
 
8:45 PM
How the fuck did the macron end up above the l.
 
A lion hug
 
@Pawnguy7 Yes, but only because I don't want to open 2 solutions in MSVC
 
@TonyTheLion does it have a continuation?
 
Oh yeah. Späti.
 
8:46 PM
@Pawnguy7 As soon as the engine is complete, I'll happily segregate them :P
 
@BartoszKP lolwat
 
@TonyTheLion haha, you know, haha, wink wink
 
Hey can I ask somebody a question about where a question should be asked?
 
@BartoszKP Maybe it's just a lion skin. Like the fancy carpets..
 
8:47 PM
@StackedCrooked Hm, not sure what would be more perverted ;00
 
lions are jusy fancy carpets that can kill you
5
 
Thanks, I need to know if where I should this question: webmasters.stackexchange.com/questions/54347/…
I was told to ask at SO, but I don't think it's relevant.
 
@R.MartinhoFernandes instead of pub quizzes, you need to do a standup routine
 
@MohammadAliBaydoun aren't they separated now?
 
8:49 PM
I feel that I've hit combinatorial explosion of overloads
 
@Template why?
 
data Source = Value Int | SrcRegister String | SrcMemory Address
data Destination = DstRegister String | DstMemory Address

mov :: Source -> Destination -> Machine -> Machine
mov = ?
 
@BartekBanachewicz too lazy for design patterns eh? :P
 
great thank you
 
@Pawnguy7 If you mean there is no coupling, then yes
 
8:49 PM
@BartoszKP look up
 
@R.MartinhoFernandes you have by far the most starred quotes around here
 
chat, help me! I'm scared of exceptions because of slow stack unwinding so I don't want to use exceptions :'(
 
@Pawnguy7 They exist in the same solution however
 
you won't end up last in standup :-)
 
@BartekBanachewicz 3x2 , what an explosion :P
 
8:50 PM
yay I think I got myself a new profile pic
 
@BartekBanachewicz I wrote hello world in Haskell like 10 years ago and that's it ;0
 
@MohammadAliBaydoun I mean, they are separated now, and you said as soon as it is complete, you will differentiate them.
I.e. you are separating what is already separate.
 
@Abyx use the most common quotation: "premature optimization is the root of all evil"
 
@BartekBanachewicz your avatar pose looks just like mine
 
@StackedCrooked lel
there it is, dunno if I'll put it up on gravatar
 
8:52 PM
@Pawnguy7 By that, I mean the engine will be compiled in its own solution to a dll and the level editor will use that along with a fuckton of headers
I see less code that way ;_;
 
hmmm a friend of mine does stand up comedy.
I'll ask him if he thinks I have potential
 
@MohammadAliBaydoun is there a third thing that is the game itself, then?
 
@TonyTheLion :DDD ooooold :P, but good
 
@R.MartinhoFernandes of course, the material and funny talk is only half the job, you also need the timing and body language to go with it :-)
 
8:54 PM
@Pawnguy7 The game is actually a level file that the engine takes and runs for you
 
@BartoszKP These old ones are like porn. You just keep going back to it.
 
sounds like I have no chance then
 
@TonyTheLion :DDD
 
@Pawnguy7 It's composed of lua scripts, images, maps (pathmaps, tilemaps, etc...)
 
@BartekBanachewicz lol, what are you doing there? ;0
 
@BartoszKP I was fixing a broken microswitch in one of my guitar multiFX pedals, and I was cutting a piece of cardboard to act as a washer
 
@BartekBanachewicz I have a different profile picture for you!
 
@MohammadAliBaydoun I see. I'd be temped to try it, but I don't know Lua.
 
@Pawnguy7 it's easy to learn
 
@Pawnguy7 You can go from 0 to proficient in quite a short time
 
8:56 PM
I guess, but languages without strict types bug me.
 
@BartekBanachewicz complicated. was expecting something like "i was looking for my penis" ;000
 
Not sure how to get past it :\
 
@cat damn you cat!!! I've been watching through those soap box episodes!
 
@Pawnguy7 You can not give a fuck and be happy :D
 
@BartekBanachewicz are you in a band? have some links?
 
8:57 PM
@MohammadAliBaydoun Well, one time, with Javascript, I passed what should have been a char.
Except, of course, that is a string.
And apparently undefined can be implicitly casted to "undefined."
 
The good thing is that Lua has a small number of functions in the API
 
@EtiennedeMartel good one :D
 
Which, when you use individual letters to represent tiles in a map...
@MohammadAliBaydoun As opposed to?
 
@Pawnguy7 python, for one
@Pawnguy7 eh, it's good for things it's good for
 
@TemplateRex Anyway, thanks for the compliment(?) :)
I have more than enough to fill my free time, though.
 

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