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 / train / aien-train / native / neuralese / hadamard.om

58 lines · 888 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note NL1 G0 fixed eight-coordinate mathematical decoder, not a learned channel.
3note Input scores propose information only. No effects, threshold, or authority.
4global NM f64 8
5global NF f64 4
6global NT f64 4
7
8fn ndcol j ulong to ulong
9if eq j 0
10ret 1
11end
12if eq j 1
13ret 2
14end
15if eq j 2
16ret 4
17end
18ret 7
19end
20
21fn ndsign r ulong c ulong to f64
22x = and r c
23p = ulong 0
24for b ulong 3
25p = xor p and shr x b 1
26end
27if eq p 0
28ret 1.0f64
29end
30ret -1.0f64
31end
32
33fn ndelem r ulong j ulong to f64
34ret div ndsign r ndcol j fsqrt 8.0f64
35end
36
37fn nddec n ulong to int
38if ne n 8
39ret 1
40end
41note Ordered comparison rejects NaN, infinities, and outside the frozen range.
42for r ulong 8
43if not le fabs get NM r 4.0f64
44ret 2
45end
46end
47for j ulong 4
48v = 0.0f64
49for r ulong 8
50v = add v mul get NM r ndelem r j
51end
52put NT j v
53end
54for j ulong 4
55put NF j get NT j
56end
57ret 0
58end