diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-29 13:09:53 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-29 13:09:53 -0800 |
commit | 4df8ccec5e9e1d2c1480d164971d92ec78fdee7d (patch) | |
tree | 87e1b9439a04670fe8596efb43e2e6b0cfe782ec | |
parent | 9307772f43a2694aac64b0e86c8873b93d77f0ae (diff) | |
download | standingwithresilience-4df8ccec5e9e1d2c1480d164971d92ec78fdee7d.tar.gz standingwithresilience-4df8ccec5e9e1d2c1480d164971d92ec78fdee7d.zip |
fixed delay a little
-rw-r--r-- | starts/meaning-vm/PLAN.txt | 2 | ||||
-rw-r--r-- | starts/meaning-vm/level-2/sugar.hpp | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/starts/meaning-vm/PLAN.txt b/starts/meaning-vm/PLAN.txt index cecad9f..40f9bd8 100644 --- a/starts/meaning-vm/PLAN.txt +++ b/starts/meaning-vm/PLAN.txt @@ -15,6 +15,8 @@ as you but with a different set of inner habits. discovering a false assumption (like data all processed to have a structure) midway through a task, fixing it, and continuing on withouy restarting the task. + - stop pursuing a goal midway, and then resume it precisely after doing + something else for a bit Level 0 should be low level enough to provide for arbitrary flexibility. There shouldn't be decision-making challenges with regard to exposing diff --git a/starts/meaning-vm/level-2/sugar.hpp b/starts/meaning-vm/level-2/sugar.hpp index 04393a1..7f8b6b8 100644 --- a/starts/meaning-vm/level-2/sugar.hpp +++ b/starts/meaning-vm/level-2/sugar.hpp @@ -24,6 +24,11 @@ namespace sugar { // and starts to pave way towards user/intellect participation // here, could remove the 'tok' for local refnames. +#ifndef everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else +// fix if appropriate +#define everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else 0 +#endif + #define ahabit(name, argnametoklist, ...) \ intellect::level2::makehabit( \ ref(#name), \ @@ -32,8 +37,10 @@ namespace sugar { [&](ref ctx) \ { \ { \ - static int delay = sugar::rand(200000, 400000); \ - sugar::usleep(delay); \ + if (!everyone_already_cares_deeply_about_everyone_else_so_caring_talk_is_more_efficient_than_anything_else) { \ + static int delay = sugar::rand(200000, 400000); \ + sugar::usleep(delay); \ + } \ } \ ref self = ref(#name); (void)self; \ ref result("nothing"); (void)result; \ |