caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Arthur Breitman <arthur.breitman@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Designing a (functional) multi-agent simulation -- illusion of paralellism
Date: Mon, 9 Jun 2014 12:02:24 -0400	[thread overview]
Message-ID: <CAAYUt0PbLik5G+gfdLTjBD0VEKAtoJDtYNoiA+2S7W08Ew+_=A@mail.gmail.com> (raw)
In-Reply-To: <CAERFpKW7Zpb4u5nVLt_cEj=z5JxbupEyAzYL_z5dNqVVguP4sw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

Have two types for world: a regular world, and a dirty world, with
potential conflicts.

From a clean world, generate a dirty world by applying moves (in parallel).

From the dirty world, generate a clean world using a conflict resolving
projection.

Such a projection could involve bidding, bouncing the fishes off each other
when they collide, giving stochastic priority to some fishes, etc.
On Jun 9, 2014 10:26 AM, "O Frolovs" <ollie.frolovs.2012@my.bristol.ac.uk>
wrote:

> Hello
>
> I am trying to write a predator-prey simulator and I have hit the wall
> with functional design. I would appreciate any help or pointers to relevant
> literature.
>
> The simulator is that of a world populated with fish and sharks. It is a
> discrete-time multi-agent simulation and what I am struggling to think
> about is how to implement the illusion of parallelism in simulation. Since
> the problem is not specifically with OCaml (but the simulator is in OCaml),
> I have kept this email short and put all the details and the code on GitHub:
>
> "On the subject of Toroidal Planets, Sharks and Fish."
> https://gist.github.com/olliefr/fb26ca3a7645dae7e203
>
> It's only a hobby project, but it is of some interest to me, so I would
> really appreciate any advice.
>
> Best regards,
>
> Ollie
>

[-- Attachment #2: Type: text/html, Size: 1868 bytes --]

  parent reply	other threads:[~2014-06-09 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 14:24 O Frolovs
2014-06-09 15:56 ` Anthony Tavener
2014-06-09 16:44   ` Arnaud Spiwack
2014-06-09 16:02 ` Arthur Breitman [this message]
2014-06-10  9:12 ` Goswin von Brederlow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAYUt0PbLik5G+gfdLTjBD0VEKAtoJDtYNoiA+2S7W08Ew+_=A@mail.gmail.com' \
    --to=arthur.breitman@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).