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

Dynamically Discover Core Libraries? #344

Open
jcburley opened this issue Feb 5, 2020 · 1 comment
Open

Dynamically Discover Core Libraries? #344

jcburley opened this issue Feb 5, 2020 · 1 comment

Comments

@jcburley
Copy link
Contributor

jcburley commented Feb 5, 2020

Rather than maintain static lists of core namespaces and their source files in core/data/, consider structuring that directory as per usual Joker namespace rules and having gen_data (and/or gen_code) dynamically discover and process them.

core/data/joker/core.joke would still be loaded first and treated specially, but the rest would be loaded as needed based on the usual (ns ...) specifications.

While this would make official Joker more maintainable for the occasional addition of a core namespace, it could make Joker much more attractive to end users who wish to "compile", or embed, their own (or 3rd-party) libraries in the executable -- they could just drop the source code into the appropriate directory and rebuild.

@harold
Copy link
Contributor

harold commented Dec 12, 2023

An interesting idea!

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