News for hackers. Stuff that matters.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Alex3917 on Monday October 18, 2021 @02:34PM (#28909473)
> It's literally everything you could want in a new MacBook Pro.

If it doesn't run VirtualBox then I can't use it to write code, so why does it even matter if it's faster?

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by plandis on Monday October 18, 2021 @05:11PM (#28911817)
> why does it even matter if it's faster?

Have you considered that plenty of people don’t need VirtualBox to write code?

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by tornato7 on Monday October 18, 2021 @04:53PM (#28911571)
Maybe you should be questioning why you need VirtualBox to write code
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by krono on Monday October 18, 2021 @05:43PM (#28912186)
Security, provisioning, dependency management, infosec, etc. the list of reasons for someone to develop in a VM is endless.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by minusf on Tuesday October 19, 2021 @05:49AM (#28916444)
yes. also vbox is not the only way to run VMs
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by solarmist on Monday October 18, 2021 @03:28PM (#28910362)
Parallels supports linux VMs. https://kb.parallels.com/128445

You could use that now or wait for virtual box to catch up (I assume).

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by fastball on Monday October 18, 2021 @08:58PM (#28913758)
I'm writing this comment from Ubuntu running on my M1 Macbook Pro, so...?
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Tempest1981 on Tuesday October 19, 2021 @12:25AM (#28914859)
How is the GPU performance?
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by fastball on Tuesday October 19, 2021 @11:19PM (#28926371)
No idea really, not sure I've done anything GPU-heavy on Ubuntu.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by idle_zealot on Monday October 18, 2021 @02:55PM (#28909858)
You can run Linux with UTM.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Alex3917 on Monday October 18, 2021 @03:08PM (#28910071)
Can I keep my existing vagrant / Ansible setup? Or, basically, what would I need to use in order to provision the instances?
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by ArchOversight on Monday October 18, 2021 @03:28PM (#28910359)
You can keep your ansible. Does vagrant support alternate providers for running VM's? Then yes, you can keep your vagrant too.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Alex3917 on Monday October 18, 2021 @06:18PM (#28912535)
It looks like Vagrant doesn't work yet with UTM: https://github.com/hashicorp/vagrant/issues/12518

Conceptually I'd love one of these machine, but realistically if I can't develop locally in an Ubuntu VM then I might as well just wait a year or two to buy one until that's possible. I'm not going to use Docker, and realistically I have zero interest in spending multiple weeks rewriting all of my provisioning scripts.

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by cassianoleal on Monday October 18, 2021 @07:22PM (#28913108)
Vagrant has a QEMU driver, which is what UTM uses anyway. I can't say it will do what you need the way you want but I suspect it's possible to get there.

QEMU can virtualise arm and emulate x86.

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Alex3917 on Monday October 18, 2021 @08:44PM (#28913679)
Thanks, I'll check this out! I just need to run Python on Ubuntu, so hopefully that isn't too crazy of a use case.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by nyadesu on Monday October 18, 2021 @04:37PM (#28911363)
You can always use docker
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Alex3917 on Monday October 18, 2021 @04:49PM (#28911526)
Docker doesn’t really work on Mac. Like it technically runs, but just barely. Because it uses containerization inside virtualization, it pegs the CPU just to run a hello world app and completely drains the battery in 30 min. Oh and the fans sound like an airplane taking off.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by cmckn on Monday October 18, 2021 @10:56PM (#28914380)
I don’t know anyone at work who would agree with this. Docker is fine on macOS, honestly always has been. Sure, it will show up in Activity Monitor, but so will any other software that is actually doing something. I have never seen my CPU peg because of Docker, and I regularly run large stacks, use Earthly for all my builds, etc. The overhead of the VM + containerd is truly not that large.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by astrange on Tuesday October 19, 2021 @07:43AM (#28917045)
CPU % in top and similar tools isn't a great proxy for energy usage anyway, it's a lot more complicated than that.
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by lkbm on Tuesday October 19, 2021 @08:50AM (#28917508)
Docker is terrible on Macs, but I used to run Docker+vscode+Firefox+Brave+Slack+misc. I'd run into issues on my 2015 MBP from time to time, but on the 2019 models it was fine.

gulp.watch would often eat an entire core, and stuff in Docker ran slower than on Linux, but my laptop could keep up. vscode didn't lag and Firefox ran just fine—all with 5+ Docker containers running.

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by Gigachad on Tuesday October 19, 2021 @12:07AM (#28914769)
I have no idea what you are talking about. I have about 7 containers running the full work app and I can't hear any fan noise and the laptop is running cold.

This thing is running Rails, mysql, elastic search, redis, mongodb, and workers inside docker. As well as nodejs, vscode, a handful of electron apps all at the same time and the laptop is cold.

Re:MacBook Pro 14-inch and MacBook Pro 16-inch by jordanthoms on Monday October 18, 2021 @05:39PM (#28912123)
Not my experience at all, you must have something weird in your setup. For a full dev environment I'm running containers with postgres, cockroachdb, several ruby apps, kafka, some JVM based stuff, and clickhouse and it does hit battery life a bit but certainly not pegging the CPU, actually it's using less than Slack...
Re:MacBook Pro 14-inch and MacBook Pro 16-inch by cassianoleal on Monday October 18, 2021 @07:24PM (#28913123)
Not my experience either on a fanless M1 Air. I can run lots of containers without it perceptibly heating up or slowing down. Battery life does suffer but I can still usually get at least 4-5h of solid programming like this.