HackerTrans
TopNewTrendsCommentsPastAskShowJobs

999_cirno

23 karmajoined 10 saat önce

comments

999_cirno
·2 saat önce·discuss
> It's just a linux vm running normal docker engine

OCI compatible, but not docker

https://github.com/apple/container/blob/main/docs/technical-...

Actually makes use of Virtualization.framework mentioned above.
999_cirno
·2 saat önce·discuss
Tart and VirtualBuddy et cetera are convenience wrappers (settings, pulling packages, friendly UI, and so on), the OS (Virtualization.framework) here does the actual work. If someone for personal use constructs a bad UI or chooses to store their settings on a public server then that's on them, but everyone has to learn somehow

Not to forget, people are letting agents run loose in their home directory on their main box! Surely a VM solution may be at least step better
999_cirno
·5 saat önce·discuss
In fact, I suggest reviewing the documentation to assess your own level:

https://developer.apple.com/documentation/virtualization/run...

If the below sounds too complex to work with, can review more basics first. Can start with a Swift tutorial

  virtualMachine.start(completionHandler: { (result) in
      if case let .failure(error) = result {
           fatalError("Virtual machine failed to start with \(error)")
      }
  })
999_cirno
·6 saat önce·discuss
Strong StackOverflow "don't do anything new, god forbid you may actually learn something" vibes

On "Hacker" News of all places :)
999_cirno
·7 saat önce·discuss
Of course, if you're not comfortable with reading or designing code, or don't feel like tinkering, you can use an existing project and they work great

But it is to note that the OS APIs do the heavy lifting, the projects are just wrappers
999_cirno
·10 saat önce·discuss
> require you to run the agent on your Mac instead of in a Sandbox

You don't have to! All recent Macs come with nearly zero perf cost virtualization. You can easily run Mac or Linux VMs assuming same architecture. Use it all the time for development and whatever.

Use Tart [1] or VirtualBuddy [2], both open-source, for a packaged solution. Or in the spirit of this post, vibe code your own wrapper around the OS API [3]

More recently, there are also Apple containers [4]

[1] https://tart.run/

[2] https://github.com/insidegui/VirtualBuddy

[3] https://developer.apple.com/documentation/virtualization

[4] https://github.com/apple/container