Repository navigation
native bridges (2/4): handles, deadlines, methods, host functions and unhandled failures in the shared library #5864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
antoniosarosi
wants to merge
36
commits into
antoniosarosi/bex2-boundary-1-library
Choose a base branch
from
antoniosarosi/bex2-boundary
base: antoniosarosi/bex2-boundary-1-library
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+12,111
−658
Draft
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
721ad0d
bex2_scheduler: let embedders add GC root visitors
antoniosarosi 4a48db0
baml_cranelift: list callables and type-parameter positions in baml_e…
antoniosarosi b66075b
bex2_boundary: handles, release and calls through function values
antoniosarosi 02b22bc
bex2_boundary: deadlines
antoniosarosi b8dd921
baml_cli, bex2_boundary: export methods; describe names, throws, type…
antoniosarosi cd17f97
bex2_boundary: the union argument rule of today's SDK
antoniosarosi 18c0b3c
baml_cranelift, bex2_boundary: repair code merged in a rebase
antoniosarosi a0d9265
bex2_scheduler: park a task until something outside wakes it
antoniosarosi 921eae2
baml_cranelift, bex2_heap_types: export the declared types of functio…
antoniosarosi c87f68e
bex2_boundary, baml_cli: host functions; function values checked agai…
antoniosarosi 4d2b4c7
bex2_heap, bex2_scheduler, bex2_boundary: report failures nobody awaited
antoniosarosi 85478b1
bex2_boundary: union arguments can name their member
antoniosarosi 65ee56e
baml_cranelift, bex2_boundary: bigint literal types; bigint literals …
antoniosarosi 1ee11d3
bex2_boundary: runtime panics reach the host as baml.panics instances
antoniosarosi 4055133
Merge antoniosarosi/bex2-boundary-1-library: flat unions into step 2
antoniosarosi b0d4026
baml_cranelift, bex2_boundary: throws types and defaults in function …
antoniosarosi 958e566
bex2_boundary, bex2_scheduler: host calls belong to the running call;…
antoniosarosi 26ac424
bex2_boundary: panics only when marked; handle ids per library; deadl…
antoniosarosi 591a894
baml_cli: the host-call routing test fails instead of hanging when a …
antoniosarosi 873ba2e
bex2_boundary: keep the per-call cost where it was
antoniosarosi 7c770bc
bex2_boundary, baml_compiler2_mir: union rule as the SDK for list ele…
antoniosarosi 79ce2e6
bex2_boundary: a sync call's queued host calls are dropped once its d…
antoniosarosi 83472be
baml_cli: host_loop runs 20 rounds (200 made the GC stress run take m…
antoniosarosi 56d706f
Merge branch 'antoniosarosi/bex2-boundary-1-library' into antoniosaro…
antoniosarosi 59e28f9
Merge branch 'antoniosarosi/bex2-boundary-1-library' into antoniosaro…
antoniosarosi 245d61a
bex2_boundary: a self-describing list is a list under a list and a tu…
antoniosarosi 4d1e474
bex2_boundary: format 5 header and README: host values, host errors, …
antoniosarosi d12eb0c
bex2_boundary: host values, host errors, contract violations as panic…
antoniosarosi 83549df
bex2_boundary: every token in accepted bytes gets exactly one dropped…
antoniosarosi 572e12e
bex2_boundary: header and README for a host function's panic reply (s…
antoniosarosi f7fd46a
bex2_boundary: panic replies, the member form wherever a reply is rea…
antoniosarosi 74f2ad7
bex2_boundary: host function ids follow the counting contract
antoniosarosi debdbe3
bex2_boundary: a panic reply takes exactly what the library hands a h…
antoniosarosi d0bddd8
bex2_boundary: the library names the union member in self-describing …
antoniosarosi 0a27d6e
bex2_boundary: arguments of a call through a released function value …
antoniosarosi 4dca58a
bex2_boundary: no member form where a host cannot read the declared type
antoniosarosi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linux
--sharedpacks can succeed without the four newbaml_lib_*functions.On Linux,
link_shared_librarypasses-ufor every name inBOUNDARY_EXPORTS. It does not require each name to be defined.resolve_boundary_libonly checks that the--boundary-libpath is a file. An archive built before this change does not definebaml_lib_release,baml_lib_interface_digest,baml_lib_host_reply, orbaml_lib_reply_sync. The shared library then links without error, andpack --native --sharedreports success. A host that calls one of these functions can fail when it resolves or calls it.The Linux link must fail when the boundary archive does not define a name from
BOUNDARY_EXPORTS. Check each name at link time, for example with GNU ld's--require-defined=<symbol>. The existing error message atnative_link.rs:876-880runs only after a failed link, so it does not report this case.