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

Package compiler as such #23049

Open
arnetheduck opened this issue Dec 11, 2023 · 2 comments
Open

Package compiler as such #23049

arnetheduck opened this issue Dec 11, 2023 · 2 comments

Comments

@arnetheduck
Copy link
Contributor

Description

In addition to the compiler not being available via nimble, the compiler packaging as exposed by the nimble file is inconvenient to import.

Because of name conflicts, the compiler should ideally be packaged such that imports include compiler/ to disambiguate packages such as compiler/options, else it becomes hard to use it in tooling.

Having access to the compiler code in tooling is important - at the same time, it is very inefficient for tooling to follow the same slow release cycle as the compiler / language itself.

Nim Version

devel

Current Output

No response

Expected Output

No response

Possible Solution

No response

Additional Information

No response

@beef331
Copy link
Collaborator

beef331 commented Dec 11, 2023

One can do import "$nim" / compiler /.... which will use the compiler source that is with whatever Nim compiler is being used(assuming it's in the right directory and shipped with the compiler).

@arnetheduck
Copy link
Contributor Author

with whatever Nim compiler

ooh, that's a nice hack / workaround - however, tooling will typically require a very specific version of the compiler source code - ideally the one it actually asks for in the nimble file which doesn't necessarily have to be the same as the one being used for compilation.

Ideally, the compiler would be a library just like any other dependency so that the really most basic tooling works with it, starting with its use in a package manager.

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