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
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 to
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
-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 information should use
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 to
On Sep 25, 2011 6:12 AM, Dennis Haupt d.haup...@googlemail.com 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
-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
-
-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 d.haup...@googlemail.com
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.
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 d.haup...@googlemail.com wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
in java, i would start coding a game with a loop like this:
while
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
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
-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 so
From: Dennis Haupt d.haup...@googlemail.com
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
: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 end
the game. Clojure doesn't have a break statement like Java so
:* Dennis Haupt d.haup...@googlemail.com
*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 22:26, schrieb Matt Hoyt:
You need a check
2010/12/20 uap12 anders.u.pers...@gmail.com
Hi,
I just started a hobby project, it download a webbpage, and extract number
data witch exits between brStart rad:/SPAN --and -- /TD
Example
brStart rad:/SPAN01 20 20 52 32 85 89/TD
Everything works fine exept -main witch gives a error i
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
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com 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
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com
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,
On Mon, Dec 20, 2010 at 3:55 PM, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/12/20 Ken Wesson kwess...@gmail.com
On Mon, Dec 20, 2010 at 10:27 AM, uap12 anders.u.pers...@gmail.com
wrote:
Tanks very mutch for the help.
/Anders
Of course (apply str ...) will suck the whole file
21 matches
Mail list logo