Add the library page, and pin core with sized types and the library
core 477dffe brings pseudo's sized types (INT8..UINT64, FLOAT32), exact numerical built-ins, USE IEEE, and USE for pplus-library, its new submodule: 16 routines checked at every level. - #/library (src/ui/library.ts): every routine by module with a count of how its checks ended; a routine's page shows its pseudo, cases and results, every check with its detail, each reference implementation with its note, tolerance and source, the Dafny proof and the sources. - Open in the Bridge: a routine opens as the problem lib:<id> (src/core/library.ts), its first case as the call, so it can be stepped through; the problem menu names it. - Library in the site nav; README, docs/app.md and AGENTS.md updated. - Two Quarto examples expected "X_BAR returned 3" for a FLOAT result; core now prints it in its type, 3.0. Gate: site 113 pass; core 332 pass; library-check no failing check. Manual check: #/library lists 16 routines with chips; a routine's page shows numbered pseudo, cases, checks; Open in the Bridge steps through NeedlemanWunschScore; no console errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
This commit is contained in:
14 files changed
+280
-13
No files matched your search
@@ -6,7 +6,7 @@ Programming+ takes a procedure **from an idea to Mojo to the machine**, built fo
|
||||
- **Developer**: Mojo only. The checker's advice as you type, every step and every value in one Run view, a fuzzer that lists what it tried, and the real Mojo compiler's verdict.
|
||||
- **Hardware**: the code beside a board you arrange: registers, memory, the stack, cache lines, the caches, virtual memory, the pipeline and the out-of-order core, with Mojo and its x86-64 as tabs, linked line by line.
|
||||
|
||||
A catalog of worked problems comes with it, each opening in every area it has something to show in, and any view can be shared as a link or embedded in a page. With Quarto, a page can also run a program kept beside it while the page renders, and show the run, a stepper, the flowchart, the proof and the rest without an iframe, down to the machine itself (registers, caches, the pipeline, the core, stepped). The **With Quarto** page (`#/quarto`) is a gallery of every shortcode.
|
||||
A library of verified routines (statistics, numerics, sequence alignment, molecular simulation; `#/library`) comes with it, each one usable by name with `USE` and open to step through, and so does a catalog of worked problems, each opening in every area it has something to show in, and any view can be shared as a link or embedded in a page. With Quarto, a page can also run a program kept beside it while the page renders, and show the run, a stepper, the flowchart, the proof and the rest without an iframe, down to the machine itself (registers, caches, the pipeline, the core, stepped). The **With Quarto** page (`#/quarto`) is a gallery of every shortcode.
|
||||
|
||||
It is a static single-page app: TypeScript compiled by `tsc`, no bundler, no framework, no runtime dependencies. This repository is the site; what programs mean (the languages, the translators, the Mojo checker and interpreter, the prover, the fuzzer, the machine model, and the stored answers of the real tools) is **pplus-core**, a project of its own, kept here as the git submodule `core/` and imported as `#core/...` ([core/README.md](core/README.md)). Everything it says about Mojo is pinned to **Mojo 1.1.0** and checked against the real compiler on [Compiler Explorer](https://godbolt.org).
|
||||
|
||||
@@ -58,12 +58,13 @@ Every command is a pixi task (`pixi task list` shows them with their description
|
||||
```
|
||||
AGENTS.md rules for changing the site (read first)
|
||||
index.html, styles.css the page (with the import map that points #core/ at core/dist/) and the app's stylesheet
|
||||
core/ pplus-core, a git submodule: languages, translators, prover, corpus (core/README.md)
|
||||
core/ pplus-core, a git submodule: languages, translators, prover, corpus, and the library
|
||||
(pplus-library, its own submodule core/library) (core/README.md)
|
||||
src/
|
||||
main.ts the hash router
|
||||
core/ the app's state and its URL codec, the session (a core Workspace with storage, versions,
|
||||
compiles and the helper), the catalog with areas, the areas, saved versions, preferences
|
||||
ui/ the shell (one per area), the home page, the "With Quarto" gallery, the editor, the embeds, the views
|
||||
ui/ the shell (one per area), the home page, the library, the "With Quarto" gallery, the editor, the embeds, the views
|
||||
ui/hw/ the Hardware area's machine board, over the course's x86-64 views (from core)
|
||||
quarto/ the Quarto extension's rendered views: a program run and drawn by the views, as HTML (render.ts),
|
||||
the small document they draw into outside a browser (dom.ts), the shortcode list (shortcodes.ts)
|
||||
|
||||
Reference in new issue
Block a user