4 ms·
> We think we’re just scratching the surface with what we can do with Nix. It’s an outrageously underrated technology. Super agree and watching from afar. Woul
by ghuntley 5y ago
> We think we’re just scratching the surface with what we can do with Nix. It’s an outrageously underrated technology.
Super agree and watching from afar. Would love to see a blog post from replit "why not docker" (which is likely to go into how docker is the wrong sort of encapsulation, caching, source/binary substitution?)
- otabdeveloper4 5y agoDocker and Nix are orthogonal; Docker is mostly a tool for packaging things in a standard way, Nix is a way of specifying build instructions. But many people (ab)use Docker to solve the kinds of problems that Nix would have been better suited to solve.
- garethrowlands 5y agoSome people use Nix to build Docker images. They say it's very good for that.
- wlib 5y agoIt is, nix is more declarative than a dockerfile and can even optimize the layers based on the dependency graph. See https://grahamc.com/blog/nix-and-layered-docker-images https://grahamc.com/blog/nix-and-layered-docker-images for a good explanation and https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTools https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-dockerTool... for all of nix’s container related documentation.