-
Notifications
You must be signed in to change notification settings - Fork 20
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
Use module aliases instead of packs. #131
Comments
What do you mean? |
No, obuild makes packs for libraries, with recent versions of ocaml, it could use module aliases, which is much faster at link time, afaik. |
I see from version 4.02.0 byJacques Garrigue in this file: |
https://blogs.janestreet.com/better-namespaces-through-module-aliases/ |
You can see how I do it in CommonML - just look at the log output when it compiles the examples. Basically, if you invoke the right compilation commands, you get the equivalent of pack namespacing according to file name. |
It's known that module aliases increase build speed because they don't need to re-include the entire module implementation.
My project CommonML, uses module aliases to accomplish namespacing and I'd love to see
obuild
do the same:https://github.com/jordwalke/commonml
The text was updated successfully, but these errors were encountered: