HackerTrans
TopNewTrendsCommentsPastAskShowJobs

999_cirno

23 karmajoined 8 ore fa

comments

999_cirno
·31 secondi fa·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-...
999_cirno
·18 minuti fa·discuss
I could never have thought adding the word "vibe" would draw so much public ire :)

I for one would encourage people to learn how the stuff works, including various low-level internals. But Tart and VirtualBuddy et cetera are again convenience wrappers (settings, pulling packages, friendly UI, and so on), the OS framework (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. And maybe a good learning opportunity, everyone has to start somewhere.

Not to forget, people are letting agents run loose in their home directory on their main box, surely we can do better than that here.
999_cirno
·4 ore fa·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
·4 ore fa·discuss
Strong StackOverflow "don't do anything new, god forbid you may actually learn something" vibes

On "Hacker" News of all places :)
999_cirno
·5 ore fa·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
·8 ore fa·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