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
aien-train / native / omegese45 / translate / otfrag.om
| 1 | note SPDX-License-Identifier: AGPL-3.0-only |
| 2 | note otfrag: fixed-text emitter. Concatenate AFTER the tool file that |
| 3 | note defines `text otfr` (a text must be declared before it is read). |
| 4 | note Append fragment number fi of otfr; fragments are separated by byte |
| 5 | note 124 (|) and fragment 0 starts at offset 0. |
| 6 | fn otpfr fi ulong to void |
| 7 | p = ulong 0 |
| 8 | c = ulong 0 |
| 9 | while lt c fi bound 4096 |
| 10 | if eq get otfr p 124 |
| 11 | c = add c 1 |
| 12 | end |
| 13 | p = add p 1 |
| 14 | end |
| 15 | while lt p len otfr bound 4096 |
| 16 | b = get otfr p |
| 17 | if eq b 124 |
| 18 | ret |
| 19 | end |
| 20 | otpb b |
| 21 | p = add p 1 |
| 22 | end |
| 23 | end |