Repository navigation
0.1.2 --- okb v1, okrun's bundle and library interfaces, openkal-bind - #3
Merged
Merged
Conversation
- docs/okb.md: okb v1, a ZIP archive whose images are stored and begin at multiples of 64 KiB; okb.json (version, name, entry, architectures, per-member sha256); okb.sig over okb.json; the resolution order - libokld: SHA-256, CRC-32, a ZIP reader (ZIP64) and writer, the manifest reader, member admission (stored, aligned, digest), Ed25519 over a message - okld bundle / bundle check - okrun runs an okb (this machine's architecture, read once, used in place); needed images are found in the archive, beside, lib/<arch>/, lib/ and OKRUN_PATH, each admitted with the signature requirement - libokrun: okrun_run_okb_bytes, okrun_run_images (from memory, nothing written to disk), okrun_open_library(_bytes) / okrun_symbol / okrun_close - openkal-bind (docs/bind.md): a build plugin that binds a library published as an .okso and a C header for a program of any system, and refuses the boundary where it cannot hold - examples/host, examples/bind; CI on Linux x86_64/aarch64, macOS, Windows Co-authored-by: speak-agent <[email protected]>
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.
openkal 0.17.2 round, part 2 design §5 and §8 (mcpp platforms part 2).
okb v1 (
docs/okb.md)0x6b6f).okb.jsonstates the version, name, entry, architectures, and a sha256 for each member.okb.sigis an Ed25519 key and signature overokb.json.lib/<arch>/,lib/, andOKRUN_PATH.okld bundlewrites an okb, deterministically;okld bundle checkchecks every member, digest, signature and image.libokrun
okrun app.okbruns the okb. It reads the file once and uses each member in place; nothing is extracted or decompressed.okrun_run_okb_bytes(bytes, size, entry|NULL, argc, argv, options, why, cap)runs an okb, or any archive of images, from memory and writes nothing to disk. Withoptions.carried, images that are not in the archive are found beside the program.okrun_run_images(images, count, entry, …)runs a group of images that resolve one another by name.okrun_open_library/okrun_open_library_bytes/okrun_symbol/okrun_closelet a program of this system call an image's exports.openkal-bind (
docs/bind.md)A build plugin,
mcpp.mcpplibs.openkal_bind. It reads a C header with clang's AST and generates a native binding: each function forwards through asysv_abipointer, and on x86-64 Windows callbacks get thunk pools. It also deploys the.okso.It refuses, naming each declaration:
long,long double,wchar_tand similar types, also through typedefs and struct fields;CI
The images are built once. On Linux x86_64 and aarch64, macOS and Windows, CI runs:
okrun, plus its refusals (unsigned, changed,OKRUN_PATH);examples/host);Co-authored-by: speak-agent [email protected]