Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #117962

the Ten Heavenly Stems (was Re: Accumulator naming)

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Kragen Javier Sitaker <kragen@canonical.org>
Newsgroups alt.sys.pdp10, comp.arch
Subject the Ten Heavenly Stems (was Re: Accumulator naming)
Date Fri, 11 Sep 2026 16:07:33 -0300
Organization Primarily biological and memetic
Lines 69
Message-ID <87ik4bbo96.fsf_-_@debian> (permalink)
References <87wlulwflh.fsf@atr2.ath.cx> <mdd33x9cbvq.fsf@panix5.panix.com> <87se579i01.fsf@atr2.ath.cx> <mddqzklxxa5.fsf_-_@panix5.panix.com> <87zez8pkku.fsf@atr2.ath.cx>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 11 Sep 2026 19:09:54 +0000 (UTC)
Injection-Info dont-email.me; logging-data="3335646"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+a0Ijw2oSMxYF0waGVEwSl"; posting-host="5e8b773666f2baa1b3e9fe7abeba1530"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock sha1:KgYFo4smQn0JhvF23bJu+uYbS6Y= sha1:wobFvQPhmlbR+ehwD+sw4eC9GSo= sha256:yFvLPhsYgZDNj+Qmp30RJM8owSNkWxpNYAc5a+m1kcs= sha1:g/rv05lcOjgelo8HEeSidRyd5Vw= sha256:clQLWbCydkSPy/75g3BfVIBOKHRPTfDCtlH7bFj9dzI=
Xref csiph.com alt.sys.pdp10:9997 comp.arch:117962

Cross-posted to 2 groups.

Show key headers only | View raw


(People reading this may find it sufficiently off the wall as to wonder
if an LLM wrote it, but I assure you that I wrote it entirely with my
organic brain, and Emacs, looking stuff up with Firefox.  I write the em
dashes with the Compose key.)

jayjwa <jayjwa@atr2.ath.cx.invalid> writes:
> It's easier, at least for me, to make a “mental map” of where things are
> when they have names rather than numbers, even if those names are
> short. It's easier to recall “watermellon”, “apple”, “grape” than 39,
> 23, 5 even though both sets are decending in magnitude.  [...]

In English, Hebrew, Greek, etc., the obvious alternative to numbers is
to use letters of the alphabet: register A, register B, register C, etc.
In Chinese, of course, there is no alphabet, but, as I understand it (my
Chinese is mostly limited to reading datasheets), the Ten Heavenly Stems
<https://en.wikipedia.org/wiki/Heavenly_Stems> and Twelve Earthly
Branches <https://en.wikipedia.org/wiki/Earthly_Branches> are used in
much the same way.  This may not be adequate for a processor with many
architectural registers like RISC-V’s 32 (or 31) or MMIX’s 256, but it’s
close enough.

The Ten Heavenly Stems have mostly lost their original meanings over the
last 3000 years and been relegated to mostly only this use.  I have
listed them here with their origins; where they have other current uses,
I have put them in parentheses:

1. 甲 turtle shell (methyl, “armor”)
2. 乙 fish guts (ethyl, “twist”)
3. 丙 fish tail
4. 丁 nail
5. 戊 halberd (Firefox’s translation neural network translates it as “E”)
6. 己 thread on a loom (“self”)
7. 庚 evening star (“age”)
8. 辛 to offend superiors (“spicy”)
9. 壬 burden
10. 癸 four-handled plow

I am amused at the idea of moving a 36-bit quantity from register
Eveningstar to register Fishtail, but I think that might be a bit of a
hard sell.  Of course, in Chinese, the names are just one syllable.

The Twelve Earthly Branches are used, among other things, for two-hour
periods of the day, and they have a conventional correspondence with the
Chinese 12-year zodiac symbols, which I have placed in square brackets.
They were used to name the days of a 12-day week 3000 years ago.  The
zodiac symbols are not the meanings of the characters, which, as with
the Heavenly Stems, have largely lost their meaning over the last few
millennia.

1. 子 child [rat]
2. 丑 ugly, clown [ox]
3. 寅 [tiger]
4. 卯 [rabbit]
5. 辰 day [dragon]
6. 巳 [snake]
7. 午 noon [horse]
8. 未 not yet [goat]
9. 申 to state or explain [monkey]
10. 酉 unitary [rooster]
11. 戌 army [dog]
12. 亥 [pig]

The zodiac symbols seem like they would greatly improve the memorability
of one’s assembly code and calling conventions — it would be much easier
to learn that the stack pointer was the Pig register and the link
register was the Dragon register than to learn which one was r14 and
which one was r15.

Kragen

Back to comp.arch | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

the Ten Heavenly Stems (was Re: Accumulator naming) Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-11 16:07 -0300
  Re: the Ten Heavenly Stems (was Re: Accumulator naming) Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-14 01:12 +0800
    Re: the Ten Heavenly Stems (was Re: Accumulator naming) Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-14 14:40 -0300
      Re: the Ten Heavenly Stems (was Re: Accumulator naming) quadibloc@invalid.com (John Savard) - 2026-10-26 03:00 +0000

csiph-web