From 9fd46d2dd289f1877d19749bec833e5260aa6718 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Thu, 15 Oct 2026 06:43:49 +0000 Subject: [PATCH] The budget: never past 14,000 lines, by the owner's word --- diff --git a/CLAUDE.md b/CLAUDE.md index d39f254..717fdc8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -63,8 +63,8 @@ `Luis <42945842+ldiaz94@users.noreply.github.com>`, unsigned (`--no-gpg-sign`), no attribution trailer. Push to `main`. No pull requests unless asked. -- Budget: a soft limit of 10,000 lines of code, never past 11,000 - (raised from 8,500 by the owner's word, for better code; blank and +- Budget: a soft limit of 10,000 lines of code, never past 14,000 + (raised from 8,500, then from 11,000, by the owner's word; blank and comment lines not counted), with the compiler documented and commented throughout, most of all where it is obscure or needs a compiler writer's knowledge; at least 400,000 lines of raz a second. diff --git a/PROPOSALS.md b/PROPOSALS.md index 94a2a2d..41e664d 100644 --- a/PROPOSALS.md +++ b/PROPOSALS.md @@ -152,7 +152,7 @@ value still called. What it costs: an inlined procedure is not in the trap report's list of procedures, nor in gdb's backtrace, though a failed check in it is still told at its line; 60 to 100 lines of -the 164 left below 11,000; and, across modules, the imported module's +the budget; and, across modules, the imported module's text kept to be read again, which is to be checked. ## A var real parameter given an xmm register diff --git a/doc/compiler.md b/doc/compiler.md index 2e167f9..a74b1ea 100644 --- a/doc/compiler.md +++ b/doc/compiler.md @@ -1,7 +1,7 @@ # Reading the raz compiler The compiler is eleven files of raz, about 10,900 lines of code (the -budget is a soft 10,000, never past 11,000). It is its own compiler: the +budget is a soft 10,000, never past 14,000). It is its own compiler: the frozen Pascal compiler in `seed/` builds `src/` the first time, and after that a raz builds `src/` (`make fixpoint` checks that it makes itself again, byte for byte). This guide walks through the files in the order they are best read: from the