Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/neuralese/codec-check.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / neuralese / codec-check.om` 66 lines ยท 1113 bytes Raw Blame History 1 om2 debug 2 note SPDX-License-Identifier: AGPL-3.0-only 3 note Test entry composed with proposal.om and pinned NL1 Hadamard source. 4 text codecok "NL4 codec independent IEEE32 oracle PASS\n" 5 fn main to int 6 oracle = new uchar 513 0 7 features = new f64 4 0.0f64 8 wire = new uchar 32 0 9 p = new uint 16 99 10 frame = new uchar 1056 0 11 n = read 0 oracle 0 513 12 if ne n 512 13 ret 1 14 end 15 for row ulong 16 16 for j ulong 4 17 put features j f64 and shr row sub ulong 3 j 1 18 end 19 if ne nlencode features wire 0 20 ret 2 21 end 22 for k ulong 32 23 if ne get wire k get oracle add mul row 32 k 24 ret 3 25 end 26 end 27 end 28 put features 0 bitcast f64 ulong 0x7ff8000000000000 29 if ne nlencode features wire 50 30 ret 4 31 end 32 for k ulong 32 33 if ne get wire k get oracle add ulong 480 k 34 ret 5 35 end 36 end 37 if ne nlproposal part frame 0 4 p 40 38 ret 6 39 end 40 for k ulong 16 41 if ne get p k 99 42 ret 7 43 end 44 end 45 put frame 5 1 46 put frame 10 1 47 put frame 11 1 48 put frame 19 32 49 put frame 23 8 50 put frame 27 8 51 put frame 101 1 52 put frame 107 1 53 if ne nlproposal frame p 43 54 ret 8 55 end 56 for k ulong 16 57 if ne get p k 99 58 ret 9 59 end 60 end 61 n = write 1 codecok 0 len codecok 62 if ne n long len codecok 63 ret 10 64 end 65 ret 0 66 end