Game Project - HTML5 or Applet?

2013-05-24 Thread JvJ
I'm thinking of making a game in Clojure for this competition: http://lispinsummerprojects.org/. However, I'm not sure if the best way to go is HTML5 with ClojureScript or a Java applet More specifically, I'd like to do HTML5, but am unsure of the current capabilities of ClojureScript. An

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JvJ
Or... what about abstracting away the graphics/audio/input and doing both? On Friday, 24 May 2013 05:22:20 UTC-4, JvJ wrote: > > I'm thinking of making a game in Clojure for this competition: > http://lispinsummerprojects.org/. > > However, I'm not sure if the best way to go is HTML5 with Clojure

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JeremyS
Hi, I haven't investigated much game development in HTML5 with ClojureScript, but Chris granger did ! You can find here [1] some explanations about a game he developped for a node knockout, in [2] you can find the code of the game and [3] is a library implementing the pattern he used to model h

Re: asm-based clojure yet?

2013-05-24 Thread atkaaz
making a note that (on my system, win7 64bit btw) clojureclr startup time is about (at least)10 seconds. tested both Clojure.Main.exe and Clojure.Compile.exe from package clojure-clr-1.4.1-Debug-4.0.zip I might be looking into Haskell which seems to have like 2 sec(max) startup time, and the hell

Re: asm-based clojure yet?

2013-05-24 Thread atkaaz
for comparison an uberjar run [1] of a hello world program takes 2 seconds (2.2 sec) on clojure 1.5.1 and Leiningen 2.2.0-SNAPSHOT on Java 1.7.0_17 Java HotSpot(TM) 64-Bit Server VM [1] java -jar newproj1-0.1.0-SNAPSHOT-standalone.jar On Fri, May 24, 2013 at 1:29 PM, atkaaz wrote: > making a

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread Stephen Kockentiedt
Hi, in case you want to go with an applet, you could use Simplecs [1], a library I wrote for creating games based on a Component-Entity-System engine which is heavily influenced by Chris Granger's post. It embraces functional programming and immutable data structures. The game state is represe

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread Laurent PETIT
It's for a contest project, so maybe this doesn't matter ... but anyway what I'm thinking deep inside is that I would not do it with a Java Applet. For the same reasons I would not do it with Flash, etc. 2013/5/24 JvJ : > I'm thinking of making a game in Clojure for this competition: > http://lisp

[ANN] liberator 0.9.0

2013-05-24 Thread Philipp Meier
Hi, I just released liberator 0.9.0. You'll find the new documentation and tutorial site at http://clojure-liberator.github.io/liberator/ Have fun! And thanks to all contributors, -billy. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group.

creating maps out of sql

2013-05-24 Thread Mond Ray
I am starting out to use Clojure to combine and verify data between DB2 on a Mainframe, SQL Server and an Atom Feed. Yes, it's such fun working in a start-up ;-) Database wise, all is connecting OK after some Leiningen shenanigans and I am now stuck on the mapping part ;-) The code is below.

Re: creating maps out of sql

2013-05-24 Thread Niels van Klaveren
If you need to do join like operations on database tables from different sources that you can't join through SQL, there's a nice library called table-utilsthat you can use. Since it's not released on clojars there's some steps y

Re: creating maps out of sql

2013-05-24 Thread Marc Limotte
Hi Ray, First, I'd remove the print(ln)s from the functions. No need for side-effects there. Just have the functions return the result value and then when you call a2p-records-by-date you can wrap it in a println. Then you want to create a Map as the return value of the inner loop in a2p-record

Mocha and Chai wrappers for ClojureScript testing

2013-05-24 Thread jkrueger
Hi, I would like to announce two wrappers that we developed for ClojureScript testing. They provide support for Mocha and Chai respectively. The wrappers play well with testing setups on node and in the browser (or in headless setups v

Re: How to: reduce boolean operations?

2013-05-24 Thread Alan Thompson
Usage: (every? pred coll) (see http://clojuredocs.org/clojure_core/clojure.core/every_q ) Function *every?* expects a predicate and a collection. Converting the map {:a 1} into a collection returns a sequence of 2-element vectors: user=> (seq {:a 1}) ([:a 1]) Calling the function :a on a vec

Re: [ANN] liberator 0.9.0

2013-05-24 Thread Marek Srank
I think that the front page of the site lacks a decent explanation of what the liberator is... for example, you could put there the description from the 'getting started' page... :) Marek On Friday, May 24, 2013 4:08:10 PM UTC+2, Philipp Meier wrote: > > Hi, > > I just released liberator 0.9.0.

Re: [ANN] liberator 0.9.0

2013-05-24 Thread Philipp Meier
Hi Marek, Am Freitag, 24. Mai 2013 19:29:31 UTC+2 schrieb Marek Srank: > > I think that the front page of the site lacks a decent explanation of what > the liberator is... for example, you could put there the description from > the 'getting started' page... :) > Well, that's a very good proposa

Git vs Perforce Comparison

2013-05-24 Thread Alan Thompson
Hello Clojurians, I'm sure that everyone here is pretty well sold on the idea that Git is nearly always a better SCM choice than Perforce, etc. I recently had to do a comparison at work highlighting the differences between the two systems as we try to move from a legacy home-grown SCM solution to

Re: How to: reduce boolean operations?

2013-05-24 Thread atkaaz
Thank you, I see it now. Based on your comment I actually took at look at the source code for "every?" (haven't checked it before, oddly enough) => (source every?) (defn every? "Returns true if (pred x) is logical true for every x in coll, else false." {:tag Boolean :added "1.0" :stati

Re: How to: reduce boolean operations?

2013-05-24 Thread atkaaz
typo, I meant: "thanks to everyone that replieD" On Fri, May 24, 2013 at 9:25 PM, atkaaz wrote: > Thank you, I see it now. Based on your comment I actually took at look at > the source code for "every?" (haven't checked it before, oddly enough) > > => (source every?) > (defn every? > "Returns

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JeremyS
JavaFx could also be a nice way to go... On Friday, May 24, 2013 3:15:25 PM UTC+2, Laurent PETIT wrote: > > It's for a contest project, so maybe this doesn't matter ... but > anyway what I'm thinking deep inside is that I would not do it with a > Java Applet. For the same reasons I would not do

Re: How to: reduce boolean operations?

2013-05-24 Thread John D. Hume
On Fri, May 24, 2013 at 1:25 PM, atkaaz wrote: > It kinda makes sense except I wouldn't have expected that on the map it > would return a vector (but then how else could it return both key and value > right? ) so everyone expects the "input" to the pred would be a vector > when passed in a map.

why is this behaving badly?

2013-05-24 Thread Jim - FooBar();
Hi everyone, I am trying to do something very simple like asking the user whether he wants to continue or not (a-la bash). However, sometimes the print statement is printed sometimes it isn't! IN other words sometimes I get the prompt ,sometimes it looks like it's hanging (while in fact it's

Re: creating maps out of sql

2013-05-24 Thread Mark
You might want to consider a federated database tool like http://teiid.org It would be pretty easy to link DB2 and SQL Server. Hooking up the Atom feed would require a bit more work but probably not too bad. On Friday, May 24, 2013 7:55:17 AM UTC-7, Mond Ray wrote: > > I am starting out to use C

Re: why is this behaving badly?

2013-05-24 Thread Andy Fingerhut
Try adding (flush) after the print call. On Fri, May 24, 2013 at 12:35 PM, Jim - FooBar(); wrote: > Hi everyone, > > I am trying to do something very simple like asking the user whether he > wants to continue or not (a-la bash). However, sometimes the print > statement is printed sometimes it is

Re: why is this behaving badly?

2013-05-24 Thread Dima Sabanin
Hi Jim, I think the STDOUT stream in Java is flushed by default when you print a new line. You can flush manually with: (.flush (System/out)) Hope that helps, Dima On Fri, May 24, 2013 at 3:35 PM, Jim - FooBar(); wrote: > Hi everyone, > > I am trying to do something very simple like asking t

Re: why is this behaving badly?

2013-05-24 Thread Jim - FooBar();
thanks a lot guys :) Both solutions work! Jim On 24/05/13 20:42, Andy Fingerhut wrote: Try adding (flush) after the print call. On Fri, May 24, 2013 at 12:35 PM, Jim - FooBar(); mailto:jimpil1...@gmail.com>> wrote: Hi everyone, I am trying to do something very simple like asking

[ANN] Pedestal 0.1.7 has been released.

2013-05-24 Thread Ryan Neufeld
Hey Folks, We've just released the 0.1.7 versions of the Pedestal libraries. The big feature in this release is a much simplified dataflow engine for the client-side. We're still behind on documentation and samples, but with this change our focus finally shifts directly to improving those two

Re: creating maps out of sql

2013-05-24 Thread Mond Ray
Fantastic answer Marc - I had been fiddling about with map and hash maps and could quite get the parens right but now its sorted. Brilliant - thanks again for the help. Ray On Friday, 24 May 2013 18:56:54 UTC+2, mlimotte wrote: > > Hi Ray, > > First, I'd remove the print(ln)s from the functions

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JvJ
Stephen, thanks the suggestion. However, since this is a competition, I'm not sure I'd want to use someone else's code. I'd love to take a look at your design, however. On Friday, 24 May 2013 08:52:49 UTC-4, Stephen Kockentiedt wrote: > > Hi, > > in case you want to go with an applet, you could

Has anyone here played with Wisp?

2013-05-24 Thread Rich Morin
I saw mention of Wisp the other day (on Hacker News, IIRC), but I haven't noticed any discussion of it on the Clojure email list, (def newsletter), etc: Wisp is a homoiconic JavaScript dialect with clojure syntax, s-expressions and macros. Unlike clojurescript, Wisp code compiles to human-

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JvJ
Also, I'm taking a look at your tutorial. The code seems to involve a lot of assoc/update-type methods, combined with special let statements. Have you considered using the state monad, or something similar, in order to better manage this? On Friday, 24 May 2013 08:52:49 UTC-4, Stephen Kockent

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread Mikera
You might want to consider LibGDX: https://code.google.com/p/libgdx/ Looks pretty flexible, can do HTML5 games with WebGL as well as Android, iOS and desktop. It's also Java based so should be pretty easy to use from Clojure. On Friday, 24 May 2013 17:22:20 UTC+8, JvJ wrote: > > I'm thinking o

Re: Game Project - HTML5 or Applet?

2013-05-24 Thread JvJ
Thanks Mikera. That looks great. I like the fact that it's mostly a graphics/phisics/audio library rather than an actual game engine. On Saturday, 25 May 2013 01:04:29 UTC-4, Mikera wrote: > > You might want to consider LibGDX: > > https://code.google.com/p/libgdx/ > > Looks pretty flexible, ca

Re: creating maps out of sql

2013-05-24 Thread Mond Ray
Thanks. I had ruled that style of option out as this is small one-off, specific task. On Friday, 24 May 2013 21:41:45 UTC+2, Mark wrote: > > You might want to consider a federated database tool like http://teiid.org > It would be pretty easy to link DB2 and SQL Server. Hooking up the Atom > fee

Re: creating maps out of sql

2013-05-24 Thread Mond Ray
Thanks - I will check it out. On Friday, 24 May 2013 17:35:46 UTC+2, Niels van Klaveren wrote: > > If you need to do join like operations on database tables from different > sources that you can't join through SQL, there's a nice library called > table-utils