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/seed/rung4/tests/echo.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 / seed / rung4 / tests / echo.om` 16 lines ยท 257 bytes Raw Blame History 1 note echo: copy stdin to stdout through a 4096-byte pool, until read gives 0 2 global buf uchar 4096 3 fn main to int 4 n = read 0 buf 0 len buf 5 while gt n 0 6 w = write 1 buf 0 ulong n 7 if ne w n 8 ret 1 9 end 10 n = read 0 buf 0 len buf 11 end 12 if lt n 0 13 ret 2 14 end 15 ret 0 16 end