News for hackers. Stuff that matters.
Re:Show HN: Devbox – Easy, predictable shells and containers by justinsaccount on Thursday August 25, 2022 @08:01PM (#32601640)
This is a cool project and yay nix, but:

> Inside a container the file system is very slow

Because you are not using "a container".

You are using a container that happens to be running in a linux VM on your OS X laptop. It's not the containers fault, it's the entire virtual machine that you are running because you're trying to run technology built on top of one operating system while running a completely different one.

Re:Show HN: Devbox – Easy, predictable shells and containers by endorphine on Thursday August 25, 2022 @08:36PM (#32601907)
This. Put another way: it's slow only because you're on macOS and not on Linux.
Re:Show HN: Devbox – Easy, predictable shells and containers by neop1x on Monday August 29, 2022 @06:55AM (#32636649)
That's why Linux needs more love.

I find it sad that many people use Docker, but the majority of them run Linux in a VM inside an expensive proprietary platform to do so, sometimes without even realizing it.

Meanwhile, the Linux desktop ecosystem is deteriorating and should be used more and receive more financial support.

Re:Show HN: Devbox – Easy, predictable shells and containers by dloreto on Thursday August 25, 2022 @08:43PM (#32601954)
Totally fair.
Re:Show HN: Devbox – Easy, predictable shells and containers by throwaway892238 on Thursday August 25, 2022 @09:25PM (#32602255)
Overlay copy-on-write filesystems are slow. I think most container runtimes use them.
Re:Show HN: Devbox – Easy, predictable shells and containers by baq on Friday August 26, 2022 @07:13AM (#32605853)
compared to full-VMs-pretending-to-be-containers everything is fast.

it seems like everybody here is using Macs for development to the point that if you don't say you aren't, you are assumed to be on a mac. Windows with WSL2 is actually pleasant to use, I can recommend trying it out. while WSL2 is a VM technically, the level of integration makes it basically native (if you use the VM disk for your workspace, which you should.)

Re:Show HN: Devbox – Easy, predictable shells and containers by justinsaccount on Friday August 26, 2022 @09:24AM (#32607173)
> if you use the VM disk for your workspace, which you should.

Yep, if you try to build something that is stored on /mnt/c you'll have the same horrible performance.

Re:Show HN: Devbox – Easy, predictable shells and containers by justinsaccount on Friday August 26, 2022 @09:23AM (#32607164)
It's not the COW filesystem that is slow, it's bind mounting the host filesystem into the VM. This ends up using something like 9p or sshfs.