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

Create a compiled library file for Titan runtime #89

Open
gligneul opened this issue Dec 6, 2017 · 4 comments
Open

Create a compiled library file for Titan runtime #89

gligneul opened this issue Dec 6, 2017 · 4 comments

Comments

@gligneul
Copy link
Member

gligneul commented Dec 6, 2017

There is some runtime code embedded to the current compiler output. We should have a single .so/.a for the code shared between different Titan modules.
A solution for this issue will also fix #87.

@mascarenhas
Copy link
Member

I do not think this runtime should be a shared library, its size will probably not be big enough to offset the extra indirection. There is also the question of where the source for this runtime (and its compiled object file) is installed, and how the Titan compiler finds them (without inconveniencing the user).

@hugomg
Copy link
Contributor

hugomg commented Dec 6, 2017

I think the least inconvenient place to put the runtime would be bundled together with our version of Lua. (Yes, this would come at the cost of making it harder to run titan with an unmodified Lua)

@gligneul
Copy link
Member Author

gligneul commented Dec 7, 2017

This will only become a real problem when the runtime grow. Do we have any plans for a Titan standard library?

@mascarenhas
Copy link
Member

I think the standard library can just be a collection of regular modules, loaded by the standard module loading mechanism.

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