interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / dataset / README.md

83 lines · 4552 bytes Raw Blame History Rendered
1---
2license: apache-2.0
3language:
4- en
5- code
6pretty_name: omega-rosetta
7size_categories:
8- n<1K
9task_categories:
10- text-generation
11tags:
12- code
13- omega
14- omegese
15- rosetta-code
16- exercism
17configs:
18- config_name: default
19 data_files: omega-rosetta.parquet
20---
21
22# omega-rosetta
23
24263 programs written in Omegese (the OM-2 profile of the Omega language) and compiled by `omc`, the
25compiler that [aien-dev/omega-mv](https://github.com/aien-dev/omega-mv) rebuilds from a 408-byte
26hand-written seed: 216 [Rosetta Code](https://rosettacode.org) tasks and 47 Exercism-style exercises.
27Each task's expected output was written by an independent Python 3 oracle, never by `omc`.
28
29The file is built from the repository by `python3 dataset/export.py` (needs `pyarrow`). It is not
30published; this card describes the local build.
31
32## Fields
33
34One row per program, tasks first, each kind sorted by name.
35
36| Column | Type | Meaning |
37| --- | --- | --- |
38| `name` | string | directory name, `tasks/<name>` or `exercises/<name>` |
39| `kind` | string | `task` or `exercise` |
40| `rosetta_url` | string | the Rosetta Code task page (tasks; null for exercises) |
41| `exercism_url` | string | the Exercism problem page (exercises; null for tasks) |
42| `title` | string | the Rosetta Code page title (tasks) or the exercise slug |
43| `source_om` | string | the program: `tasks/<name>/<name>.om`, or for an exercise its reference solution `.meta/example.om` |
44| `stub_om` | string | the exercise stub that traps (exit 113) until solved; null for tasks |
45| `test_om` | string | the exercise's test cases, appended to a solution to form one unit; null for tasks |
46| `expected_stdout` | string | `tasks/<name>/expected.txt` byte for byte; null for exercises, whose test unit prints `ok N - ...` lines |
47| `expected_exit` | int32 | 0 for every row: a task exits 0, and `source_om` + `test_om` exits 0 when every case passes |
48| `oracle_py` | string | the Python 3 standard-library program that wrote `expected_stdout`; null for exercises |
49| `omc_sha256` | string | sha256 of the `omc` binary every row was checked with |
50| `omega_mv_commit` | string | the aien-dev/omega-mv commit that births that `omc` |
51| `lines` | int32 | lines of `source_om` that are not `note` comments |
52
53## Provenance
54
55- Repository: [aien-dev/omega-rosetta](https://github.com/aien-dev/omega-rosetta), branch `corpus/200`.
56- Compiler pin ([`omega.ref`](../omega.ref)): omega-mv `e5b32567a7aff3ce594e3254a622a846a6cd190b`,
57 `omc` sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`.
58- Gate, Linux AArch64 (DGX Spark, Cortex-A725 cores 10-14), 2026-10-27, prebuilt pinned `omc`:
59 `sh run.sh --omc <omc>` printed `TASKS PASS 216/216`; all 216 oracles reproduced their
60 `expected.txt`; all 47 exercise examples passed through `exercise.sh` and all 47 stubs failed with
61 trap 13. Negative controls failed as required: a mutated FizzBuzz answer (215/216), a one-bit
62 change to the CRC-32 polynomial (215/216), a wrong leap solution (`failed=3`), and every
63 `expected.txt` mutated at once (0/216, and 216/216 oracle comparisons caught it).
64- Test cases of 42 exercises come from
65 [exercism/problem-specifications](https://github.com/exercism/problem-specifications)
66 `canonical-data.json` at commit `650bebeb39ad40439175288042aece982b0a90a9` (MIT; see
67 [NOTICE](../NOTICE)). 49 number-theory tasks carry a `wolfram.txt` recording an independent
68 Wolfram Language check of their expected output; that file is not a column here.
69
70## Known limits
71
72- One compiler at one commit. These programs say nothing about other `omc` versions, and passing
73 them is not a proof that `omc` is correct.
74- AArch64 Linux only: `omc` and the programs it writes are static AArch64 Linux ELF files.
75- Every task's input is fixed in its source; Omega has no imports, so each program repeats its own
76 output helpers, which inflates `lines` and makes rows look alike.
77- Rosetta Code's `anagrams` and `ordered-words` tasks read `unixdict.txt`; these programs embed a small fixed sample instead,
78 so their output differs from the full-list answers on rosettacode.org.
79- Exercises carry no expected stdout; their check is the exit code of solution + tests.
80- 3 non-ASCII cases of `reverse-string` were skipped; Omegese strings here are bytes.
81- Rosetta Code publishes content under the GNU FDL 1.3; this dataset is the repository's own code
82 under Apache-2.0 WITH LLVM-exception. It copies no Rosetta Code page prose; sample inputs that a
83 task statement names (word lists, test strings) are reused as data.