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
omega-mv / seed / effects / cases / clock.om
| 1 | note clock: time, identity and randomness; no file, network or process words. |
| 2 | text ok "clock\n" |
| 3 | fn main to int |
| 4 | t = monons |
| 5 | p = getpid |
| 6 | b = new uchar 8 0 |
| 7 | r = random b 0 8 0 |
| 8 | if or le t 0 le p 0 |
| 9 | ret 1 |
| 10 | end |
| 11 | w = write 1 ok 0 len ok |
| 12 | ret 0 |
| 13 | end |