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

Allow embedding bun as a C-compatible library #14252

Open
dunglas opened this issue Sep 30, 2024 · 1 comment
Open

Allow embedding bun as a C-compatible library #14252

dunglas opened this issue Sep 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dunglas
Copy link

dunglas commented Sep 30, 2024

What is the problem this feature would solve?

Node as well as some other popular scripting languages runtime (PHP, Python...) provide an API to embed the engine in other programming languages (C, C++, Go) as a dynamic or shared library.

What is the feature you are proposing to solve the problem?

Exposing Bun as a library usable in programs able to call libraries using the C conventions (almost all existing programming languages).

Calling Zig from C looks possible, but experimental: https://github.com/ssteinbach/c_call_zig

What alternatives have you considered?

No response

@dunglas dunglas added the enhancement New feature or request label Sep 30, 2024
@DeadWisdom
Copy link

If I could embed bun, then I could be running typescript in my python servers or in Unreal, which would be super cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants