« first day (1227 days earlier)      last day (3726 days later) » 

they would probably abort each other
with guns
 
user3010322
They'd abort their parents.
 
so I am listening to the music I listened to in high school
loads of fun
 
@BartekBanachewicz For me, that would be early 70's disco. I won't be time-travelling today!
 
@MartinJames I listen a lot to music from the seventies nowadays :v
well, more eighties really, but 70s got their vibe too
 
6:06 PM
@BartekBanachewicz I'm all vibed out on 70's. Whenever we have a 70's disco in the club function room, I go to the Vernon Arms instead.
 
user3010322
 
@MartinJames Disco is curable (with early detection).
 
user3010322
@JerryCoffin But disco is nice sometimes!
 
oh, another pearl (now without joking), White Owl!
but that's folk-ish
woo I found too
 
@JerryCoffin Yes - if I'm quick enough, and I've only had one or two pints, I can drive away to somewhere the disco is not.
 
6:07 PM
@ThePhD You clearly need some serious medical help.
6
 
user3010322
u.u But... but but...
 
user3010322
But groovy. ;~;
 
no butts
 Could not deduce (Control.Applicative.Applicative f)
   arising from a use of `blockInst'
 from the context (Contravariant f, Functor f)
hm. I know some of these words.
 
@Xeo ... which has been my approach to Lounge Haskell discussions for the past several years :)
 
and yet you suddenly popped out in one
 
6:10 PM
@BartekBanachewicz not really "suddenly"; I've been here all day, unlike you. but okay!
 
@LightnessRacesinOrbit you've said that like me not being here all day was a serious offense :D
 
I hate popups.
 
@BartekBanachewicz well, isn't it?!
 
user3010322
I love popdowns
 
your Lounge licence should be revoked!
 
I hate pushups.
 
@LightnessRacesinOrbit I'm not even an owner. Oh wait, you're neither.
 
stop sending blank messages
@BartekBanachewicz who said anything about owners?
 
user3010322
@LightnessRacesinOrbit Firing blanks avoids complications, like pregnancy.
 
6:13 PM
anyway I need lenses for different objects
so I guess makeFields should do
but fugly :F
 
@ThePhD lol
 
Xeo
@BartekBanachewicz TIL of makeFields
 
user3010322
Guess who's sick of plane intersections?
 
user3010322
THIS GUY. :D
 
Hehe - it's 'Software Revenge Day':) I've had no problems, but Anne is struggling to sort out the grossly fucked-up dominoes league scores. She's been at it with Excel for four hours, has 6 worksheets open and is making strangled, moaning noises. Bailey is hiding under the table:)
 
6:15 PM
@Xeo same here. So, hot or not? It looks like a neat way to save going trough new typeclass shebang
 
guess i'd better hit the hotel
HASHTAG LATERON
 
user3010322
Hotel?
 
user3010322
Are you traveling?
 
yeah - I'm a remote worker but I've been doing two office days each week lately
 
Xeo
@BartekBanachewicz tbh I don't quite see the problem
 
6:17 PM
@Xeo the problem it can possibly have or the problem it is solving?
 
Xeo
your problem with it
 
I have none. But it doesn't mean there is none.
 
Bartek knows the hotel, too. It's the hot-and-cold-taps one.
 
@LightnessRacesinOrbit aahahha
 
@LightnessRacesinOrbit LOL - I remember when that was a thing here.
That and the square showerheads:)
 
user3010322
6:29 PM
Ya'll have some weird living spaces. o.0
 
let mapInsts = blockInstance <$> [1..(snd mapSize)] <*> [1..(fst mapSize)]
         where blockInstance y x = Instance mesh pipeline (GL.Vertex2 (fromIntegral x / 10.0) (fromIntegral y / 10.0))
let blocks = map Block mapInsts
um
I think I kinda went too far with that
 
user3010322
Kinky.
 
user3010322
I don't understand a word of that, though.
 
user3010322
There's a lot of symbols and I can't really reason it through.
 
user3010322
I sort of understand [1..(fst mapSize)]
 
6:30 PM
@ThePhD <$> and <*> are just Applicative application
 
user3010322
But ther est
 
user3010322
@BartekBanachewicz I'll pretend like I understand what those mean by shaking my head yes. :D
 
it creates a table of Glisha instances
 
Xeo
there should only really be 2 unfamiliar operators, if anything
 
and then creates a table of Blocks from the table of those instances
 
Xeo
6:32 PM
@BartekBanachewicz sometimes I'm wondering whether to use those or liftA*
 
@Xeo meeeh :D
<$> for life
 
user3010322
@AlexM. Halp, they're doing weird haskell things here. ;~;
 
fear not
 
@ThePhD imagine arkanoid grid of blocks. They have positions ranging from 0..x 0..y. I am taking every possible combination of those and create a block
that gives me a rectangle of blocks.
well, a linear list, but you get the idea
 
user3010322
Sounds weird.
 
user3010322
6:37 PM
Is that all one line?
 
user3010322
Or rather, 2 lines?
 
well, yes?
 
user3010322
Is the newline the way to end a sequence of code?
 
I have here the ultimate weapon against weird haskell things
(defun stop-weird-haskell-things (things)
	(cond
		((not (NULL things))
			(progn
				(stop (car things))
				(stop-weird-haskell-things (cdr things))))
		(t
			(message "No more weird haskell things."))))
eat it all haskell things
 
@ThePhD usually yes
 
Xeo
6:38 PM
oh noes LISP-y things!
 
@ThePhD does it really? It's pretty much equivalent to two nested for loops
but when you imagine it, you can nearly see the numbers unrolling into array and then changing into blocks
 
Xeo
@AlexM. also, properly fold that code, please
@BartekBanachewicz do-notation might look better for your blocks stuff, btw
 
@Xeo hmm. I don't see it, can you show some pseudocode?
 
@Xeo I would gladly do it but due to my lack of knowledge, I can only build poorly made ultimate weapons against weird haskell things
 
your weapons are no match to ours, mwhahah.
 
6:41 PM
oh noes~
this won't be the last you hear of me!
 
user3010322
char*** ppptext = new char**[100];
 
hmm I can't traverse my block list for some reason
 
Xeo
 do y <- [1..snd mapSize]
    x <- [1..fst mapSize]
    return $ Instance ....
 
this looks way less intuitive for me :<
 
Xeo
dunno, I think it looks nicer
 
user3010322
6:42 PM
I like that notation, actually.
 
user3010322
Looks loopy
 
loops are for weaklings
 
Xeo
gets rid of the auxilliary 'blockInstance' too
 
Well let's get it drawing first
red green refactor, huh.
use (blocks.traversed.inst) >>= glishaDraw is not ok
 
Xeo
Oh yeah, and also the map Block part - why that?
 
user1804599
6:44 PM
LiveScript having sections is so awesome.
 
user1804599
@elements |> map (+ other) wee.
 
Xeo
just add Block before the Instance part
 
@Xeo I was trying to structure that a bit better, but yeah that ^
hmmm use results in monoidal value
not what i want
I don't see a way to perform a state view with a traversal :F
maybe I don't really want traversal
 
7:00 PM
damn it
 
hmm
does anyone know where I can get Google Talk?
fucking Google don't seem to offer it anymore and apparently you have to use Chrome to have Hangouts (which is shit anyway)
 
use chrome.
 
Chrome managed to eat up 1.2GB per tab on SE yesterday
seems to be fine now
it must have been some broken version
at that time Chrome ate up ~40% of my 8GB of RAM
I can only imagine the memory leaks happening behind the scenes
 
@DeadMG is it possible that gtalk is part of hangouts now? because the link on wikipedia (www.google.com/talk) leads straight to hangouts =/
 
@AlexM. it doesn't leak. It caches.
 
7:05 PM
seems to me like the same shit as G+/YT merger.
either you're in the Google ecosystem for everything or you don't exist anymore.
 
@BartekBanachewicz must have cached a lot of shit lol
 
instead I downloaded an executable from a totally dodgy website
 
@Xeo halp
a <- get
let b = _blocks a
let b1 = head b
let b1i = _blockInst b1
glishaDraw b1i
I can't change that to lenses. (except I want "for every" instead of head)
 
@DeadMG gl with your e-herpes
 
7:06 PM
for this chatroom to take 1.2GB of RAM...
 
thanks
we'll see how it goes
 
a <- get
let b = _blocks a
let bi = map _blockInst b
mapM_ glishaDraw bi
yeah well that draws all
the question still stands :/
 
user1804599
Is there a general word for what is either the row or column count of a matrix?
 
@BartekBanachewicz b, b1, b1i ... all clear :P
 
@Jefffrey that's the code I am trying to fix change :/
 
7:10 PM
@rightfold Extent or size usually in X dimension.
 
why hello you beautiful people
 
fuck I'm asking on SO
 
@Crowz Not willing to talk to me, hunh?
:-)
 
@JerryCoffin that second 'h' makes it sound like you are trying to grunt out a massive turd
 
alright oracle... these errors are not helpful: ORA-01722: invalid number. No line numbers or source of the problem. Just invalid number.
 
7:15 PM
@thecoshman Definitely not a beautiful picture...
 
Am I reading this right? A Java program with too many FPS? :P:P:P
0
Q: Fps too high for my game in Java

user3348085The other day I started with the project of creating a game but I'm stuck in this part The first time I get 120 fps and 6 ticks, but the second time I get 1531 fps and 60 ticks. What's the problem of the code? public void run() { long lastTime = System.nanoTime(); double unprocessed = ...

 
just add four more polygons and it'll go at 30 FPS
 
@Mysticial Yeah faults per second.
 
@JerryCoffin vOv not as bad as squirting one out
 
@Borgleader ahaha
 
7:17 PM
@Mysticial that's because he told the VM to stop running Crysis in the background
 
You have an infinite loop and you care about speed? — juanchopanza 44 mins ago
 
Xeo
@BartekBanachewicz dude, why all those lets?
first, one let can inteoduce multiple names
 
I think I'm in love
dat shirt man
 
@Jefffrey Why the star wars thing though o.o
 
0
Q: How can I use Lenses to perform read-only operation over a sequence held in some state?

Bartek BanachewiczMy data structure looks more or less like this (simplified data GameObject = GameObject { _num :: Int } data Game = Game { _objects :: [GameObject] } I use makeLenses to generate the accessors for both of those. Thus, I am able to do operations en masse like this: -- loop :: MonadState with G...

 
7:22 PM
@Borgleader to add awesomeness
 
user1804599
Okay. I’m going to work with matrices. :v
 
user3010322
Lol
 
user3010322
Got tired of the manual adding? :P
 
I wonder if someone will be able to answer that
or rather, I hope that the answer won't be "nope" :/
 
user3010322
@Xeo just submitted my assignment with the title ヨロ~
 
7:26 PM
I'm gonna make a programming language who's only data structures are matrixes
 
@ThePhD that looks like a string pulling a kite xD
@Jefffrey you mean matlab? :P
 
user3010322
@Borgleader It's yolooo -> "yorooo" transliterated in Japanese
 
user3010322
Also FUCK PLAAAAAAAAAAAAAAAAAAAAAAANES i'm going to the museum after eating some shit.
 
@ThePhD Why would you eat shit ? =/
 
@Jefffrey She actually looks terrible in that picture.
 
user3010322
7:28 PM
shit = general replacement for other nouns
 
user3010322
e.g. "I fixed that shit."
 
@Borgleader oh fuck... they stole my idea :<
 
user3010322
"I owned that shit."
 
user3010322
"I just passed that shit." (double entendre)
 
@DeadMG de gustibus
 
7:29 PM
wat.
 
De gustibus non est disputandum is a Latin maxim meaning "In matters of taste, there can be no disputes" (literally, "There is no disputing of tastes"). Sometimes the phrase is expanded as De gustibus et coloribus... referring to tastes and colors. The implication is that everyone's personal preferences are merely subjective opinions that cannot be "right" or "wrong", so they should never be argued about as if they were. This phrase is quoted by Mitya in Dostoyevsky's The Brothers Karamazov. The phrase is misquoted in Act I of Anton Chekhov's play The Seagull. The character Shamrayev con...
 
it's basically "that's like uh... your opinion man"
in latin
Carpe diem is an aphorism usually translated "seize the day", taken from a poem written in the Odes in 23 BC by the Latin poet Horace, Book 1, number 11. The aphorism became very popular when used in the movie Dead Poets Society. Translation Carpe is the second-person singular present active imperative of carpō, "pick or pluck," used by Ovid to mean "enjoy, seize, use, make use of". Diem means "day". A more literal translation of "Carpe diem" would thus be "enjoy the day" or "pluck the day [as it is ripe]". History Source Original usage from Odes , in Latin and English: {| border="...
yolo in latin
4
 
hmpfh
maybe I can use "regular" state functions somehow
 
7:45 PM
bah. Anyone decent at sql?
 
nope
nobody, ever, has been decent at SQL.
 
user1804599
> Uncaught TypeError: Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': 3 arguments required, but only 4 present.
 
user1804599
lol “only 4”
 
ITT: JavaScript still shit.
 
@Crowz I can SELECT * FROM table
 
user1804599
7:50 PM
@BartekBanachewicz ever used WebGL?
 
@AlexM. eww *
 
rightfold whatcha doing in WebGL? :o
 
~~performance!!!~~
 
user1804599
@Crowz rendering a vector field.
 
@BartekBanachewicz sorry, I was debugging my neighbour
@rightfold link to current revision? :D
 
user1804599
7:53 PM
@melak47 not done yet.
 
I think this question might be dumb and I just don't get sql :| I just want to see if the count of times an id shows up in one table is exactly the same as the number of times it shows up in another table
 
user1804599
@melak47 All I get is a blank screen. xD
 
@Crowz sounds easy enough
 
user1804599
8:09 PM
select count(a.id) = count(b.id) from a, b
 
SELECT COUNT(DISTINCT `a`.`id`) AS `fromA`, COUNT(DISTINCT `b`.`id`) AS `fromB`, `fromA` = `fromB` FROM `a`, `b`
or something like that
or shorten it like rightfold
 
user1804599
Woo, I have a non-black screen!
 
@rightfold because of the way you're joining, you need DISTINCT: sqlfiddle.com/#!2/b7ec0/1/0
tell you what, though, I think we both got the question slightly wrong. sounds like he has a non-unique ID and needs a condition on it
 
user1804599
Now how do I rotate this thing.
 
@rightfold yes
 
user1804599
8:19 PM
WOOHOO AWESOME
 
YES AN ANSWER
 
After learning Haskell I think I love C++ even more, for some reasons.
2
 
cause the grass isn't any greener at all on the other side of the fence? :P
 
@Jefffrey what
How long have you been writing in Haskell, again?
 
less than 24 hours I think
@BartekBanachewicz calm down, it's just a feeling
 
8:23 PM
SELECT
  (SELECT COUNT(*) FROM `a` WHERE `id` = <N>)
  =
  (SELECT COUNT(*) FROM `b` WHERE `id` = <N>);
@Crowz ^
I wouldn't even be too fussed about the sub-queries here. It's not like you're doing crazy shiz with them afterwards.
 
@Jefffrey I'm calm. What are the reasons, though?
 
user1804599
@BartekBanachewicz @melak47 jsfiddle.net/9VAhn/2 :)
 
@rightfold looks nice
 
@LightnessRacesinOrbit actually, this beautiful man already answered it too stackoverflow.com/questions/21997795/…
 
user1804599
Let’s see if I can get arrows to work.
 
8:26 PM
@BartekBanachewicz standard library naming conventions and lack of proper namespaces (at least C++ try really hard to get this right)
 
@Jefffrey Because for me it was exactly opposite; I've painfully realized all the things that were irking me in C++.
@Jefffrey lack of namespaces? Have you used import qualified?
 
yes
 
@Jefffrey then I don't get what's lacking for you
 
@Crowz -.-
well, you didn't state that the ID was unknown and you wanted to find the result for all IDs
 
I can see how the naming might be an issue for you, though for me it isn't really a deal breaker; there are just many more important things.
 
8:28 PM
yes, I'm not saying Haskell sucks
by a long shot
 
but was the thing that C++ namespaces have and Haskell modules don't?
 
C++ naming rules are much clearer to me, I feel much more confortable introducing the name something in class rather than something in data X { something :: Boll }
 
but that's not related to namespacing
 
well, yes, because I know that something in class is in the class namespace
and won't conflict with any other name that is external to the class
also to be honest I just fucking love the amount of code you have to write in C++ just for the sake of identifying things
 
@LightnessRacesinOrbit yeah pretty much just one is a super set of the other, and I'm trying to figure out if everything in the second table belongs exclusively to that table
 
8:32 PM
and in Haskell is all thrown away
but I understand it has to be that way
another thing that itches me a lot is the inability for me to write the *, +, -, / operators for my own types
 
@Jefffrey yeah, it just doesn't make sense
@Jefffrey um what?
 
you can?
 
yes
it feels like a bit of PITA though
 
take for example a vector class data Vector = { x :: Int, y :: Int, z :: Int }, can I define + so that (Vector 1 2 3) + (Vector 3 2 1) gives Vector 4 4 4?
 
I think it's frowned upon to "overload" the standard operators though.
 
8:35 PM
@Jefffrey make it an instance of Num. But no, don't do that.
 
see? that's what I'm talking about
 
there's a "vector addition" operator
+ is meant for linear numbers
@Jefffrey that's what you are misunderstanding
 
possible
 
I understand where you're coming from btw
 
?
 
8:37 PM
People will make their own operators instead
like instead of + they'd make it something else
 
yes, doesn't that creates confusion?
 
I'm biased because I fucking dislike it
5
 
@Jefffrey no.
 
well, it can just get messier
 
it does
 
8:39 PM
@BartekBanachewicz, so you would create something like vsum, vdiv, vmul, vsub?
to use in (Vector 1 2 3) `vsum` (Vector 3 2 1)
 
@Jefffrey there was someshit like ^+ but yes
it removes confusion
 
that's awful
 
@BartekBanachewicz I'm not saying you can't overuse operator+ in C++, but when you have your ideas straight and you want to create yet another vector class, or matrix class or whatever class (in which + makes sense), vec1 + vec2 is just the best thing after sliced bread
 
@Jefffrey you are adding arbitrary meaning to +
 
yes, to classes in which users expect it
I would have never expected ^+
 
8:43 PM
expect. expect.
that's what you are used to because c++
 
lmao
 
eh, I know...
 
absolutely terrible
 
that's also what I love about it unfortunately
 
@Bartek, I think when you said just now "everything about Haskell is brilliant, and C++ is terrible, and you're used to expecting the pizza delivery guy to in fact be a woman", you were absolutely wrong you silly person.
 
8:44 PM
fucking ghci sucks ass
 
@Jefffrey It's not unreasonable to ask that when mathematics defines addition over vectors you can add a pair of vectors.
 
@BartekBanachewicz seriously, though, s/c\+\+/all of mathematics/
 
But hey, I might have got it completely wrong. I mean, after all when I first learned C++ I cried because there was not std::vector::sort or std::string::preg_replace or whatever (because PHP). Now, after 3+ years of it I understand and thank God that that was not the case.
 
okay.
use C++ if you prefer it vOv.
I am not going to engage in language war.
 
Wide for the win!
 
8:47 PM
Maybe I'm Just too immature for it, yet. :)
@BartekBanachewicz I wasn't gonna start it. Don't worry. :)
 
fuck ghci
I don't know why it's being annoying, I just want to do fixity.
 
@BartekBanachewicz oh come on, don't be angry at me :3
 
@Jefffrey I think it's a matter of preference
 
yup
 
@BartekBanachewicz Well, + is a mathematical operator defined on vectors, IIRC.
 
8:51 PM
it is
 
@BartekBanachewicz It's not! Any who do not acknowledge the superiority of my preferred the one true language must suffer!
 
also I'm just at chapter 13 of the book, so there might be something else I'm missing
 
not really, no
 
shut up Rapptz.
 
lol
 
8:52 PM
maybe Monoids
not sure if you went over that
 
@Rapptz it's chapter 12
 
then yeah you're not missing much wrt to this conversation
 
@Jefffrey chapter 13? Sounds dangerous!
 
@JerryCoffin it's monads, it's even worse :P
 
@BartekBanachewicz In maths, it's +. I don't really know why you'd want to use another convention.
 
8:53 PM
@EtiennedeMartel that's cool.
 
I mean, if you know what a vector is, then you also know what + means in the context of vectors.
 
@BartekBanachewicz About what? Are you being butthurt?
 
@BartekBanachewicz Looks to me like you're actually trying to sell a limitation of the language as a feature.
 
i am not saying anything
2
 
8:58 PM
> Stack Overflow is currently offline for maintenance
 
@BartekBanachewicz The way I see it, seems like you were fanboying.
 
I regret saying anything in this discussion
 
@Rapptz not for me
 
it's back now
 
so just proceed like i didn't.
 
8:59 PM
so how do I do fixity declarations in ghci?
I tried googling it but it didn't actually help
 
@BartekBanachewicz So, are you wrong or not?
 
@Rapptz do you really need to do that in ghci?
@EtiennedeMartel yes.
i am totally wrong
 

« first day (1227 days earlier)      last day (3726 days later) »