mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
khan: don't reset tic
instead make it a rolling 128-bit integer. 128 bits is the same size as the +sham space, so is one natural choice for "big enough to never have to think about this." 64, 32, 16, even 8 bits would probably be fine.
This commit is contained in:
parent
18274090b2
commit
0b507cf498
@ -116,7 +116,6 @@
|
|||||||
=* state -
|
=* state -
|
||||||
|= [now=@da eny=@uvJ rof=roof]
|
|= [now=@da eny=@uvJ rof=roof]
|
||||||
=* khan-gate .
|
=* khan-gate .
|
||||||
=. tic 0
|
|
||||||
^?
|
^?
|
||||||
|%
|
|%
|
||||||
:: +call: handle a +task request
|
:: +call: handle a +task request
|
||||||
@ -140,7 +139,7 @@
|
|||||||
%^ cat 3
|
%^ cat 3
|
||||||
'khan-fyrd--'
|
'khan-fyrd--'
|
||||||
(scot %uv (sham (mix tic eny)))
|
(scot %uv (sham (mix tic eny)))
|
||||||
=. tic +(tic)
|
=. tic (mod +(tic) (bex 128))
|
||||||
=* fyd p.task
|
=* fyd p.task
|
||||||
=/ =beak (get-beak bear.fyd now)
|
=/ =beak (get-beak bear.fyd now)
|
||||||
=/ args [~ `tid beak name.fyd q.args.fyd]
|
=/ args [~ `tid beak name.fyd q.args.fyd]
|
||||||
|
Loading…
Reference in New Issue
Block a user