Skip to content

Any plan for the FFI? #332

Open
Open

Description

@attila-lin

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.

Activity

  1. added
    A-Enhancement
    Good First Issue
    on Apr 18, 2020
  2. Razican commented on Apr 18, 2020

    @Razican
    Member

    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.

  3. added
    C-FFI
    on Apr 18, 2020
  4. HalidOdat commented on Apr 18, 2020

    @HalidOdat
    Member

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

  5. attila-lin commented on Apr 20, 2020

    @attila-lin
    ContributorAuthor

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

  6. bcr commented on Sep 26, 2022

    @bcr

    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.

  7. jedel1043 commented on Nov 29, 2023

    @jedel1043
    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.

  8. added
    R-Triaged
    and removed
    Good First Issue
    on Apr 12, 2024
  9. nekevss commented on Sep 27, 2025

    @nekevss
    Member

    Follow up on this, we are currently using diplomat for temporal_rs's FFI.

    If we were to add a FFI, I'd highly recommend it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EnhancementC-FFIR-Triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions