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

Any plan for the FFI? #332

Open
attila-lin opened this issue Apr 18, 2020 · 5 comments
Open

Any plan for the FFI? #332

attila-lin opened this issue Apr 18, 2020 · 5 comments
Labels
enhancement New feature or request FFI Foreign Function Interface, to be able to use Boa from a different language, such as C triaged Issue reviewed by the maintainer team

Comments

@attila-lin
Copy link
Contributor

Nice work!
But as an embeddable engine, I think it would also be nice to provide some API functions for the other languages to use.

@Razican Razican added enhancement New feature or request good first issue Good for newcomers labels Apr 18, 2020
@Razican
Copy link
Member

Razican commented Apr 18, 2020

This would be an interesting addition. I would do it in a different crate in the workspace, with only the FFI, using boa as a dependency.

@Razican Razican added the FFI Foreign Function Interface, to be able to use Boa from a different language, such as C label Apr 18, 2020
@HalidOdat
Copy link
Member

We could use cbindgen crate to automatically generate C/C++ FFIs.

@attila-lin
Copy link
Contributor Author

And it would be better to provide more accessibility to the engine, like https://duktape.org/api.html

@bcr
Copy link

bcr commented Sep 26, 2022

New Guy here. I'm sniffing around this. I think the problem here is going to be more one of defining scope and granularity. Like I think just implementing an eval is one thing, but those fine folks at duktape have a dukload of things they expose. Making it similarly comprehensive for Boa is probably... hard. But I can take a whack at eval in its own FFI crate.

@bcr bcr mentioned this issue Sep 26, 2022
6 tasks
@jedel1043
Copy link
Member

We discussed this in our triage and we agreed that we wanted to experiment with the diplomat tool first before commiting to an FFI interface, since it makes the maintenance work more manageable.

@jedel1043 jedel1043 added triaged Issue reviewed by the maintainer team and removed good first issue Good for newcomers labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FFI Foreign Function Interface, to be able to use Boa from a different language, such as C triaged Issue reviewed by the maintainer team
Projects
None yet
Development

No branches or pull requests

5 participants