Earlier quoted context omitted.
> Of course we could use Docker, but then on Mac our dev process would be 3x slower. Doesn't devbox depend on Docker, though? I figure any performance losses from Docker would happen with this too.
The dependency on Docker only exists for when you want to turn your shell into a container – but it's not otherwise used when you're just running a shell locally. When writing javascript there's often a desire to have "isomorphic" or "universal" applications. Write the code once and run it in _either_ the client or the _server_. Devbox is taking a similar approach to the development environment: declare it once, run…
Show HN: Devbox – Easy, predictable shells and containers
131–140 of 196 posts
Re: Show HN: Devbox – Easy, predictable shells and containers
#132Earlier quoted context omitted.
Nix absolutely needed a wrapper like this to be used 'in the real world.' When you think about bringing it to production (eg getting dev teams to migrate to it), Nix goes from a genuinely interesting idea to an "oh, that's cute" experimental toy because no one is going to spend hours learning Nix's weird DSL. It's simply not approachable in its base form. I spent hours converting my devboxes to NixOS and managing my…
My theory is that we need better learning resources (that’s why I’m working on https://mimoo.github.io/nixbyexample/ ), better tooling (debugging or starting a project from scratch is hard), better integration with rust/js/etc. projects based on convention (and not configuration: I shouldn’t have to point to more than a Cargo.toml or package.json and nix should do the rest)
Re: Show HN: Devbox – Easy, predictable shells and containers
#133So essentially this seems like another implementation of what toolbox and distrobox is implementing. https://github.com/containers/toolbox/ https://github.com/89luca89/distrobox With the downside of not having the option to select a Linux distro and being locked to the nixpkgs repositories?
No, it uses native Nix directly on your machine - Linux, Mac, or Windows. Its integration with Docker is that it can _build_ Docker images from the Nix packages in your "devbox".
Re: Show HN: Devbox – Easy, predictable shells and containers
#134A consistent shell for everyone on the team Declare the list of tools needed by your project via a devbox.json file and run devbox shell. Everyone working on the project gets a shell environment with the exact same version of those tools. Why not just use a Dockerfile?
Dockerfiles are repeatable but they are not reproducible - they don't give you the same version of everything every time you run them.
Re: Show HN: Devbox – Easy, predictable shells and containers
#135So essentially this seems like another implementation of what toolbox and distrobox is implementing. https://github.com/containers/toolbox/ https://github.com/89luca89/distrobox With the downside of not having the option to select a Linux distro and being locked to the nixpkgs repositories?
No, it uses native Nix directly on your machine - Linux, Mac, or Windows. Its integration with Docker is that it can _build_ Docker images from the Nix packages in your "devbox".
Re: Show HN: Devbox – Easy, predictable shells and containers
#136Earlier quoted context omitted.
That is how I and everybody else were developing software at my university around 1990. A few HP servers, character terminals or X11 servers. Then everybody got a Windows desktop at home powerful enough to work as on those X servers and it was game over. I never saw a company developing on a shared server. Do you work for one doing that? In that environment I expect developers to need separate environments not to sto…
I've worked at a company where we used a shared server, relatively recently. Isolated environments were different /home directories and agreed port ranges. Actions that interfered with other folk were mistakes that happened once, because we were (for the most part) not a bunch of raging arseholes and were capable of talking to each other like adults. It was a lovely environment to work in, in part because sharing our…
Re: Show HN: Devbox – Easy, predictable shells and containers
#137Re: Show HN: Devbox – Easy, predictable shells and containers
#138Looks really good. A layer over Nix that makes it tolerable sounds like a godsend. I’ve had a TODO item for “somehow use Nix for our dev env” at Notion since 2019, but I keep kicking the can down the road because its better to tolerate a 500 line setup script than learn all the Nix stuff. Of course we could use Docker, but then on Mac our dev process would be 3x slower. Congrats to Daniel and the team! Excited to see…
> Of course we could use Docker, but then on Mac our dev process would be 3x slower Out of interest, what in your dev process makes using containers so impactful?
Re: Show HN: Devbox – Easy, predictable shells and containers
#139Extremely, violently unpopular opinion: a team of people developing on their laptops is an anti-pattern. I know what you're gonna say. You'll say, "It's 2022. We developers don't have internet connections; even when we do, our internet is off most of the time, and we can barely transfer 1.25 megabytes per second. How could we possibly use an IDE and filesystem monitor to copy a 10kB source file when we write to it, t…
Curious engineers with oddball configurations greatly contribute to the overall health of a codebase. Forcing these folks to use a standardized configuration is a missed opportunity at best, and disgruntling at worst.
Re: Show HN: Devbox – Easy, predictable shells and containers
#140Looks really good. A layer over Nix that makes it tolerable sounds like a godsend. I’ve had a TODO item for “somehow use Nix for our dev env” at Notion since 2019, but I keep kicking the can down the road because its better to tolerate a 500 line setup script than learn all the Nix stuff. Of course we could use Docker, but then on Mac our dev process would be 3x slower. Congrats to Daniel and the team! Excited to see…
> Of course we could use Docker, but then on Mac our dev process would be 3x slower Out of interest, what in your dev process makes using containers so impactful?