News for hackers. Stuff that matters.
Re:macOS Nix setup: an alternative to Homebrew (2020) by LinXitoW on Wednesday July 14, 2021 @06:14AM (#27831426)
When I tried something like this, write heavy activities were pretty slow. Extreme example was running something like "npm install" (write many small files) on the host. That took about 10x time compared to doing it in WSL. I've had similar slow performance with shared folders in things like Vagrant.

Disclaimer: I did this 2-ish years ago, it may have changed by now.

Re:macOS Nix setup: an alternative to Homebrew (2020) by mekster on Wednesday July 14, 2021 @06:47AM (#27831637)
Why run npm on the wrong OS? It can easily break building a binary for a wrong platform.
Re:macOS Nix setup: an alternative to Homebrew (2020) by mikepurvis on Wednesday July 14, 2021 @03:27PM (#27837305)
Not sure exactly what the situation was here, but if it was an NTFS folder from Windows shared into the VM/WSL, then you are indeed running the npm operation in the inner system but paying the cost of writing thousands of tiny files across that translation layer.