Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Clojure in games?  (Read 2425 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2012-05-28 22:00:06 »

I just "discovered" Clojure and am, for the first time, feeling "at home" with a language that is not Java. Maybe this is due to my roots in FORTH and being positively inclined to prefix structure.

It seems that there are some interesting "live-coding" aspects that are used as a music-making interface with SuperCollider, which is a big plus in my mind. But I doubt there is a way to package SuperCollider with a Java game.

I'm curious if anyone else here has experience with it, and thoughts about its game-making potential. It sits on the JVM and can integrate with Java pretty readily, it is claimed.

I found a website that looks rather similar to ours, except it is practically a ghost town. That is not too encouraging.

There is a demo of an Asteroids knock-off that has some nice explosions, but the few primitive games I've seen via web demos have really minimal GUIs.

music and music apps:
Offline Danny02
« Reply #1 - Posted 2012-05-28 22:33:10 »

mm I took a quick look at it and then Scala.
I never used either of both for anything more then a few lines of Code, but in the end I think if I start with functional programming I would use Scala.
Offline actual

JGO Coder

Medals: 25

« Reply #2 - Posted 2012-05-28 23:55:50 »

I played around with it. If you aren't used to Lisp like languages it can be quite a mind bender to use (which is a good thing).  There are some nice constructs like multimethods which can make for some nice code and I like being able to generate arbitrary key words like :ogre and :troll.

The performance is acceptable, worse than scala but better than languages like python or ruby, so if you are writing a game that is not processor intensive, then you shouldn't be too badly off. I have found the Java integration to be a bit more cumbersome than Scala.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline loom_weaver

JGO Coder

Medals: 17

« Reply #3 - Posted 2012-05-29 00:26:01 »

I haven't used Clojure yet but being involved with Scala I hear about it often.  The ability of Clojure to hot-swap even better than Java looks quite alluring.

Scala is working great with lwjgl and I've had no trouble with writing code or its performance.  I imagine Clojure would fare similarly.
Offline ReBirth
« Reply #4 - Posted 2012-05-29 00:29:28 »

I haven't tried Clojure, but it's really simple if you ask me.

Offline DrZoidberg

JGO Coder

Medals: 21

« Reply #5 - Posted 2012-06-19 21:27:52 »

I played around with it. If you aren't used to Lisp like languages it can be quite a mind bender to use (which is a good thing).

If you want some more "mind bending" you could watch this mit lecture series
"structure and interpretation of computer programs"
It uses Scheme, which is similar in syntax to Clojure. Those lectures helped me to better understand many of the basic programming paradigms.
Offline PaulReeves

Junior Devvie

Medals: 3

« Reply #6 - Posted 2012-06-20 13:10:07 »

I played with clojure a while ago to do some simple example like programs. Personally I found I preferred it to scala at the time. I sort of stopped as I started to get interested in android programming as clojure did not apparently work that well on it at the time. I believe they are know working on it.

If android support gets good then I could imagine writing some more clojure as it is certainly fun to code in it.

The mit video are a great watch and well worth the 20 hours spent watching it. Abelson and Sussman characters really grew on me.
Offline sproingie

JGO Kernel

Medals: 202

« Reply #7 - Posted 2012-06-20 15:24:31 »

Is it me or does Sussman look a lot like Jason Alexander?  He even talks about George a lot.

Pages: [1]
  ignore  |  Print  

DesertCoockie (58 views)
2018-05-13 18:23:11

nelsongames (88 views)
2018-04-24 18:15:36

nelsongames (78 views)
2018-04-24 18:14:32

ivj94 (763 views)
2018-03-24 14:47:39

ivj94 (95 views)
2018-03-24 14:46:31

ivj94 (647 views)
2018-03-24 14:43:53

Solater (108 views)
2018-03-17 05:04:08

nelsongames (189 views)
2018-03-05 17:56:34

Gornova (430 views)
2018-03-02 22:15:33

buddyBro (1090 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!