Re: Beginner question

2015-07-29 Thread Francis Avila
Note: my knowledge of soap is not very deep, but I have done the following in a production system. If you have a WSDL available, a good approach is to generate the (Java) client code and then use it via Java interop. You can smooth out the rough edges and shed the extra java types by using the

Re: beginner question

2011-09-25 Thread Andy Fingerhut
All persistent data structures are immutable, but not all immutable data structures are persistent. For example, imagine an immutable array that, unlike Clojure's vector data structure, implemented "conj" by copying the entire array into a new one with the original elements plus the new one. Immu

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 so persistent is immutable + x like "car" is "movable" + x. it doesn't make sense to ask what the difference is. Am 25.09.2011 18:59, schrieb Phil Hagelberg: > > On Sep 25, 2011 6:12 AM, "Dennis Haupt" > wrote: >> wh

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 so there is no difference. Am 25.09.2011 15:28, schrieb Stuart Halloway: >> what's the difference between persistent and immutable? > > See http://en.wikipedia.org/wiki/Persistent_data_structure, which > now has a nice shout out to Clojure. > > Stu

Re: beginner question

2011-09-25 Thread Phil Hagelberg
On Sep 25, 2011 6:12 AM, "Dennis Haupt" wrote: > what's the difference between persistent and immutable? I have written a summary of this distinction on my blog: http://technomancy.us/132 Hope that helps. -Phil -- You received this message because you are subscribed to the Google Groups "Cloj

Re: beginner question

2011-09-25 Thread Stuart Halloway
> what's the difference between persistent and immutable? See http://en.wikipedia.org/wiki/Persistent_data_structure, which now has a nice shout out to Clojure. Stu -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email t

Re: beginner question

2011-09-25 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 25.09.2011 14:00, schrieb Stuart Halloway: >> the website says: >> >> deftype supports mutable fields, defrecord does not >> >> so deftype seems to be what would be a java bean with simple >> properties in java > > Nope. :-) > > Domain informat

Re: beginner question

2011-09-25 Thread Stuart Halloway
> the website says: > > deftype supports mutable fields, defrecord does not > > so deftype seems to be what would be a java bean with simple > properties in java Nope. :-) Domain information should use defrecord, and should never be mutable. This is the closest thing to a Java bean, but is rad

Re: beginner question

2011-09-25 Thread Stefan Kamphausen
Hi, regarding the writing of a game in Clojure, I think http://codethat.wordpress.com/2011/09/10/writing-tetris-in-clojure/ is a good post to read. Regards, Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email t

Re: beginner question

2011-09-24 Thread Dennis Haupt
> > Matt Hoyt > > > *From:* Dennis Haupt > *To:* clojure@googlegroups.com *Sent:* Saturday, September 24, 2011 > 3:54 PM *Subject:* Re: beginner question > > i assumed my game to be so much fun that no one would ever want to > stop playing it. > > Am 24.09.2011 2

Re: beginner question

2011-09-24 Thread Dennis Haupt
nt:* Saturday, September 24, 2011 > 3:54 PM *Subject:* Re: beginner question > > i assumed my game to be so much fun that no one would ever want to > stop playing it. > > Am 24.09.2011 22:26, schrieb Matt Hoyt: >> You need a check in the loop to see if the player wants to e

Re: beginner question

2011-09-24 Thread Matt Hoyt
From: Dennis Haupt To: clojure@googlegroups.com Sent: Saturday, September 24, 2011 3:54 PM Subject: Re: beginner question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i assumed my game to be so much fun that no one would ever want to stop playing it. Am 24.09.2011 22:26, schrieb Matt Hoyt

Re: beginner question

2011-09-24 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i assumed my game to be so much fun that no one would ever want to stop playing it. Am 24.09.2011 22:26, schrieb Matt Hoyt: > You need a check in the loop to see if the player wants to end the > game. Clojure doesn't have a break statement like Java s

Re: beginner question

2011-09-24 Thread Matt Hoyt
You need a check in the loop to see if the player wants to end the game.   Clojure doesn't have a break statement like Java so you created a infinite loop that will never end.  To make sure the game ends you need to have a base case.   Example of a main game loop in clojure: (loop [game-state ini

Re: beginner question

2011-09-24 Thread John
To break down the update into multiple steps use the -> macro: =>(defn step [world-state]) (-> world-state update-health update-physics update-ai)) where e.g. update-health is something like =>(defn update-health [world-state] (update-in world-state [:player :

Re: beginner question

2011-09-24 Thread Alan Malloy
This is about right, though instead of a loop/recur you can just (map render (iterate next-state start-state)) On Sep 24, 12:36 pm, Dennis Haupt wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > in java, i would start coding a game with a loop like this: > while (true) { > logic(); > r

Re: Beginner question to a error "please"

2010-12-20 Thread Ken Wesson
On Mon, Dec 20, 2010 at 3:55 PM, Laurent PETIT wrote: > > > 2010/12/20 Ken Wesson >> >> On Mon, Dec 20, 2010 at 10:27 AM, uap12 >> wrote: >> > Tanks very mutch for the help. >> > /Anders >> >> Of course (apply str ...) will suck the whole file into ram all at > > slurp will suffice to suck every

Re: Beginner question to a error "please"

2010-12-20 Thread Laurent PETIT
2010/12/20 Ken Wesson > On Mon, Dec 20, 2010 at 10:27 AM, uap12 > wrote: > > Tanks very mutch for the help. > > /Anders > > Of course (apply str ...) will suck the whole file into ram all at > slurp will suffice to suck everything into memory > once, eagerly. If it's a multi-gigabyte file exp

Re: Beginner question to a error "please"

2010-12-20 Thread Ken Wesson
On Mon, Dec 20, 2010 at 10:27 AM, uap12 wrote: > Tanks very mutch for the help. > /Anders Of course (apply str ...) will suck the whole file into ram all at once, eagerly. If it's a multi-gigabyte file expect OOME. It would be nice if there was a variation on re support that worked on arbitrary s

Re: Beginner question to a error "please"

2010-12-20 Thread uap12
Tanks very mutch for the help. /Anders -- 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 - please be patient with your first post. To unsubscri

Re: Beginner question to a error "please"

2010-12-20 Thread Laurent PETIT
2010/12/20 uap12 > Hi, > I just started a hobby project, it download a webbpage, and extract number > data witch exits between Start rad: --and -- > Example > Start rad:01 20 20 52 32 85 89 > > Everything works fine exept -main witch gives a error i don't understand. > Becurse i try to learn