News for hackers. Stuff that matters.
Re:Ask HN: What’s a good laptop for software development at ... by emacs28 on Wednesday April 20, 2022 @09:19AM (#31096485)
One thing that deters me a bit from using macOS is the slower docker performance compared to linux. Anyone here have workarounds for this?
Re:Ask HN: What’s a good laptop for software development at ... by unilynx on Wednesday April 20, 2022 @09:35AM (#31096715)
If your work is even a bit I/O sensitive, avoid mounting OSX folders and use named volume mounts. They are much faster as they don't cross the virtualisation boundary but you need to be careful to not destroy them if they contain data you wanted to keep

For me personally, disable the new virtualization framework and gfuse options. I hope they're working better for others, but I'm not seeing any benefits yet and CPU usage dropped significantly after disabling these

Re:Ask HN: What’s a good laptop for software development at ... by oauea on Wednesday April 20, 2022 @09:24AM (#31096556)
> Anyone here have workarounds for this?

Sure, use Linux.

Re:Ask HN: What’s a good laptop for software development at ... by fernandotakai on Wednesday April 20, 2022 @10:38AM (#31097603)
that's what i did until the company i work for made me use a macbook :(

now i have to deal with horrible performance everywhere because of falcon agent and docker.

Re:Ask HN: What’s a good laptop for software development at ... by blablabla123 on Wednesday April 20, 2022 @09:32AM (#31096664)
The biggest problem seems to be the slow disk performance when working with volumes. At least in personal projects I could make this fast by making use of Docker's caching in creative ways. E.g. first copying the package deps, installing them and afterwards copying the (often changing) source. Also sometimes when a volume is needed it can be enough to make it a single file volume.
Re:Ask HN: What’s a good laptop for software development at ... by chociej on Wednesday April 20, 2022 @11:31AM (#31098392)
I just put linux on the MBP in the end. Much better docker experience. I can't believe companies elect to pay for Docker Desktop only to have it be so crappy.
Re:Ask HN: What’s a good laptop for software development at ... by rileymichael on Wednesday April 20, 2022 @09:30AM (#31096649)
Using VirtioFS and the new virtualization framework makes it bearable.
Re:Ask HN: What’s a good laptop for software development at ... by hk__2 on Wednesday April 20, 2022 @09:23AM (#31096538)
What’s your use-case? I have no issue with Docker perf on macOS …because I don’t have anything Docker-based that’s perf-intensive.