Re: state is how you behave to events ++ the first antibodhi law
by galathaea <galathaea@[EMAIL PROTECTED]
>
Apr 20, 2008 at 02:15 PM
in many ways
it's a law of efficient programming
as your state machine handles events
event handlers are tied to current state
that is from the definition
so minimising states helps minimise
handlers needing implementation
but it has many other interesting results
look at get requests
(accessor events)
one consistent problem i have seen
from young new hires
is this desire to put local scope data
in the member state of it's object
so get accessors actually can change state
to these new hires
because they store pieces of the calculation in the request
at various stages where they want to "remember"
and they don't worry about it's possible use across events
because they "try to remember to initialise"
this complexity building behavior is not possible
if you follow the first antibodhi law
because you don't expect to change behavior on accessors
and certain classes of assumptions that follow from that expectation
like ordering of access
can cause a certain class of bugs
of course
this is when they get explained the wonders of const correctness
and how to find more resources to study from
--+--
a differently illuminative model is seen in the way
feynman diagrams are usually spoken of in scattering theory
in experiments
we only have entry and exit states
ie. we make measurements pre and post transitions
how the transition occurs is
"implementation defined"
and this is reflected in the feynmann expansion
the external vertices are the "initial conditions"
the "state preserved in every expansion"
and the operators for the internal fields
can be connected up in algebraic expressions
coupling constants
to bare propagators to..
none of which scattering theorists like to call real state
it's "virtual state"
a perturbative expansion viewed as deceptive
for "losing" certain nonperturbative effects
(measurable effects unaccounted)
but still respecting a virtual antibodhi principle
(virtual state is how virtual fields interact)
that provides a calculus to describe a large class of interactions
to many scattering theorists
unless we have external vertices
"measurements"
the veil of mechanism is left to the implementors of the model
the predictive power of any science
of course
requires at least one implementation possible
but if the behavior can possibly be implemented
it can be a scientific model of state change
theorists study implementations to find generalisations
engineers study implementations to find optimisations
sometimes they even match
***^..^$$$$$$$$
this first antibodhi law
provides a different interpretation
of the buddhist description
of arahants and buddhas achieving nibbana
it reveals the ultimate result of this quest
the desire to hasten the endstate
to no longer carry the bondage of being an event handler
as the ariyapariyesana sutta i 167 proclaims:
" then
monks
being myself subject to birth
having understood the danger
in what is subject to birth
seeking the unborn supreme security from bondage
nibbana
i attained the unborn supreme security from bondage nibbana
being myself subject to aging
having understood the danger
in what is subject to aging
seeking the unaging supreme security from bondage
nibbana
i attained the unaging supreme security from bondage nibbana
being myself subject to sickness
having understood the danger
in what is subject to sickness
seeking the unailing supreme security from bondage
nibbana
i attained the unailing supreme security from bondage nibbana
being myself subject to death
having understood the danger
in what is subject to death
seeking the deathless supreme security from bondage
nibbana
i attained the deathless supreme security from bondage nibbana
being myself subject to sorrow
having understood the danger
in what is subject to sorrow
seeking the sorrowless supreme security from bondage
nibbana
i attained the sorrowless supreme security from bondage nibbana
being myself subject to defilement
having understood the danger
in what is subject to defilement
seeking the undefiled supreme security from bondage
nibbana
i attained the undefiled supreme security from bondage nibbana
the knowledge and vision arose in me:
my liberation is unshakeable
this is my last birth
now there is no more renewed existence "
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
galathaea: prankster, fablist, magician, liar