Add HEX/DECIMAL/BINARY/BASE/U.; dot respects print base#26
Merged
Conversation
- settings-map: base=@ud → base=@tas; stores aura tag ('ux', 'ud', 'ub') rather than a raw integer, with '' (bunt) treated as decimal - New arms: ++num-to-hex-tape (uppercase, no prefix), ++num-to-bin-tape, ++num-to-base-tape (dispatches on tag) - run-word: HEX sets base='ux', DECIMAL sets 'ud', BINARY sets 'ub'; BASE pushes numeric equivalent (16/10/2); U. added as alias for .; . and U. now call num-to-base-tape instead of num-to-tape directly - 13 new tests; docs updated (words.md, architecture.md) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… AS-CORD North now stores the print base as an aura tag (@tas) rather than an integer. This lets AS-DATE/AS-SHIP/AS-CORD set the tag to 'da'/'p'/'t' so that . and U. format dates, ships, and cords naturally. DATE./SHIP./CORD. print TOS directly in their aura format regardless of the current base. NOW and OUR push the current Arvo time and ship address (injected by the Gall agent from the bowl before each eval; zero-bunted to ~2000.1.1 / ~zod in pure-lib contexts). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Completes the symmetric set: INT./DATE./SHIP./CORD. each print TOS in a fixed aura format, independent of whatever HEX/AS-DATE/etc. is active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
settings-mapfieldbasechanged from@udto@tas— stores the print aura tag ('ux','ud','ub') rather than a raw integer. Bunt ('') is treated as decimal throughout.++num-to-hex-tape(uppercase, no prefix),++num-to-bin-tape,++num-to-base-tape(dispatches on aura tag).HEX,DECIMAL,BINARYset the base tag;BASEpushes the numeric equivalent (16/10/2);U.added as alias for.;.andU.now callnum-to-base-tape.HEX 255 .→FF,BINARY 10 .→1010, no prefix on output.Test plan
HEX 255 .→"FF "HEX 16 .→"10 "(16 in hex)BINARY 10 .→"1010 "HEX then DECIMALswitches cleanlyBASEpushes 10/16/2 correctlyU.aliases.🤖 Generated with Claude Code