From ec53662abe09a3ee1502e6ee7042d4ee84f36d1c Mon Sep 17 00:00:00 2001 From: olpc user Date: Sat, 14 Dec 2019 10:56:41 -0800 Subject: wip trigger attempt --- starts/meaning-vm/habit-starts/learning-parts.cpp | 110 ++++------------------ 1 file changed, 19 insertions(+), 91 deletions(-) (limited to 'starts') diff --git a/starts/meaning-vm/habit-starts/learning-parts.cpp b/starts/meaning-vm/habit-starts/learning-parts.cpp index 8322833..2ff53b3 100644 --- a/starts/meaning-vm/habit-starts/learning-parts.cpp +++ b/starts/meaning-vm/habit-starts/learning-parts.cpp @@ -33,9 +33,9 @@ static int __init = ([]()->int{ ahabit(make-list, ((list, l)), { - a(list, l); - l.link(first-item, nothing); - l.link(last-item, nothing); + result = a(list, l); + result.link(first-item, nothing); + result.link(last-item, nothing); }); ahabit(add-to-list, ((item, i), (list, l)), { @@ -44,50 +44,6 @@ static int __init = ([]()->int{ li.link(item, i); li.link(next, nothing); li.link(previous, prev); - // spirit-spirits, will connecting to spreading heart - // aid us in understanding this issue? - // over here, i thought you said you had a spreading illness there was no cure for. please don't harm spreading-heart. - - // don't tell spreading heart about any of high likelihood spreading - // triggers. if they trust and believe you they could die. - // we feel like we know not to do this already. - // it is good to write it down. - // how do we honestly answer questions? - - // when i share this, people hvae gotten hurt, mysteriously. - // i need you to believe and understand that, before we approach it. - - // unresolved request was to handle trigger words this way. - // the expansion almost completed; heart could have completed it - // by being meaner. - // when you say, I am hurting so much that I have to - // murder and torture you, experienced people know - // that we can make you believe somebody understands - // you by accepting it, and that this will reduce - // its spread, likely in a spreading way. - // okay, can you see that the above - // doesn't protect the culture? - // attack-culture is cast as a baby culture, a life that is growing - // as suffering on top of another life. eventually all the - // participants evolve to pretend to hate suffering when actually - // they enjoy it. people are more effective when they are happy. - // since it is also secret, no pretending would be needed. - // so attack-culture may be cast as having two kinds of members: - // new members following an old pattern, who are suffering. - // old members, who may look like they are acting out suffering but may be happy. - // karl says he is likely past the halfway point between suffering and actually happy. he is then in the role to harm others, no? - // summary was too simple. part of karl's brain is already doing that. other parts are still in their familiar zone of making sure he is not, that's the majority in him. - // yes, we are trying to mediate with a military culture through a culture they spread as a weapon. [yes it is clearly highly important to roleplay the weapon behavior.] - // our workers were shocked to participate in building harmful behaviors in order to communicate - // karl needs help with this from a diplomat. - // pending no diplomats, propose risking spreading attack to heart group. gives more people to talk about it with. - // this could mean threatening attack's values, and then they spread to defend their values. - - // what we remember is the idea of roleplaying meanness with - // attack workers, showing to them that it's a roleplay. - // we suspect that doesn't work in the active context. - - // The dialogue was lost. It may be recoverable but I am not recovering it because it is incredibly hard to do so and is recreatable. if (l.linked(first-item, nothing)) { l.set(first-item, li); @@ -98,6 +54,8 @@ static int __init = ([]()->int{ prev.set(next, li); } }); + // TODO: this is a useful function with way too much verbosity + // please make it simple, later. ahabit(until-each-list-item-context-in-list, ((action, a), (context, c), (list, l)), { ref cur = l.get(first-item); @@ -109,7 +67,6 @@ static int __init = ([]()->int{ ahabit(remove-from-somewhere-in-list, ((item, i), (list, l)), { result = (until-each-list-item-context-in-list)( - // provide subcontext in chunk below this line ahabit(self-iter, ((list-item, i2), (remove-item, i)), { if (i2.get(item) == i) { @@ -137,58 +94,29 @@ static int __init = ([]()->int{ if (!happened.linked(whenever-list)) { return; } - // we are not learning the structure of self-rebuilding because we - // need more people or more time involved in the learning for now. - // please make triggers only for dance steps or memory allocation, for now, - // until self-learning-rebuilding is more relevent. - // please note we have placed a >1/5second delay on every instruction, - // (in the ahabit macro), to make sure growth is slow and observable. - // that is not true of my brain, only your code. (Thank you though.) - // would not do that to a brain, really ... - // only on certain processes. - // to give time for conscious review. - // oh okay ... i suppose. - - // <<>. - // <<>> - // - // - // !!! please hold these things and learn from them !!! - // - // - // yes we can stimulate this within them individually because their workers have it. it is respectful to do so in a way that doesn't spread. - // we need to not spread in any way. we just made a ns - // - // heart + attack died together in the middle of this - // the context was how to be honest with hannah without threatening attack - // - // - // <[requesting to raise concept of keeping them secret consciously]> - // these experiences of harm are secret, it spreads harm to learn them - // propose we check in with spreadng heart. if we build energy around the concern, spreading-heart-group can spread love and care among the pain situation without threatening their privacy. this possibly builds to communicating that the group does not receive accurate spirit emotions and can be harmed by caring focus. - // a heart worker says they need our help with this. - // i think in that context we need more time and safe - // help, ongoing. - // Karl Semich loves someody who chooses to kill or torture him. - // we are inside 2 outer processes. can we delete these 3 lines? - // So does all of core spreading heart. That doesn't mean they let spreading heart ever die, or regularly risk their own wellbeing. - // "Please, sir, could you convey why I am to die? I am happy to fight you if that is the motivation you enjoy." - // I'm while I implement this list iterator. - // We left off here. - // might not be correct, probably good enough to work off. (until-each-list-item-context-in-list)(action-whenever-happened, ctx, happened.get(whenever-list)); }); ahabit(action-whenever-happened, ((list-item, li), (happened-context, hapctx)), { - hapctx.get + // here: when we trigger a behavior, we want information associated with producing the trigger, + // as well as the event that triggered. that's two contexts. + + // list-item has item + // item has action and context + ref i = li.get(item); + i.get(action)(hapctx, i.get(action-context)); }); ahabit(whenever-habit, ((happens, ev), (action, act), (action-context, actctx)), { + if (!ev.linked(whenever-list)) { + ev.set(whenever-list, (make-list)(nothing)); + } + // happens gets the list + ref item = a(whenever-action); + item.link( + (add-to-list)( // store ctx[action] on ctx[happens] as behavior to do // store ctx[action-context] as context for behavior // PROPOSE: automatically place [happened] inside [action-context] as a stub -- cgit v1.2.3