Re: shenandoah

2014-03-14 Thread Raoul Duke
> unreachable. The "normal" GC would then have a lot less to do, helping > achieve shorter pauses. i have long wondered a similar wonder. :-) (i also naively day-dream one could get the C# "IDisposing" style for free with something like that.) the BitC folks have talked about all sorts of things a

Re: shenandoah

2014-03-14 Thread John Mastro
Jacob Goodson wrote: > I was wondering, would a GC like this one(or Azul's) make a > significant impact so that I, or others, could make games in a more > pure fashion? I WANT MY EFFIN PURITY! I'm not particularly knowledgeable about either game development or advanced garbage collection technolog

Re: shenandoah

2014-03-13 Thread Dennis Haupt
i also did an asteroid game in clojure. i don't think you can ever achieve the performance of hackedyhack-mutablility with pure functional algorithms - my approach to get the best performance while staying as clean as possible would be to keep two copies of the game world, using one as source data

Re: shenandoah

2014-03-13 Thread Raoul Duke
(related: asteroids in cal, by way of haskell. http://s3.amazonaws.com/ns999/cal.html) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - pleas

Re: shenandoah

2014-03-13 Thread James Reeves
I believe Clojure does tend to use the JVM GC more than idiomatic Java does, but I haven't really noticed any slowdown related to this. My guess is that it really depends on what you're doing. Clojure data structures are pretty fast, and there are optimisation like transient collections that allow

Re: shenandoah

2014-03-12 Thread Jacob Goodson
I use mutation generously inside of functions. I do not consider that impure at all, pragmatic yes, impure no. Has anyone used Azul's jvm and gotten a big bump in performance? On Wednesday, March 12, 2014 7:28:44 PM UTC-4, raould wrote: > > > pure way or the mutate objects in place way? I can

Re: shenandoah

2014-03-12 Thread Raoul Duke
> pure way or the mutate objects in place way? I can get great performance > with clojure, no doubt about it, by violating the shat out of functional > programming. I can not get great performance with the beautiful, pure, > composable, clojure that I desire! (personally i think this is a great

Re: shenandoah

2014-03-12 Thread Jacob Goodson
Let me state that, as long as it is a asteroids clone, it is fine. However, compared to Java, the performance was much worse(when just playing with it and drawing tons of asteroids in opengl). Also, I do not know what you mean when you say that you have tested it... the pure way or the mutat

Re: shenandoah

2014-03-12 Thread Raoul Duke
> bazillion pure functions. I was wondering, would a GC like this one(or > Azul's) make a significant impact so that I, or others, could make games in > a more pure fashion? I WANT MY EFFIN PURITY! i'd rather have linear types or something like that, than some gc solution. :-) i mean, if i'm dre

Re: shenandoah

2014-03-12 Thread James Reeves
I've done a fair bit of experimentation with writing games in Clojure, and I haven't noticed any major performance issues. If you're getting issues on a 2D asteroids clone, I suspect there might be something inefficient in your code. I find Criterium useful for benchmarking parts of my code in isol