<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Architecture on Barn</title><link>https://barn.pgsty.com/v1.5/tags/architecture/</link><description>Recent content in Architecture on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 09 Nov 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/architecture/index.xml" rel="self" type="application/rss+xml"/><item><title>Beyond amd64 and arm64</title><link>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</guid><description>&lt;p&gt;Barn currently supports &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; Linux guests. QEMU can emulate more architectures, but each additional Barn target needs an image and a complete boot-and-operation contract. This design assessment, reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;, separates the existing runtime policy from possible future targets.&lt;/p&gt;&#10;&lt;h2 id="acceleration"&gt;Hardware acceleration follows the host ISA&#10;&lt;/h2&gt;&#10;&lt;p&gt;For Barn&amp;rsquo;s current 64-bit guest targets, native virtualization uses the host&amp;rsquo;s instruction set: HVF on macOS and KVM on Linux. QEMU TCG translates instructions for a foreign guest architecture. Rosetta can translate Intel Linux applications inside an Arm Linux VM; it does not provide an Intel Linux VM on Apple Silicon. See &lt;a href="https://www.qemu.org/docs/master/about/emulation.html"&gt;QEMU&amp;rsquo;s emulation overview&lt;/a&gt; and &lt;a href="https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms"&gt;Apple&amp;rsquo;s Linux binary translation guide&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Evolving the CLI Without Breaking Its Contracts</title><link>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</link><pubDate>Wed, 04 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</guid><description>&lt;p&gt;Barn already uses Cobra. The useful part of the 2026-11-04 CLI proposal is its separation of command syntax, application orchestration, and observable behavior. This essay retains that design, checked against &lt;code&gt;v1.1.0&lt;/code&gt; on 2026-11-09. The package split and broader command reorganization remain proposals; current usage belongs in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/"&gt;CLI reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="existing-boundaries"&gt;Keep the existing boundaries&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;cmd/barn/command_*.go&lt;/code&gt; defines the command families. Each execution constructs a fresh Cobra tree, avoiding flag values leaking between calls. Command handlers collect a &lt;code&gt;commandOutcome&lt;/code&gt;; a shared renderer handles text or structured results, while typed failures retain their exit code, reason, recovery hint, and any partial result. Linux lifecycle, image verification, and native Mac behavior remain in their domain packages.&lt;/p&gt;</description></item><item><title>The Lifetime of a Native Mac VM</title><link>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</link><pubDate>Tue, 29 Sep 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</guid><description>&lt;p&gt;&lt;code&gt;barn mac&lt;/code&gt; manages named macOS VMs through Apple&amp;rsquo;s &lt;code&gt;Virtualization.framework&lt;/code&gt;, independently of the Linux inventory. Introduced in &lt;code&gt;0.9.0&lt;/code&gt;, it uses the native host app &lt;code&gt;Barn.app&lt;/code&gt;, included in Apple Silicon release archives since &lt;code&gt;0.9.2&lt;/code&gt;. This essay distills the named-machine implementation record and earlier Mac reviews, with the current implementation checked on 2026-11-08. Dated evidence is summarized in the &lt;a href="https://barn.pgsty.com/v1.5/docs/about/history/#mac-native-record"&gt;validation history&lt;/a&gt;; commands and defaults are in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/mac/"&gt;Mac reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="network-ownership"&gt;A machine owns its network&#10;&lt;/h2&gt;&#10;&lt;p&gt;The early design had two fixed slots and a privileged network helper. The 2026-09-29 redesign replaced that model with named machines and a private &lt;code&gt;/24&lt;/code&gt; NAT network created inside each runner process. The guest receives &lt;code&gt;.10&lt;/code&gt; on its own subnet. Two is the simultaneous-running limit, shared with other macOS virtualization tools and restore installation; stored machines are not restricted to two fixed names.&lt;/p&gt;</description></item><item><title>Why Barn Has No Projects</title><link>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</link><pubDate>Thu, 27 Aug 2026 19:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</guid><description>&lt;p&gt;This essay explains the Linux lab deployment model in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; are managed as independent named VMs).&lt;/p&gt;&#10;&lt;p&gt;Early prototypes of Barn treated every working directory as a separate project: a hidden directory marker identified the project, a central registry tracked active project paths, and a host-wide lease table arbitrated private subnet collisions. While that model made sense for a generic multi-project VM runner, it fought against Barn&amp;rsquo;s actual job: running a local Pigsty database lab with fixed IP addresses.&lt;/p&gt;</description></item></channel></rss>