Each layer adds only what it knows

People bring habits with them. After years of Go or Python, a first Rye loader often looks like this: try, is-error, a long concatenated string, and something like die. It works on the happy path. It also does and says things at the wrong level. eval-rye-file-OLD: fn { path } { src: try { Read file path } if is-error src { ^fail "Error loading config file, cannot read " ++ path ++ ": " ++ message? src } code: try { load src } if is-error code { ^fail "Error loading config file, cannot parse " ++ path ++ ": " ++ message? code } c: try { context code } if is-error c { ^fail "Error loading config " ++ path ++ ": " ++ message? c } c } load-config-OLD: fn { path } { eval-rye-file-OLD path } Rye has no die builtin — I used ^fail here so the example actually runs — but the habit is the same, and many ports would exit at that point. The problem is not that this is longer. It talks about config in a function that is supposed to evaluate any Rye file. It pastes the path and the inner message into a new string, so the original error stops being a cause and becomes text. And if you really do stop the process there, a REPL, a server, or a caller that wanted a default no longer gets a say. fix cannot recover from an exit. ...

November 17, 2026 · Janko

l.rye: compile a Rye that fits your project

Most languages give you one binary and tell you to like it. rye is the general-purpose runtime: all the batteries, all the dependencies, all the contexts. That’s exactly what you want in a REPL, and exactly what you don’t always want when you ship a script. l.rye (for “local Rye”) is a Rye script that builds a project-specific Rye interpreter. Give it a list of modules, and it compiles a leaner or fatter rye from the same source tree—removing what you don’t need, adding what you do, and optionally embedding your entry point or your own Go builtins. It’s a work in progress. It’s also one of those small tools that changes how you think about the runtime. ...

October 14, 2026 · Janko

A dry run is a promise. Can the OS enforce it?

A --dry-run flag is a promise: run this command, and it will tell you what it would do without actually doing it. The implementation is often a boolean. That boolean has no authority over the filesystem, the network, or the helper function someone added last Tuesday. Every part of the program has to remember to cooperate. I’ve been working on runtime safety features in Rye, a scripting language. One question keeps pulling these features together: Can a dry run depend less on my remembering to implement the dry run? Linux can enforce some useful boundaries here. But getting the boundaries right exposes a distinction: preventing a script from changing things is not the same as showing what a successful execution would do. ...

September 25, 2026 · Janko

Don't turn failures into fake success

An LLM wrote a small helper for some Rye tooling I was working on. The helper looked up an environment variable. If the lookup failed, it returned an empty string. The caller then checked for an empty string to find out whether the lookup had failed. Something like this, in Python: def get_rye_home(): return os.environ.get("RYE_HOME", "") home = get_rye_home() if home == "": print("RYE_HOME is not set") This is ordinary code. You can find versions of it everywhere. It is also a strange little round trip: we discard the information that an operation failed, then inspect its replacement value to try to recover that information. The problem isn’t the empty string itself. It’s that we have quietly made it mean two things. ...

September 25, 2026 · Janko