From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 29C407F8FC for ; Mon, 9 Jun 2014 18:02:25 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of arthur.breitman@gmail.com) identity=pra; client-ip=74.125.82.48; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="arthur.breitman@gmail.com"; x-sender="arthur.breitman@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of arthur.breitman@gmail.com designates 74.125.82.48 as permitted sender) identity=mailfrom; client-ip=74.125.82.48; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="arthur.breitman@gmail.com"; x-sender="arthur.breitman@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f48.google.com) identity=helo; client-ip=74.125.82.48; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="arthur.breitman@gmail.com"; x-sender="postmaster@mail-wg0-f48.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtEBAMXZlVNKfVIwlGdsb2JhbABZg19WA4JswQ4BgQoIFg8BAQEBBwsLCRIqhAMBAQEDARIRHQEbHgMBCwYFBAc3AgIiAREBBQEcBhMiiAsBAwkIDaBJaosngXKDD5M8ChknDWSEYREBAQQMiTSEPwsRAUwLgnWBTAEDmiGRVBgpgyyBXCEvAYEJ X-IPAS-Result: AtEBAMXZlVNKfVIwlGdsb2JhbABZg19WA4JswQ4BgQoIFg8BAQEBBwsLCRIqhAMBAQEDARIRHQEbHgMBCwYFBAc3AgIiAREBBQEcBhMiiAsBAwkIDaBJaosngXKDD5M8ChknDWSEYREBAQQMiTSEPwsRAUwLgnWBTAEDmiGRVBgpgyyBXCEvAYEJ X-IronPort-AV: E=Sophos;i="4.98,1003,1392159600"; d="scan'208";a="79160837" Received: from mail-wg0-f48.google.com ([74.125.82.48]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 09 Jun 2014 18:02:24 +0200 Received: by mail-wg0-f48.google.com with SMTP id n12so5824017wgh.19 for ; Mon, 09 Jun 2014 09:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KWYX2LpdXBYn4Z7ywNpIDF6nyBUUn4W8qpqLFfOM6MM=; b=qD+5PrOStsmNlFd3JsJiKlr5f7IOMGsg6DnNHisZxbp1YFjFPuVCQmlim67E87O2K4 whtKquDkGYhjCqq8ME09CaFgDS+A/K6kWBsrg71nSyQh4pLolDaZaF+lWoZy0ZiqDAy0 vqPij2pnuV0NybmNaEsfnWmcciRT5talmb5ax83+ojb328LZ5eiq+pkVUwqIK0LO52Fo BvMWI7e0Pjr209pNZp0i2y/67IX6Mmr6wIZNkKdd5sedZq3mM5aXHWS5CmU3wZHDiaOl eHgNSwsJB38aspGi5kAVIL6mmn+dR+peXNaMnJjTukRK6hauv4+VJolu9Ju52hdzNIrp YCOA== MIME-Version: 1.0 X-Received: by 10.180.160.205 with SMTP id xm13mr32992744wib.13.1402329744248; Mon, 09 Jun 2014 09:02:24 -0700 (PDT) Received: by 10.194.71.18 with HTTP; Mon, 9 Jun 2014 09:02:24 -0700 (PDT) Received: by 10.194.71.18 with HTTP; Mon, 9 Jun 2014 09:02:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Jun 2014 12:02:24 -0400 Message-ID: From: Arthur Breitman To: caml-list Content-Type: multipart/alternative; boundary=047d7b62494e43962b04fb6956a7 Subject: Re: [Caml-list] Designing a (functional) multi-agent simulation -- illusion of paralellism --047d7b62494e43962b04fb6956a7 Content-Type: text/plain; charset=UTF-8 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" 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 > --047d7b62494e43962b04fb6956a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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 conflic= t resolving projection.

Such a projection could involve bidding, bouncing the fishes= off each other when they collide, giving stochastic priority to some fishe= s, etc.

On Jun 9, 2014 10:26 AM, "O Frolovs" &= lt;ollie.frolovs.201= 2@my.bristol.ac.uk> wrote:
Hello

I am trying to write a predator-p= rey simulator and I have hit the wall with functional design. I would appre= ciate any help or pointers to relevant literature.

The simulator is that of a world populated with fish and sharks. It is a di= screte-time multi-agent simulation and what I am struggling to think about = is how to implement the illusion of parallelism in simulation. Since the pr= oblem is not specifically with OCaml (but the simulator is in OCaml), I hav= e kept this email short and put all the details and the code on GitHub:

"On the subject of Toroidal Planets, Sharks = and Fish."
=

It's only a hobby project, but it is of some intere= st to me, so I would really appreciate any advice.

Best regards,

Ollie
--047d7b62494e43962b04fb6956a7--