Commit Graph

17 Commits

Author SHA1 Message Date
ApsisRS contributors 05b5199a69 docs: repair partial translations, sentence splits and duplicated blocks
The bilingual sweep had left some blocks with only their last paragraph
translated, a few with the Chinese inserted inside an English sentence,
and some with a repeated paragraph from a re-applied table. A rewrite of
the coverage checks found them; this fixes every block and restores the
comment separators that a cleanup pass had emptied.
2026-10-02 02:18:15 +08:00
ApsisRS contributors fb4fe93b51 docs: bilingual comments for the foundation and physics tests 2026-10-02 01:55:40 +08:00
ApsisRS contributors 182371e3eb docs: bilingual module docs for the foundation layer 2026-10-02 01:45:27 +08:00
ApsisRS contributors 4579ed064a docs: finish the foundation layer of the bilingual sweep
All 180 comment blocks across apsis-core, apsis-units and apsis-math now
carry both languages. The checker confirms no mangled bytes and no English
word left inside a Chinese sentence, two mistakes that occurred while
writing them and are now caught mechanically.
2026-10-02 00:33:19 +08:00
ApsisRS contributors a828b0b9e6 docs: start the bilingual sweep with the foundation layer
apsis-units and apsis-core are done, 86 of 180 comment blocks in the
layer. The checker in scripts/check-bilingual.py reports which blocks still
lack Chinese, and also catches the two mistakes that are easy to make while
adding a language: a mangled byte sequence, and an English word left inside
a Chinese sentence, which is what happened once in quantity.rs and is now
caught mechanically.

Translations keep terms that have a standard Chinese name in Chinese and
leave proper nouns, abbreviations and method names in English, as the
glossary sets out. The English text is never reworded.
2026-10-02 00:28:22 +08:00
ApsisRS contributors 722a65b012 math, access: correct the parallel notes and a test's geometry
The parallelism note linked to a type the module does not import, which
rustdoc rejects, so it reads as plain text now. The access batch test
computed a propagated state it did not use; it now takes the shell radius
from it so the track sits at a realistic altitude.
2026-09-30 18:40:49 +08:00
ApsisRS contributors 674de32840 math: add scoped parallelism built on the standard library
The workspace forbids third party crates, and a thread pool is not needed:
every loop in this workspace that benefits from several cores iterates
independent items, which scoped threads express directly. Borrowing the
data removes the need for an Arc, and joining inside the scope means no
result escapes while a thread still writes it.

for_each_index and map_index split a range into one chunk per thread. Both
take a closure that is only called, never mutated, so the caller shares
input and produces output rather than racing on it. threads_for keeps a
short loop on one thread, because starting a thread to do a few
microseconds of work costs more than the work.
2026-09-30 18:35:25 +08:00
ApsisRS contributors c9d2605385 docs: fix the broken intra doc links and check them in CI
Running rustdoc with -D warnings found nine broken links: a misspelt
WGS84, links to methods and constants that are private or in a crate that
is not a dependency, and three redundant explicit targets. Fix each and add
a documentation step to CI so a doc comment cannot drift away from the code
it describes without the build noticing.
2026-09-26 23:37:48 +08:00
ApsisRS contributors f299d633fe docs: correct the core error claim and record the error strategy
apsis-core described Error and Result as the workspace's single error
surface, but no crate uses them: every layer with a domain specific failure
defines its own Error and ErrorKind, whose variants name the concrete
conditions a caller matches on. Correct the doc comment and record the
strategy, including the Option versus Result split and the tolerance
conventions.
2026-09-26 23:29:25 +08:00
ApsisRS contributors 7d8bbde352 foundation: record the built in macro capabilities 2026-09-26 13:48:53 +08:00
ApsisRS contributors 7b09b5fbdf foundation: move apsis-math tests into tests directory 2026-09-26 13:02:01 +08:00
ApsisRS contributors 1adbbe3b64 foundation: move apsis-units tests into tests directory 2026-09-26 13:02:01 +08:00
ApsisRS contributors d1666ac28a foundation: move apsis-core tests into tests directory 2026-09-26 13:01:58 +08:00
ApsisRS contributors 2afb62bd14 foundation: add vector, quaternion, and matrix types 2026-09-26 12:58:16 +08:00
ApsisRS contributors af3b1c77d4 foundation: add length, time, frequency, angle, and temperature units 2026-09-26 12:55:11 +08:00
ApsisRS contributors b95cf4adf3 foundation: add error trait, result alias, constants, and unit trait 2026-09-26 12:53:54 +08:00
ApsisRS contributors 539f29c7b5 workspace: initialize workspace with all layer crates 2026-09-26 12:53:13 +08:00