What do you guys think about having an explicit experimental/namespace directory in lib/, nixos/, doc/ (etc…), for every file where the design is still in-flux (like modular services) ?
This would allow us to merge core PRs for initiatives like Modular Services after they got a few discussion iterations but need actual usage to see limitations, and then we can build on them in other PRs.
.. And this way it’s clear to people that importing/copying stuff from there is risky and may change at any time.
We could even progressively stabilize things to keep the impl of something experimental, but its consumers can be stable. (a bit like the Rust compiler that can use nightly features internally)
And we’d have a section/page/tag in the docs to list experiments / explicit the fact that a design is generally wanted but the exact design isn’t stable yet.
Has such thing be proposed before already? (can’t find it with forum search if so )
About using the Github stacked PR system: I think it’s okay-ish for small stacks but can get hairy (for people not using jj (yet)) or if PRs order is not important after a few base ones.
Love the idea of having a concept of experimental.
I can see having experimental options and experimental modules and experimental packages, and maybe experimental humor.
What is an explicit namespace directory? Is the idea that that an experimental ‘foo’ gains the experimental ‘tag’ which requires it to be in the experimental directory?
Personally, I’d rather stuff like this happens in a fork at first. There’s many benefits, like not being beholden to nixpkgs’ strict PR guidelines which can sometimes be a barrier to experimentation. Two, it reduces the level of churn in the nixpkgs monorepo, which is always an issue to resolve.
So personally, as much as I appreciate the idea, I’d rather we keep the canonical repo for things we consider somewhat stable, and personally I’d even remove current things like the modular services implementations, so they can be developed externally. Maybe there’s a way of creating tooling for something like this, but with the PR and issue lists in nixpkgs the way they are, I’d rather not bloat those even more with stuff under heavy churn.
Also, what happens to modules when they get moved out of experimental? If they are under an experimental.moduleName namespace, what sort of warnings do we give when those are instantiated? What sort of warnings, heads-up, etc, do we give when things are planning to be/are moved out of experimental into stable? Again in my own opinion, I’d rather modules be developed externally and moved into the main nixpkgs monorepo when they are stable for usage.
All my opinion of course, and while I think the spirit of this idea is good, it’s ultimately just something else to keep track of. Nixpkgs is already pretty spotty when it comes to maintainability, I would not want it to get even worse with an experimental module namespace around as well.