News for hackers. Stuff that matters.
Re:Apple Announces Foundation Models and Containerization fr... by bandoti on Monday June 09, 2025 @02:41PM (#44227726)
What about macOS being derived from BSD? Isn’t that where containers came from: BSD jails?

I know the container ecosystem largely targets Linux just curious what people’s thoughts are on that.

Re:Apple Announces Foundation Models and Containerization fr... by p_ing on Monday June 09, 2025 @03:23PM (#44228312)
OS X pulls some components of FreeBSD into kernel space, but not all (and those are very old at this point). It also uses various BSD bits for userspace.

Good read from horse mouth:

https://developer.apple.com/library/archive/documentation/Da...

Re:Apple Announces Foundation Models and Containerization fr... by bandoti on Monday June 09, 2025 @04:25PM (#44229045)
Thank you—I’ll give that a read. :)
Re:Apple Announces Foundation Models and Containerization fr... by hangonhn on Monday June 09, 2025 @02:56PM (#44227986)
Conceptually similar but different implementations. Containers uses cgroups in Linux and there is also file system and network virtualization as well. It's not impossible but it would require quite a bit of work.
Re:Apple Announces Foundation Models and Containerization fr... by McAlpine5892 on Monday June 09, 2025 @03:06PM (#44228128)
BSD jails are architected wholly differently from what something like Docker provides.

Jails are first-class citizens that are baked deep into the system.

A tool like Docker relies using multiple Linux features/tools to assemble/create isolation.

Additionally, iirc, the logic for FreeBSD jails never made it into the Darwin kernel.

Someone correct me please.

Re:Apple Announces Foundation Models and Containerization fr... by dboreham on Monday June 09, 2025 @03:32PM (#44228433)
> what something like Docker provides

Docker isn't providing any of the underlying functionality. BSD jails and Linux cgroups etc aren't fundamentally different things.

Re:Apple Announces Foundation Models and Containerization fr... by nyrikki on Tuesday June 10, 2025 @10:52AM (#44237537)
Jails were explicitly designed for security, cgroups were more generalized as more about resource control, and leverages namespaces, capabilities, apparmor/SELinux to accomplish what they do.

> Jails create a safe environment independent from the rest of the system. Processes created in this environment cannot access files or resources outside of it.[1]

While you can accomplish similar tasks, they are not equivalent.

Assume Linux containers are jails, and you will have security problems. And on the flip side, k8s pods share UTM,IPC, Network namespaces, yet have independent PID and FS namespaces.

Depending on your use case they may be roughly equivalent, but they are fundamentally different approaches.

[1] https://freebsdfoundation.org/freebsd-project/resources/intr...

Re:Apple Announces Foundation Models and Containerization fr... by AdieuToLogic on Monday June 09, 2025 @09:37PM (#44231600)
> BSD jails are architected wholly differently from what something like Docker provides. > Jails are first-class citizens that are baked deep into the system.

Both very true statements and worth remembering when considering:

> Additionally, iirc, the logic for FreeBSD jails never made it into the Darwin kernel.

You are quite correct, as Darwin is is based on XNU[0], which itself has roots in the Mach[1] microkernel. Since XNU[0] is an entirely different OS architecture than that of FreeBSD[3], jails[4] do not exist within it.

The XNU source can be found here[2].

0 - https://en.wikipedia.org/wiki/XNU

1 - https://en.wikipedia.org/wiki/Mach_(kernel)

2 - https://github.com/apple-oss-distributions/xnu

3 - https://cgit.freebsd.org/src/

4 - https://man.freebsd.org/cgi/man.cgi?query=jail&apropos=0&sek...

Re:Apple Announces Foundation Models and Containerization fr... by bandoti on Tuesday June 10, 2025 @08:13AM (#44235829)
Thank you for the links I will take a closer look at XNU. It’s neat to see how these projects influence each other.
Re:Apple Announces Foundation Models and Containerization fr... by AdieuToLogic on Wednesday June 11, 2025 @08:04PM (#44253145)
> Thank you for the links I will take a closer look at XNU.

Another great resource regarding XNU and OS-X (although a bit dated now) is the book:

  Mac OS X Internals
  A Systems Approach[0]
0 - https://openlibrary.org/books/OL27440934M/Mac_OS_X_Internals
Re:Apple Announces Foundation Models and Containerization fr... by McAlpine5892 on Thursday June 12, 2025 @02:23PM (#44261062)
This is great! Thank you!
Re:Apple Announces Foundation Models and Containerization fr... by formerly_proven on Monday June 09, 2025 @03:17PM (#44228253)
„Container“ is sort of synonymous with „OCI-compatible container“ these days, and OCI itself is basically a retcon standard for docker (runtime, images etc.). So from that perspective every „container system“ is necessarily „docker-like“ and that means Linux namespaces and cgroups.
Re:Apple Announces Foundation Models and Containerization fr... by pjmlp on Monday June 09, 2025 @04:46PM (#44229299)
With a whole generation forgetting they came first in big iron UNIX like HP-UX.
Re:Apple Announces Foundation Models and Containerization fr... by 9dev on Monday June 09, 2025 @05:45PM (#44229864)
Does it really matter, tho?
Re:Apple Announces Foundation Models and Containerization fr... by bandoti on Monday June 09, 2025 @06:47PM (#44230410)
Another reason it matters is they might have done it differently which could inspire future improvements. :)

I like to read bibliographies for that reason—to read books that inspired the author I’m reading at the time. Same goes for code and research papers!

Re:Apple Announces Foundation Models and Containerization fr... by pjmlp on Monday June 09, 2025 @06:28PM (#44230245)
Some people think it matters to properly learn history, instead of urban myths.
Re:Apple Announces Foundation Models and Containerization fr... by 9dev on Tuesday June 10, 2025 @03:59AM (#44233927)
History is one thing, who-did-it-first is often just a way to make a point in faction debates. In the broader picture, it makes little difference IMHO.
Re:Apple Announces Foundation Models and Containerization fr... by jeberle on Monday June 09, 2025 @09:58PM (#44231711)
Interesting. My experience w/ HP-UX was in the 90s, but this (Integrity Virtual Machines) was released in 2005. I might call out FreeBSD Jails (2000) or Solaris Zones (2005) as an earlier and a more significant case respectively. I appreciate the insight, though, never knew about HP-UX.

https://en.wikipedia.org/wiki/HP_Integrity_Virtual_Machines

Re:Apple Announces Foundation Models and Containerization fr... by pjmlp on Tuesday June 10, 2025 @01:28AM (#44232869)
HP-UX Vault, released with HP-UX 10.24, in 1996,

https://en.m.wikipedia.org/wiki/HP-UX

What you searched for is an evolution of it.

Re:Apple Announces Foundation Models and Containerization fr... by sarlalian on Tuesday June 10, 2025 @12:53AM (#44232669)
Another really good read about containers, jails and zones.

https://blog.jessfraz.com/post/containers-zones-jails-vms/