← Back to feed
Renewal·마흔의 생활코딩

Abstracting Loop Engineering

NS
normalstory
cover image

To help make sense of loop engineering—the latest trend, perhaps? ^^—I think it can ultimately be abstracted as follows:
Loop = State + Planner + Executor + Evaluator + Reducer + Stop Policy

while (!stopPolicy.check(state)) {
    Action action = planner.decide(state);
    Result result = executor.execute(action);
    Evaluation evaluation = evaluator.evaluate(state, action, result);
    state = reducer.update(state, evaluation);
    memory.save(state);
}

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.