-
Notifications
You must be signed in to change notification settings - Fork 115
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
Modularize path to gsi and gsi-script #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@fare any comments? |
I'm in favor of minimizing configuration variables. |
@fare I'm not sure I follow. How can we keep the configuration file, but remove the variable? It seems to me that at least one variable is necessary, no? |
I think this one variable is fine; fare was just expressing his general distaste for configuration variables. |
I'm looking into making all accesses to What is the purpose of
|
gxi-build-script is necessary for deps generation in stdlib, as there is a requirement for gambit kernel symbols (long story short). |
I have 3 more commits ready:
I did some basic testing and everything is running fine. I will adjust the documentation once we settle on a design. I think the 3 additional commits will result in the cleanest design, but I might be missing something. What do you guys think? |
The diff is here: master...00vareladavid:dev_gxi |
the hardcoding in the magic is a bad idea i think (cf nixOS), it should go through env.. |
Also I am not sure it's an improvement to use a wrapper script, and if we decide to do so can we give it a name without an underscore (gerbil-gsi is much better than gerbil_gsi). @fare comments? |
@vyzo hardcoding what is a bad idea? (what should go through env?) |
meaning it shouldn't be |
I changed it because it felt like I suppose the comments below it should make its purpose clear either way, so I'm not opposed to changing it back |
If the script can be usefully called independently from the command-line, then the As for the syntax of the conf file — is the file going to be read by gerbil? Or will the config be baked in the executable? In the former case, the syntax needs to be defined more precisely than that of the shell (e.g. forbidding unescaped $ or ` or ", or some such). Note that for NixOS, I replace all the |
@fare There is a case where
The script should not be called from the command line, but the gambit interpreter still expects the shabang. EDIT: |
I thought about the 'thin wrapper vs conf file' some more. I concluded that there are no significant technical differences between the two approaches: both allow for a single point of configuration, both introduce a layer of indirection, both require an additional file. The only significant difference I see is that introducing a conf file will leave the project more susceptible to scope creep, precisely because it introduces a user friendly interface. I'm ok with either approach. The conf file should be ready in this current PR, but I can push the patch for the wrapper if you guys choose to go that route |
I think I prefer a conf file rather than a wrapper script. |
Ok. The latest commit should avoid any confusion about the shebang. This PR should be ready for a merge unless any more changes are necessary. |
ac39de4
to
211acc0
Compare
I don't know if this is still an issue, but FWIW I thought of a cleaner solution. Essentially replace Anyway, I'll be happy to make the changes myself if/when somebody cares EDIT: typo in command (now fixed) |
this looks better; let it bake. |
Shorter and idiomatic:
Of course, with NixOS, we'd have to bake the full path in the default. |
Fix for #21. It contains all the changes mentioned in #39.