The Web leg of examples/portable is a boundary, and the linker says where it is - #30
Merged
Merged
Conversation
Sunrisepeak
pushed a commit
to mcpp-community/mcpp
that referenced
this pull request
Sep 11, 2026
…and the measurement said so
The design record asked for that example to build for all five platforms it
names. The fifth has twelve of the fifteen interfaces and the program uses two
of the three absent ones, so the link names seven symbols:
kal_process_{spawn,wait,close} and kal_task_{start,join,wait,wake}.
Neither way of making it build is acceptable -- #ifdef-ing the one file in this
ecosystem that exists to contain no platform awareness, or having
openkal-emscripten provide operations it cannot perform, which is the shape
clause 6.2 forbids. So the criterion was wrong and the example is better for
it: it demonstrates the boundary, with the linker's own output as the reading.
mcpplibs/openkal#30 carries the example's own correction.
…here it is `openkal-emscripten 0.1.0` is in the index, so the Web line now resolves. It does not build, and that is the mechanism rather than a gap. Measured, with the dependency resolved and every translation unit compiled: wasm-ld: error: obj/main.o: undefined symbol: kal_process_spawn wasm-ld: error: obj/main.o: undefined symbol: kal_process_wait wasm-ld: error: obj/main.o: undefined symbol: kal_process_close wasm-ld: error: obj/main.o: undefined symbol: kal_task_start wasm-ld: error: obj/main.o: undefined symbol: kal_task_join wasm-ld: error: obj/main.o: undefined symbol: kal_task_wait wasm-ld: error: obj/main.o: undefined symbol: kal_task_wake Seven names, each one this program uses and this platform does not have. There is no fork, no exec and no second address space under Emscripten, so `openkal.process`, `openkal.exec` and `openkal.space` are absent from that implementation -- and this program uses two of the three. THE CRITERION WAS WRONG AND THE MEASUREMENT IS WHAT SAID SO. The design record asked for this example to build "for all five platforms it names". It cannot, and neither way of making it could is acceptable: `#ifdef`-ing the one file in this ecosystem that exists to contain no platform awareness, or having `openkal-emscripten` provide operations it cannot perform, which is the shape clause 6.2 forbids -- present and always failing, which the caller cannot tell from a condition. So the line stays and the example is better for it. A program about portability that also shows where portability stops is worth more than one that stops at four platforms and says nothing about the fifth. The README and the manifest carry the linker's own output as the evidence, and note that `openkal.task` is a second question with the same answer here: the four `kal_task_*` names resolve under that implementation's `threads` feature, and the three `kal_process_*` names never will. The other three legs are measured and unchanged: host `0 observations that did not hold`, and both Android ABIs build over `openkal-linux` unchanged.
Sunrisepeak
force-pushed
the
fix/the-web-leg-is-a-boundary
branch
from
September 11, 2026 13:24
18ba1ad to
eb0962c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Web leg of examples/portable is a boundary, and the linker says where it is
openkal-emscripten 0.1.0is in the index, so the Web line now resolves. Itdoes not build, and that is the mechanism rather than a gap.
Measured, with the dependency resolved and every translation unit compiled:
wasm-ld: error: obj/main.o: undefined symbol: kal_process_spawn
wasm-ld: error: obj/main.o: undefined symbol: kal_process_wait
wasm-ld: error: obj/main.o: undefined symbol: kal_process_close
wasm-ld: error: obj/main.o: undefined symbol: kal_task_start
wasm-ld: error: obj/main.o: undefined symbol: kal_task_join
wasm-ld: error: obj/main.o: undefined symbol: kal_task_wait
wasm-ld: error: obj/main.o: undefined symbol: kal_task_wake
Seven names, each one this program uses and this platform does not have. There
is no fork, no exec and no second address space under Emscripten, so
openkal.process,openkal.execandopenkal.spaceare absent from thatimplementation -- and this program uses two of the three.
THE CRITERION WAS WRONG AND THE MEASUREMENT IS WHAT SAID SO. The design record
asked for this example to build "for all five platforms it names". It cannot,
and neither way of making it could is acceptable:
#ifdef-ing the one file inthis ecosystem that exists to contain no platform awareness, or having
openkal-emscriptenprovide operations it cannot perform, which is the shapeclause 6.2 forbids -- present and always failing, which the caller cannot tell
from a condition.
So the line stays and the example is better for it. A program about
portability that also shows where portability stops is worth more than one that
stops at four platforms and says nothing about the fifth. The README and the
manifest carry the linker's own output as the evidence, and note that
openkal.taskis a second question with the same answer here: the fourkal_task_*names resolve under that implementation'sthreadsfeature, andthe three
kal_process_*names never will.The other three legs are measured and unchanged: host
0 observations that did not hold, and both Android ABIs build overopenkal-linuxunchanged.