Skip to content
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

Expose SDK funtionality to allow easier creation of custom runtimes #665

Open
edwardpeters opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@edwardpeters
Copy link
Contributor

Feature Request

Description of Problem:

Ability for users to create custom runtimes which re-use existing SDK methods, evaluation loop and Native function utilities. (Currently these options exist but are marked private[runtime]).

One use case of this is to allow some semblance of FFIs, tho only to the user extending the runtime (not anyone calling the extension.)

Potential Solutions:

Minimal PoC exists in https://github.com/edwardpeters/morphir-scala-interpreter/tree/ffi-poc

Simply removing some private markers would be sufficient to let users write their own extension functions.

  • This would allow the extended runtimes to have safety issues such as nondeterminism (tho would not pass that risk on to the users of those runtimes)
  • This would expose some limited implementation details (tho many of the details are already exposed, as the structure of RTValue has wound up in "public" code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant