Guaranteed Dry-Runs and Micro-Jails: The Dual Nature of Rye’s Safety Features
When building a scripting language, safety tools often get pigeonholed into a single bucket. We tend to view sandboxing strictly as defensive security, and dry-runs strictly as developer convenience. In Rye, features like Linux namespaces (unshare), filesystem allowlists (Landlock), and Intents serve a dual purpose depending on which hat you are wearing: For your own code: They turn dangerous side effects into observable, rehearsal-friendly data structures. For untrusted code: They act as lightweight, zero-overhead OS micro-jails. Here is how these three primitives do double duty. ...