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

Add example involving JavaScript guest functions #46

Open
cloudspeech opened this issue Nov 8, 2024 · 2 comments
Open

Add example involving JavaScript guest functions #46

cloudspeech opened this issue Nov 8, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@cloudspeech
Copy link

I am intrigued by this project, but can't help noting the lack of even remotely real-life examples. JavaScript is a popular choice for FaaS providers, cf. https://blog.cloudflare.com/introducing-cloudflare-workers/.

How about a worked example using e.g. Bellard's QuickJS?

Even if it showed only how to run user-defined math functions under Hyperlight, it would go a long way towards more realism.

Notes on how to add networking would be a big plus, of course.

@jeromegn
Copy link

jeromegn commented Nov 8, 2024

I would also be interested in this.

I just played with hyperlight, but I couldn't get anything useful for running untrusted code in it. The no-std and "no libc" requirements prevent a lot of use cases. Out of the box, I wasn't able to get deno or rquickjs to compile under these conditions. I think rhai might be workable.

@kumargu
Copy link

kumargu commented Nov 13, 2024

On similar lines, can we have examples of JAVA guest functions? I saw the C execution of guest functions needed a FFI calls, do we need JNI bindings to call JAVA code?

@devigned devigned assigned devigned and ludfjig and unassigned devigned Nov 19, 2024
@danbugs danbugs added enhancement New feature or request and removed needs review labels Nov 20, 2024
@danbugs danbugs added this to the v0.2.0 milestone Nov 20, 2024
@danbugs danbugs added the documentation Improvements or additions to documentation label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants