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

Is It Possible to Link External Libraries with Javy? #749

Open
HyperDwarf opened this issue Sep 10, 2024 · 3 comments
Open

Is It Possible to Link External Libraries with Javy? #749

HyperDwarf opened this issue Sep 10, 2024 · 3 comments
Labels
question Further information is requested

Comments

@HyperDwarf
Copy link

What is your question?

As long as Javy provides zero support for CommonJS / NodeJS API, I would have to implement some stuffs like json parsing, compression and RSA signing by myself in order to use Javy.
If Javy eventually compiles js into wasm, are there any chances of using C libraries that also target WebAssembly in Javy?

@HyperDwarf HyperDwarf added the question Further information is requested label Sep 10, 2024
@saulecabrera
Copy link
Member

If Javy eventually compiles js into wasm, are there any chances of using C libraries that also target WebAssembly in Javy?

Currently this is not possible, however, it's in our roadmap to allow extensibility in Javy generated modules.

stuffs like json parsing

A clarification: Javy does support JSON parsing/stringifying, in fact as of the latest changes in main, you can use a faster more performant JSON implementation based on SIMD .

@HyperDwarf
Copy link
Author

HyperDwarf commented Sep 10, 2024

Currently this is not possible, however, it's in our roadmap to allow extensibility in Javy generated modules.

Many thanks for the reply.

A clarification: Javy does support JSON parsing/stringifying, in fact as of the latest changes in main, you can use a faster more performant JSON implementation based on SIMD .

I didn't noticed that there's a support for JSON serialization.
Could you shed some light on the list of built-in APIs in Javy? I haven't been able to find it anywhere.
It seems that most Node.JS modules like crypto are not supported by Javy, but I am not pretty sure what is supported at this point.

@saulecabrera saulecabrera mentioned this issue Sep 13, 2024
3 tasks
@saulecabrera
Copy link
Member

Once #752 lands, we'll have an official document on the API support: https://github.com/bytecodealliance/javy/blob/dae9fde26850d266944fe8eac28c83ba70447de7/docs/docs-using-js-api-support.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants