3 ms·
It's interesting that graphics and objects are so connected, in your posts. I'll say that in general, EVERYTHING in Python is objects, and they're an extremely
by praccu 12y ago
It's interesting that graphics and objects are so connected, in your posts. I'll say that in general, EVERYTHING in Python is objects, and they're an extremely general programming paradigm. It sounds like Haskell might be a language you'd like, if you're into abstract algebra (although I don't think Haskell's graphics support is super great).
- rjayatilleka 12y agoBluntly put, Haskell's graphics support sucks. There are different libraries with different levels of support, but none are complete or high level. There are also Haskell like alternatives like Elm and PureScript, but they're experimental. And finally there are some Haskell to JavaScript compilers, but I'm not sure what DOM manipulation is like with them (and they're all experimental). I'm building a Haskell desktop app over winter break (DMX and light show controls), but after a fair bit of research, I came to the conclusion that its best to do the GUI in JavaScript and speak with a Haskell server over a WebSocket.
- codygman 12y agoFor 2D, I don't see how Gloss[0] isn't complete or high level (what are you comparing it to?). There's a cool example of drawing a clock[1] as well as others[2]. The package is on hackage[3] and has a website[4], but the github seemed more approachable/clear to me. There's also an awesome tutorial on making tic tac toe[5] by ocharles of the 24 days of hackage fame. 0: https://github.com/benl23x5/gloss https://github.com/benl23x5/gloss 1: https://github.com/benl23x5/gloss/blob/master/gloss-examples/picture/Clock/Main.hs https://github.com/benl23x5/gloss/blob/master/gloss-examples... 2: https://github.com/benl23x5/gloss/blob/master/gloss-examples https://github.com/benl23x5/gloss/blob/master/gloss-examples 3: http://hackage.haskell.org/package/gloss http://hackage.haskell.org/package/gloss 4: http://gloss.ouroborus.net/ http://gloss.ouroborus.net/ 5: https://ocharles.org.uk/blog/posts/2013-12-10-24-days-of-hackage-gloss.html https://ocharles.org.uk/blog/posts/2013-12-10-24-days-of-hac...