Re: clj-soap (was: Beginner question

2015-08-06 Thread blake watson
We did some soap as well, and found the same thing, except in our case, SOAP was merely a formality. In other words, it seems some people are using only the barest of SOAP features, and wrapping up the meat up in a SOAP envelope. In other words, we were able to just generate a skeleton in Soap-UI

clj-soap (was: Beginner question

2015-07-30 Thread Sean Corfield
On Jul 29, 2015, at 7:47 PM, Mike m...@thefrederickhome.name wrote: I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. Just to clarify: I too had started down the path of trying to find a way to do SOAP via Clojure and came across the

Beginner question

2015-07-29 Thread Mike
Hello, I have decided what my first Clojure project will be, but I could use some guidiance. I would like to be able to make SOAP calls to a webservice on another machine. I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. How are

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

Re: Caribou Data Modeling - Beginner question

2014-01-29 Thread Leon Talbot
Ok I got it. Supporters, Actions and Questions needs to be created separately and linked to Idea. (Idea, which is created at first, doesn't need to mention those) Makes sense! When I log in to the admin and try to Modify this new model, I get only to see the first 3 custom fields

Caribou Data Modeling - Beginner question

2014-01-28 Thread Leon Talbot
I open an REPL (lein repl) and add a model by pasting this : (caribou.core/with-caribou (boot/boot) (caribou.model/create :model {:name Idea :fields [{:name Title :type string} {:name Desc :type string} {:name Supporters :type link} {:name

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 to

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

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 information should use

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 to

Re: beginner question

2011-09-25 Thread Phil Hagelberg
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

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 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 d.haup...@googlemail.com

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.

beginner question

2011-09-24 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 in java, i would start coding a game with a loop like this: while (true) { logic(); render(); } i would store the current state of the world in an object containing the complete data of the whole game and update its values in each iteration. how

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 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

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 Matt Hoyt
like map.  It will only execute when you ask a value for it.    Matt Hoyt From: Dennis Haupt d.haup...@googlemail.com To: clojure@googlegroups.com Sent: Saturday, September 24, 2011 2:36 PM Subject: beginner question -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: beginner question

2011-09-24 Thread Dennis Haupt
you ask a value for it. render should do that Matt Hoyt *From:* Dennis Haupt d.haup...@googlemail.com *To:* clojure@googlegroups.com *Sent:* Saturday, September 24, 2011 2:36 PM *Subject:* beginner question

Re: beginner question

2011-09-24 Thread Matt Hoyt
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

Re: beginner question

2011-09-24 Thread Dennis Haupt
: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

Re: beginner question

2011-09-24 Thread Dennis Haupt
:* 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

Beginner question to a error please

2010-12-20 Thread uap12
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 don't understand. Becurse i try to learn Clojure, i

Re: Beginner question to a error please

2010-12-20 Thread Laurent PETIT
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

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

Re: Beginner question to a error please

2010-12-20 Thread Ken Wesson
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

Re: Beginner question to a error please

2010-12-20 Thread Laurent PETIT
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,

Re: Beginner question to a error please

2010-12-20 Thread Ken Wesson
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

Re: working with agents and atoms - a beginner question

2010-06-17 Thread Ryan Waters
After reading your posts and thinking wouldn't it be nice to just kick off a thread and not care about the return value I recall Rich using/liking [1] the Java Executor framework [2]. I looked at clojure.lang.Agent and saw it used there, too. It's tricky because I wouldn't want to lean on Java

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Ryan Waters
On Tue, Jun 15, 2010 at 12:23 PM, Shawn Hoover shawn.hoo...@gmail.com wrote: On Tue, Jun 15, 2010 at 12:01 PM, Ryan Waters ryan.or...@gmail.com wrote: I'm working with the code at the following gist and also pasted below: http://gist.github.com/421550 I'd like to have execution of a

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Ryan Waters
Thank you for pointing that out. I notice your style is similar to Rich's in his ant.clj [1] which seems like the kind of solution that might be used in other functional and/or lisp languages. Do you know if that's the case with self-calling functions and agents? However, isn't there more

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Ryan Waters
On Wed, Jun 16, 2010 at 12:17 AM, Christophe Grand christo...@cgrand.net wrote: Hi Ryan, On Tue, Jun 15, 2010 at 6:01 PM, Ryan Waters ryan.or...@gmail.com wrote: I'm working with the code at the following gist and also pasted below: http://gist.github.com/421550 I'd like to have execution

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Meikel Brandmeyer
Hi, Am 15.06.2010 um 23:27 schrieb Ryan Waters: Thank you for pointing that out. I notice your style is similar to Rich's in his ant.clj [1] which seems like the kind of solution that might be used in other functional and/or lisp languages. Do you know if that's the case with self-calling

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Christophe Grand
On Wed, Jun 16, 2010 at 10:20 PM, Meikel Brandmeyer m...@kotka.de wrote: The typical solution for your problem would probably be: (- long-running-function-with-recur Thread. .start) This starts you function in a dedicated thread and you can save the overhead of send-off and use recur

Re: working with agents and atoms - a beginner question

2010-06-16 Thread Meikel Brandmeyer
Hi, Am 16.06.2010 um 22:34 schrieb Christophe Grand: I agree, it still feels a little dirty to use a future without caring about the return value but on the positive said you get an easy way to block and wait for the tread to finish (deref) and you also get future-done?, future-cancel and

working with agents and atoms - a beginner question

2010-06-15 Thread Ryan Waters
I'm working with the code at the following gist and also pasted below: http://gist.github.com/421550 I'd like to have execution of a separate thread (agent) continue running until it sees the atom 'running' change to false. Unfortunately, the program doesn't return from the send-off but to my

Re: working with agents and atoms - a beginner question

2010-06-15 Thread Shawn Hoover
On Tue, Jun 15, 2010 at 12:01 PM, Ryan Waters ryan.or...@gmail.com wrote: I'm working with the code at the following gist and also pasted below: http://gist.github.com/421550 I'd like to have execution of a separate thread (agent) continue running until it sees the atom 'running' change to

Re: working with agents and atoms - a beginner question

2010-06-15 Thread Meikel Brandmeyer
Hi, besides the answer you got from Shawn, I'd like to question your use of the agent system. This is not the way it is supposed to be used. To model a processing loop with agents you should send the action back to the agent itself. (def running? (atom true)) (defn process [agent-state

Re: working with agents and atoms - a beginner question

2010-06-15 Thread Christophe Grand
Hi Ryan, On Tue, Jun 15, 2010 at 6:01 PM, Ryan Waters ryan.or...@gmail.com wrote: I'm working with the code at the following gist and also pasted below: http://gist.github.com/421550 I'd like to have execution of a separate thread (agent) continue running until it sees the atom 'running'