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

AAFFI #1

Open
pixelcmtd opened this issue Apr 25, 2021 · 1 comment
Open

AAFFI #1

pixelcmtd opened this issue Apr 25, 2021 · 1 comment
Assignees

Comments

@pixelcmtd
Copy link
Member

An Advanced FFI has to happen! We need a function that you can just throw an so/dylib/dll at that then makes you bindings for it. We need it to be completely constexpr (it has to run at compile time and statically link the lib in) and fully cross-platform. (Android and iOS support is actually quite easy if it's compile-time) Maybe having a C++ header would make this a little bit easier for the time being (let's just use libclang), but ideally it would even work without.

This feature is required for Adscriptum, because then we can just link in Qt and we have a UI.

If we're gonna make a language package manager, it should also support specifying C/C++ dependencies.

And support for Rust might be cool at some point, but that shouldn't be a priority rn.

@pixelcmtd
Copy link
Member Author

actually i just realised that it makes a little more sense to just link with object files compiled from c++

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

No branches or pull requests

2 participants