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 / exercises / hello-world / .meta / example.om

12 lines · 422 bytes Raw Blame History
1note Exercism-style exercise "hello-world": https://exercism.org/tracks/python/exercises/hello-world
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note hello writes the greeting "Hello, World!" into o and returns its length in bytes.
4note Check it with: sh exercise.sh exercises/hello-world
5om2
6text hw "Hello, World!"
7fn hello o edit uchar * to ulong
8for i ulong len hw
9put o i get hw i
10end
11ret len hw
12end