hongruiqi / happs

Automatically exported from code.google.com/p/happs
0 stars 0 forks source link

multi-component infrastructure. #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We have the following current problems:

* happs-state requires too many type signatures that are also hard to
understand for a variety of simple components e.g. the Timer example

* you can't have two states of the same type in your app which is useful
both for testing and for multihome style apps

* ixset doesn't work with current state because is has floating parameters

The solution is to have query and update take a state index value as the
first argument e.g.

$(systemState [("StateKeyOne",''StateOne)])

then lets you do things like:

  query StateKeyOne $ getSession sessionKey

Original issue reported on code.google.com by alexande...@gmail.com on 14 Jan 2008 at 9:15

GoogleCodeExporter commented 8 years ago
also startState should take a config object to allow specification of a 
different
directory.

Original comment by alexande...@gmail.com on 14 Jan 2008 at 9:30

GoogleCodeExporter commented 8 years ago

Original comment by alexande...@gmail.com on 14 Jan 2008 at 9:57

GoogleCodeExporter commented 8 years ago

Original comment by alexande...@gmail.com on 14 Jan 2008 at 10:00

GoogleCodeExporter commented 8 years ago

Original comment by alexande...@gmail.com on 14 Jan 2008 at 10:02

GoogleCodeExporter commented 8 years ago
It should be noted that multi-state is equally hard to maintain as single-state.

Original comment by lem...@gmail.com on 17 Jan 2008 at 7:32

GoogleCodeExporter commented 8 years ago
We're going for a multi-component infrastructure instead.

Original comment by lem...@gmail.com on 28 Jan 2008 at 7:31

GoogleCodeExporter commented 8 years ago

Original comment by lem...@gmail.com on 31 Jan 2008 at 12:37