interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / native / omegese45 / translate / main-en2goal.om

22 lines · 422 bytes Raw Blame History
1note SPDX-License-Identifier: AGPL-3.0-only
2note en2goal driver: stdin one English request line, stdout one G line
3note (exit 0) or one typed refusal line (exit 20 21 22 23). Exit 2: usage
4note (any argument) or a stdin read/stdout write error.
5fn main to int
6if ne argcnt 1
7otpfr 10
8otflush
9ret 2
10end
11k = otrdin
12if eq k neg long 2
13ret 2
14end
15n = ulong 1024
16if ge k 0
17n = ulong k
18end
19code = otengoal n
20otflush
21ret code
22end