You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-EnhancementNew feature or requestC-FFIForeign Function Interface, to be able to use Boa from a different language, such as CR-TriagedIssue reviewed by the maintainer team
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.
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.
A-EnhancementNew feature or requestC-FFIForeign Function Interface, to be able to use Boa from a different language, such as CR-TriagedIssue reviewed by the maintainer team
Activity
Razican commentedon 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
boaas a dependency.HalidOdat commentedon Apr 18, 2020
We could use
cbindgencrate to automatically generate C/C++ FFIs.attila-lin commentedon Apr 20, 2020
And it would be better to provide more accessibility to the engine, like https://duktape.org/api.html
bcr commentedon 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
evalis 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 atevalin its own FFI crate.jedel1043 commentedon Nov 29, 2023
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.
nekevss commentedon Sep 27, 2025
Follow up on this, we are currently using
diplomatfortemporal_rs's FFI.If we were to add a FFI, I'd highly recommend it.
Add initial C FFI bindings and error inspection (boa-dev#5618)