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

Missing ability to integrate interpreter into C++? #2365

Closed
Xazax-hun opened this issue Nov 29, 2022 · 3 comments
Closed

Missing ability to integrate interpreter into C++? #2365

Xazax-hun opened this issue Nov 29, 2022 · 3 comments

Comments

@Xazax-hun
Copy link
Contributor

If one already integrated the C++ compiler into a project, e.g., it can programmatically populate input relations, and process the output relations, it would be great if it was possible to use the interpreter for quick experiments when one does not need to change the input relations. This would save the time of recompiling everything, and the interpreter should be sufficiently fast for smaller inputs.

@b-scholz
Copy link
Member

We would need to add a method to the SouffleProgram class of the SouffleInterface.h. It should work, but we could not use the pre-processor.

@quentin
Copy link
Member

quentin commented Nov 30, 2022

Hi, I am currently integrating changes that goes into this direction: reuse of the souffle library. Stay tuned.

@quentin
Copy link
Member

quentin commented Feb 22, 2023

The souffle main driver is now usable as a library, see MainDriver.h in #2366.

There is a usage example in test https://github.com/souffle-lang/souffle/blob/master/tests/libsouffle_interface/vfs_overlay_test.cpp

Note that the souffle library interface is subject to changes at any time without guarantee of compatibility.

@quentin quentin closed this as completed Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants