interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / effects / cases / clock.om

13 lines · 234 bytes Raw Blame History
1note clock: time, identity and randomness; no file, network or process words.
2text ok "clock\n"
3fn main to int
4t = monons
5p = getpid
6b = new uchar 8 0
7r = random b 0 8 0
8if or le t 0 le p 0
9ret 1
10end
11w = write 1 ok 0 len ok
12ret 0
13end