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 / si / rosetta / tasks / hello-world / hello-world.om

19 lines · 447 bytes Raw Blame History
1note Rosetta Code task "Hello world/Text": https://rosettacode.org/wiki/Hello_world/Text
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3om2
4text msg "Hello world!\n"
5note emit writes every byte of a to stdout; a short write is retried, an error exits 1
6fn emit a view uchar * to void
7o = ulong 0
8while lt o len a bound 4096
9k = write 1 a o sub len a o
10if le k 0
11exit 1
12end
13o = add o ulong k
14end
15end
16fn main to int
17emit msg
18ret 0
19end