Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 1210 times)
0 Members and 1 Guest are viewing this topic.
Online philfrei
« Posted 2012-05-29 00: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 Clojure-gaming.org 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.

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Online Danny02
« Reply #1 - Posted 2012-05-29 00: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: 23



« Reply #2 - Posted 2012-05-29 01: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 02: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 02:29:28 »

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

Offline DrZoidberg

Senior Member


Medals: 15



« Reply #5 - Posted 2012-06-19 23: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
http://www.youtube.com/playlist?list=PLE18841CABEA24090
"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

Senior Newbie





« Reply #6 - Posted 2012-06-20 15: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 17: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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (23 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org 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‑gaming.org
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!