Skip to content

Go public as 0.1.0 - #5

Merged
y0sif merged 11 commits into
mainfrom
chore/go-public
Oct 25, 2026
Merged

y0sif merged 11 commits into
mainfrom
chore/go-public

Conversation

@y0sif

@y0sif y0sif commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Readies lawh for going public as 0.1.0.

  • CI fix: a_formula_that_fails_when_it_is_drawn_stops_the_export raced a zero math timeout against Typst's cache; it now points at a missing worker, so it fails the same way every run.
  • Licences: every release archive gets THIRD-PARTY-LICENSES.txt (cargo-about for the target plus assets/licenses/EMBEDDED-NOTICES.txt for data compiled into the binary); a CI job checks all five targets.
  • Release: the tag must match the Cargo version (pre-release suffixes allowed), every target is built natively and smoke-tested (--version and an export through the math worker), Linux builds on Ubuntu 24.04, Windows links the C runtime statically, releases start as drafts. All actions are pinned by SHA.
  • CI: Linux x86_64 and arm64, macOS and Windows on every PR and push to main.
  • Demo: demo/render.sh types demo/area.demo into the app with no window and frames lawh's own pixels into assets/demo.gif, with the command line magnified below the window.
  • Docs: README with the demo, install steps for unsigned binaries, the command line; CONTRIBUTING open; short SECURITY.md; comparison and FAQ with inline sources; maintainer-only notes leave git.

🤖 Generated with Claude Code

y0sif and others added 11 commits October 25, 2026 15:59
The test made the second fetch fail with a zero math timeout, but the
formula was already in Typst's process cache, so its compile could
finish (about 150 us) before the engine checked the channel and the
export returned Ok. Point the second engine at a missing worker
instead, so every compile fails as Unavailable with no race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Each release archive gets THIRD-PARTY-LICENSES.txt: cargo-about's
  output for that target plus assets/licenses/EMBEDDED-NOTICES.txt,
  the notices for data compiled into the binary that no Rust licence
  tool reports (Typst, krilla, hayro, subsetter, CSL styles, bat
  syntaxes, hyphenation patterns). A CI job checks all five targets.
- release.yml checks the tag against lawh's version, smoke-tests the
  native binaries (--version and an export through the math worker),
  prints the glibc floor and creates a draft release.
- CI runs Linux, macOS and Windows by default.
- Crate descriptions say what each crate does today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ames

App::redraw now draws through compose_frame, which the window and a new
ignored test share. The test types demo/area.demo into an App with no
window and writes one PNG per frame plus a timeline and demo.json.
demo/render.sh frames them like a desktop window, shows the keys typed
below it, and writes assets/demo.gif and demo/out/lawh-demo.mp4. Two
runs give byte-identical output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- README: CI and release badges, the demo GIF under the pitch, what
  0.1.0 does (moving is x then p, as in Vim), install from release
  archives with first-run steps for unsigned binaries, cargo install
  --git, the command line and its exit codes.
- CONTRIBUTING open to contributions; SECURITY.md short, reports
  through GitHub's private reporting; its threat model moves to
  docs/architecture.md.
- comparison.md and faq.md carry their sources inline.
- Maintainer-only notes (CLAUDE.md, landscape.md, three research
  notes, handoffs) leave git and stay on disk, git-ignored; the empty
  contrib/ and assets/branding/ placeholders go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- x86_64 macOS builds natively on macos-15-intel and is smoke-tested;
  licence files are made once on Linux for all five targets.
- Linux builds on ubuntu-24.04 and ubuntu-24.04-arm, not a moving
  label; the glibc floor skips weak symbols.
- Windows links the C runtime statically and checks the exe imports
  no VC++ runtime DLL.
- Tags v{version}-{suffix} pass the version check (pre-releases).
- CI tests aarch64 Linux too; the release actions are pinned by SHA.
- objc2 crates resolve to Apache-2.0; licence files keep LF endings.
- The missing-worker test points into a folder that doesn't exist.
- demo/render.sh checks ffmpeg first and never frames stale output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Every GitHub action in ci.yml, release.yml and bench.yml is pinned
  by commit SHA with its version in a comment.
- README: C compiler needed for source builds, macOS 14 first run,
  shasum on macOS, Smart App Control wording, absolute doc links that
  still work inside a release archive, the exit table's label.
- Public docs drop milestone dev-log wording; the threat model names
  the measurement file behind each figure; faq, comparison, keys and
  tech-stack wording and sources tightened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under the window, the demo now shows the left end of lawh's status bar
at twice its size, where the command line, the mode and messages are
written, and only while something is there. The driver records that
text per frame (status_left in demo.json); the key row and keys.tsv
are gone. The GIF drops from 305 KB to 225 KB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The export tests' hostile_board helper and its time imports serve only
  the Linux-only memory-cap tests; gate them on Linux so clippy's
  -D warnings passes on macOS and Windows (CI run 40214315210).
- The worker's hostile-formula test runs its memory formulas on Linux
  only, where the memory cap applies: without it one compiled in 1.97 s,
  under the 2 s timeout.
- .demo scripts and examples/lawhrc check out with LF, like the boards.

Checked with clippy for x86_64-pc-windows-gnu and x86_64-apple-darwin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS refuses RLIMIT_AS with EINVAL (CI run 40216100811 on macOS 26),
so every worker start there logged a warning, and the CLI test that
expects a silent worker failed. The cap was documented as Linux-only
already; the worker now asks for it only on Linux and still turns off
core dumps on every Unix. CI runs tests with --no-fail-fast so one
platform's failures all show in one run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test needs MAX_WORKERS compiles still running after their 20 ms
timeouts. A fixed 1500 x 1500 loop outlasted them on CI's Linux runners
but finished first on its macOS arm64 runner (CI run 40217935423), so
the trivial formula compiled instead of being refused. Time 1000 x 1000
iterations first and scale the loop to about 3 s, clamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At a 20 ms timeout, CI's Windows runner timed the trivial formula out
for real once a worker freed up (run 40219261659); a real timeout is
cached, so it never compiled and the test hit its 120 s deadline. Use a
500 ms timeout, and size the stuck compiles to about 10 s with a square
loop, so they still outlast the four timeouts with room to spare.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@y0sif
y0sif merged commit 95caf4e into main Oct 25, 2026
8 checks passed
@y0sif
y0sif deleted the chore/go-public branch October 25, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant