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

Port over makes essentials #27

Closed
blaggacao opened this issue Feb 10, 2022 · 4 comments
Closed

Port over makes essentials #27

blaggacao opened this issue Feb 10, 2022 · 4 comments

Comments

@blaggacao
Copy link
Collaborator

blaggacao commented Feb 10, 2022

I think we can ship makes-essentials such as https://github.com/fluidattacks/makes/blob/main/src/args/make-template/builder.sh direcly as outputs.library.<system>.std-nameXY. (but only the essentials to limit the scope of "opinionating")

/cc @kamadorueda @tomberek wdyt?

(poor man's implementation of env substitution)

@blaggacao blaggacao changed the title Port over makes essentialls Port over makes essentials Feb 10, 2022
@blaggacao
Copy link
Collaborator Author

blaggacao commented Feb 11, 2022

especially [things] like runner and writers..

(from #28 / @GTrunSec)

@GTrunSec
Copy link
Contributor

GTrunSec commented Feb 14, 2022

Yes, I agree that the makes should be a runner in std as a part of the shared library.
Because of the existing work between makes and some features, it is charming to integrate as a relatively complete runner in std. But here, I want to talk about another idea about the writer. I would like to recommend using the following tools as standard writers for a few specified languages.

  1. https://github.com/kootenpv/cliche [python]
  2. https://comonicon.org/stable/ [julia]

These projects have similar functional features that direct us to write standard scripts and have a beautiful input and output. Furthermore, makes and std will associate script set up a more independent environment for each command of the writer, and we don't need to write a primordial script.

The last point is about some digressions. As a Julia lang fan and comonicon inspired me, I think it is also an excellent option to use Julia to implement the function of the std. @colinxs If you could give some advice about julia to std that we can talk about in another issue.

@blaggacao
Copy link
Collaborator Author

@GTrunSec I think there is a misunderstanding, here:

  • Runners: std ls #17 Just Integration #8
  • makes has a nice agnostic library to use for things like injecting bash arrays etc. Things that don't work perfect in nixpkgs (or are not homogeneous)

I think it is very worthwhile indeed to provide a library of writers, starting from bash and also including some of these frameworks in elegant ways: writeClicheApplication / writeComoniconApplication.

But since there are many, many, it might also make sense to keep writers in a separate repo (with a more flexible future release cycle).

@blaggacao
Copy link
Collaborator Author

I think we don't necessarily want to recreate a task library in std. We still may provide a better integration with makes, in future, though.

@blaggacao blaggacao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2022
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