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 / core / sovereign-core / om / qwen-native / tokenizer / tokio.om

44 lines · 623 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2global tkso uchar 4096
3global tksn ulong 1
4fn tkpfl to void
5n = get tksn 0
6p = ulong 0
7while lt p n bound 4097
8w = write 1 tkso p sub n p
9if le w 0
10exit 70
11end
12p = add p ulong w
13end
14put tksn 0 0
15end
16
17note one byte to stdout
18fn tkpc c ulong to void
19n = get tksn 0
20if ge n 4096
21tkpfl
22n = ulong 0
23end
24put tkso n uchar c
25put tksn 0 add n 1
26end
27
28global tcdg uchar 24
29fn tcpu v ulong to void
30n = ulong 0
31x = v
32dn = false
33while not dn bound 24
34put tcdg n uchar add 48 rem x 10
35n = add n 1
36x = div x 10
37if eq x 0
38dn = true
39end
40end
41for k ulong n
42tkpc ulong get tcdg sub sub n 1 k
43end
44end