Skip to content

Conversation

jprendes
Copy link
Contributor

Some more refactor of HostFunction.
In this PR:

  • the registration can't be made from the function anymore, and has to be done from the sandbox.
  • the registered function can return either the plain type T, or a Result<T>.
  • adds a new ParameterTuple trait that is used to define serializable input to a function.

@jprendes jprendes added kind/refactor For PRs that restructure or remove code without adding new functionality. area/API Related to the API or public interface labels May 14, 2025
@jprendes jprendes force-pushed the host_function_4 branch 2 times, most recently from 7feb6ba to cc2ca52 Compare May 14, 2025 22:44
@jprendes jprendes marked this pull request as ready for review May 14, 2025 23:20
Signed-off-by: Jorge Prendes <[email protected]>
@jprendes
Copy link
Contributor Author

@ludfjig @danbugs PTAL, thank! :-)

Copy link
Contributor

@danbugs danbugs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jprendes jprendes merged commit d353fc7 into hyperlight-dev:main May 15, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/API Related to the API or public interface kind/refactor For PRs that restructure or remove code without adding new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants