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 eval function and example #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dasimmet
Copy link

Hi, interesting peace of software,

one way to tackle lots of back&forth -es between wasm and js would be to pass bigger scripts from @embed to js,
then eval() them.

As for security concerns i dont think it's worse then calling any global, as long as the script is not templated.
It may be a performance/debuggability hit though.

It would be interesting to have the scripts transpiled/minified from typescript when running zig build.
Same goes for the Host JS module itself.

I was able to run the example with "bun run start" instead of npm,
It would be awesome to have something like this integrated, but i dont think they have a proper API (yet).

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

Successfully merging this pull request may close these issues.

1 participant