3 ms·
Honestly just start "vibe coding". After some discussion and iteration with Copilot I had a derivation that pulls the CSI protobuf spec and dumps python code a
by lillecarl 1y ago
Honestly just start "vibe coding".
After some discussion and iteration with Copilot I had a derivation that pulls the CSI protobuf spec and dumps python code and types into something LARPing as a real python library.
A few hours later I implemented my own CSI driver using these things.
Github crawls nixpkgs and everyone and their aunt have public nixos configs, the LLM is good at Nix.
That all nix build instructions are bash isn't the worst, and I hate bash. You can always create a python script to call in a derivation if you need.
- bjackman 1y agoYeah I have had some luck with vibe coding Nix but also I've found you have to be extremely cautious. It bullshits a LOT more than with other coding things I use LLMs for. This has led me on a couple of wild goose chases. I think it helps to have comments like # AN AI WROTE THIS BIT, REUSE WITH CAUTION
- lillecarl 1y agoIt guided me to write the Nix expression to package the grpc libs, then it implemented a complete CSI interface with hostPath mounts that I could tweak afterwards. Also very good at making Kubernetes manifests, and CRD manifests and other config-like things.