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

automate creating nix packages #115

Open
KiaraGrouwstra opened this issue Mar 24, 2019 · 2 comments
Open

automate creating nix packages #115

KiaraGrouwstra opened this issue Mar 24, 2019 · 2 comments

Comments

@KiaraGrouwstra
Copy link
Owner

This is kind of a meta-issue -- many other (dormant) issues here come down to packaging a package for Nix. I wonder if it may be possible to use machine learning to try to package software.

Initial guesses may result in packaging errors, but the point would be to train it on how to deal with different types of errors, by generating sample solutions by deviating from working packages, showing the error, then showing the (original) solution.

Ideas on how to tackle this:

  • tree prediction: recursive neural networks, predicting the structure of a whole nix expression?
  • reinforcement learning: predicting actions of how to change a file/AST, maybe stepping back to the previous version?
@KiaraGrouwstra
Copy link
Owner Author

also, learn from Hydra errors and subsequent fixes.

@KiaraGrouwstra
Copy link
Owner Author

notes on this:

auto-nix: use ML to generate nix configs to package software; train by randomly altering existing nix expressions (randomly remove a part), teaching it the proper solution (fixed original) for different error messages - https://github.com/jameysharp/autobake

related: tree-sitter AST diffs for nix (https://discourse.nixos.org/t/announcing-tree-sitter-nix/2483)

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

1 participant