[Haskell-beginners] Are Arrows good for simulation purposes
martin
martin.drautzburg at web.de
Tue Mar 31 05:33:56 UTC 2015
Hello all,
little do I know about arrows, but the "stream processor" metaphor suggests, that they can be used to simulate a network
of things, services or data. Is this correct?
I came across the following thought: When I simulate a billard game with a DES, I would compute collisions of balls with
each other and with the banks, creatign a set of events, of which only the earliest will be considered to compute the
next state. This is pure DES and does not seem to be a good candidate for arrows. In this case I'd be more interested in
composing collision detectors than in stream processing.
OTOH, when I move parcels around and process then in various stages, then a "stream processor" would make perfect sense
to me. In that case, would I abandon the DES paradigm entirely (including the notion of an event queue) and just model
the network and let it run?
More information about the Beginners
mailing list