On Oct 16, 1:18 am, CuppoJava <[EMAIL PROTECTED]> wrote:
> Thanks again Rich.
>
> Another question about agents. I understand that the actions are
> executed automatically by the thread pool. Is there any manual way to
> schedule the actions to agents, in case I need some manual control?
Hmm..
Thanks again Rich.
Another question about agents. I understand that the actions are
executed automatically by the thread pool. Is there any manual way to
schedule the actions to agents, in case I need some manual control?
--~--~-~--~~~---~--~~
You received this mes
On Oct 15, 10:31 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> I just found your ants demo Rich. It looks amazingly concise.
>
> Just a quick question: What does the # symbol do?
>
> ie. what's happening here?
>
> ( #(println "hi") )
>
> is # short for: (fn [] ( ... )) ?
Yes, #(...) => (fn [args]
I just found your ants demo Rich. It looks amazingly concise.
Just a quick question: What does the # symbol do?
ie. what's happening here?
( #(println "hi") )
is # short for: (fn [] ( ... )) ?
--~--~-~--~~~---~--~~
You received this message because you are subsc
On Oct 15, 7:53 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> Mmm, this is really mind-bending. Particularly because it's a game
> framework, so the state changes with time. Thinking about it from a
> functional programming perspective takes some thinking.
>
> Rich, Agents seem capable of doing som
Mmm, this is really mind-bending. Particularly because it's a game
framework, so the state changes with time. Thinking about it from a
functional programming perspective takes some thinking.
Rich, Agents seem capable of doing some amazing things. Is there a way
to implement a light-weight threadi
Hi,
On 15 Okt., 19:11, CuppoJava <[EMAIL PROTECTED]> wrote:
> I'm trying to use this macro to port a game-framework that I've
> written in Ruby, to Clojure.
> ...
> Do you guys have any ideas? Or a direction that I might consider
> looking in?
I can only offer a general advice:
Don't stick
On Oct 15, 1:11 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> Thanks for replying Rich and Meikel,
> I'm trying to use this macro to port a game-framework that I've
> written in Ruby, to Clojure.
>
> Essentially, I just need the ability to spawn an extremely large
> amount (~1) of light-weight
Thanks for replying Rich and Meikel,
I'm trying to use this macro to port a game-framework that I've
written in Ruby, to Clojure.
Essentially, I just need the ability to spawn an extremely large
amount (~1) of light-weight threads. My framework takes care of
sequencing them in the right order
Hi,
On 15 Okt., 18:33, CuppoJava <[EMAIL PROTECTED]> wrote:
> That solution will work for this simple case, but my goal is to make
> it possible to create lazy-sequences in a more straight-forward
> manner. So that we can use the usual sequence functions (doseq,
> dorun, loop) instead of the lazy
On Oct 15, 12:33 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> Hi Meikel,
> That solution will work for this simple case, but my goal is to make
> it possible to create lazy-sequences in a more straight-forward
> manner. So that we can use the usual sequence functions (doseq, dorun,
> loop) instead
Hi Meikel,
That solution will work for this simple case, but my goal is to make
it possible to create lazy-sequences in a more straight-forward
manner. So that we can use the usual sequence functions (doseq, dorun,
loop) instead of the lazy-equivalents (for).
Is what I'm asking for impossible?
--~
Hello,
On 15 Okt., 17:53, CuppoJava <[EMAIL PROTECTED]> wrote:
> What's supposed to do is take an arbitrary-form, and create a lazy
> sequence out of calls to "yield".
You can construct the inputs in a lazy sequence and then map
yield over that:
(map yield
(lazy-cat (for [i (range 3)]
Hi guys,
I'm just wondering if it's possible for the following macro to be
written.
What's supposed to do is take an arbitrary-form, and create a lazy
sequence out of calls to "yield".
Here's an example:
(lazy-seq
(doseq i (range 3)
(yield i))
(if true
(yield "hello world")
(yiel
14 matches
Mail list logo