Commit Graph

7 Commits

Author SHA1 Message Date
ApsisRS contributors 4ac50e98d7 docs: bilingual module docs for the foundation layer 2026-10-02 01:45:27 +08:00
ApsisRS contributors f76bf654df 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 11ca1956ae 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 9e99be04d0 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 051170fc07 foundation: move apsis-math tests into tests directory 2026-09-26 13:02:01 +08:00
ApsisRS contributors da4125ffd0 foundation: add vector, quaternion, and matrix types 2026-09-26 12:58:16 +08:00
ApsisRS contributors d3afe86dfc workspace: initialize workspace with all layer crates 2026-09-26 12:53:13 +08:00