interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

GitHub aien-dev/omega-bridge#55 (code only)

closed derived e917763d5ea604d1 #55

Imported from GitHub aien-dev/omega-bridge#55 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 7af4d11c3a9c853abc20a99f97d0a4f01524bb66 · Head cae5a425753fed22d34a79ed9321a2a6163aff01

Apply it

git checkout -b patch-e917763d5ea604d1 7af4d11c3a9c853abc20a99f97d0a4f01524bb66
curl -fsSL https://interplane.io/drakestapleton/omega-bridge/patches/e917763d5ea604d1.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-bridge
55
cae5a425753fed22d34a79ed9321a2a6163aff01
{"kind":"github-import","owner":"aien-dev","repo":"omega-bridge","number":55,"url":"https://github.com/aien-dev/omega-bridge/pull/55","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:01Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/tests/native/v2/run.sh b/tests/native/v2/run.sh
index db27b9c..cc0814c 100755
--- a/tests/native/v2/run.sh
+++ b/tests/native/v2/run.sh
@@ -28,17 +28,18 @@ W=$O/work; GEN=$W/native-gen
 
 # basegen REV NAME: the historical generator, with the current C runtime prelude and only
 # private assembly-linkage directives normalized. Public wrappers, signatures, compiler bytes
-# and declarations remain byte-compared. REVs are reachable on this branch: 5458684 has the blob
-# of pre-rebase 3f05908, 3d79d77 that of 3bb8b8a.
+# and declarations remain byte-compared. The REV is reachable on main: f637021 is #26 (f32 and
+# ushort kinds), the last intended change of the existing outputs. #26 changed the python output of
+# every unit and admitted fsum and halve, so the earlier baselines (5458684, 3d79d77) no longer apply.
 basegen() {
   PRE=$(grep '^text pre ' "$ROOT/src/native.om"); export PRE
   git -C "$ROOT" show "$1:src/native.om" | awk '/^text pre /{print ENVIRON["PRE"]; next} /^text fr |^text fv /{gsub(/[.]globl ombr_code_/, ".local ombr_code_"); gsub(/[.]globl ombr_entry_/, ".local ombr_entry_"); gsub(/[.]globl ombr2_code_/, ".local ombr2_code_"); gsub(/[.]globl ombr2_entry_/, ".local ombr2_entry_")} {print}' > "$O/native-$2.om"
   "$OMC" < "$O/native-$2.om" > "$O/gen-$2"; chmod +x "$O/gen-$2"
 }
 
-# 1. ABI v1 output unchanged: the generator of 5458684 (plus #17's prelude) and this one, on every
+# 1. ABI v1 output unchanged: the generator of f637021 (plus the current prelude) and this one, on every
 # existing unit alone and on the v1 suite's set, for all six outputs.
-basegen 5458684 v1
+basegen f637021 v1
 same=0; diff=0; : > "$O/v1set.in"
 for u in "$ROOT"/tests/native/*.om "$ROOT"/tests/native/g1/*.om; do
   "$OMC" < "$u" > "$O/one.bin" 2> /dev/null || continue
@@ -54,7 +55,7 @@ for w in c h python rust zig go; do
   "$O/gen-v1" $w < "$O/v1set.in" > "$O/a.out"; "$GEN" $w < "$O/v1set.in" > "$O/b.out"
   if cmp -s "$O/a.out" "$O/b.out"; then same=$((same + 1)); else diff=$((diff + 1)); echo "DIFF set $w"; fi
 done
-if [ $diff = 0 ]; then pass "ABI v1 bindings byte-identical to 5458684's generator (runtime/private linkage normalized): $same unit x output cases (every tests/native and g1 unit, and the set)"
+if [ $diff = 0 ]; then pass "ABI v1 bindings byte-identical to f637021's generator (runtime/private linkage normalized): $same unit x output cases (every tests/native and g1 unit, and the set)"
 else fail "ABI v1 bindings changed in $diff cases"; fi
 
 # 2. Identity: each v2 unit's embedded source digest equals sha256sum of its file (oracle), the omc digest
@@ -269,16 +270,15 @@ mut overlap '/^text fv /s/if ((sp\[i\].w == 1 || sp\[j\].w == 1 ||/if ((/' 'vcop
 mut outcopy '/^text fv /s/memmove(o\[i\].dst, buf\[i\], o\[i\].n);/;/' 'digest: tag'
 
 # 10a. The C API out of line (outputs apih, apic) for freestanding consumers. The inline header
-# (output api) stays byte for byte what 3d79d77's generator (with #17's prelude) wrote, as does every
-# other output.
-basegen 3d79d77 3bb
+# (output api) and the out-of-line pair stay byte for byte what f637021's generator (with the current
+# prelude) wrote, as does every other output.
 ok=1
-for w in c h python rust zig go api; do
-  "$O/gen-3bb" $w < "$W/units.in" > "$O/a.out"; "$GEN" $w < "$W/units.in" > "$O/b.out"
+for w in c h python rust zig go api apih apic; do
+  "$O/gen-v1" $w < "$W/units.in" > "$O/a.out"; "$GEN" $w < "$W/units.in" > "$O/b.out"
   cmp -s "$O/a.out" "$O/b.out" || { ok=0; echo "DIFF $w"; }
 done
-if [ $ok = 1 ]; then pass "outputs c h python rust zig go api byte-identical to 3d79d77's generator (runtime/private linkage normalized) on the v2 set"
-else fail "an existing output changed against 3d79d77"; fi
+if [ $ok = 1 ]; then pass "outputs c h python rust zig go api apih apic byte-identical to f637021's generator (runtime/private linkage normalized) on the v2 set"
+else fail "an existing output changed against f637021"; fi
 FS=$O/fs; mkdir -p "$FS"
 FSCF="-std=gnu11 -ffreestanding -fno-builtin -O2 -Wall -Wextra -Werror -c"
 # fsobj DIR: the freestanding object from DIR's omega_api_decl.h; prints its undefined symbols.