Conversation
- Use //go:embed for all generator assets, eliminating fragile disk paths and copyFile/copyDir helpers - Generate index.html from chapters.json template instead of maintaining a 131-line hardcoded duplicate - Inline all JS (11 files, 430 lines) into layout.html as a single script block (~170 lines), deleting the gen/js/ directory entirely - Fix exercise grading: use getProbabilities() for exact statevector comparison instead of always reporting "Correct!" - Remove encoding/json from WASM code with manual marshalers, eliminating the reflect package and shrinking the binary by ~380 KB - Add -trimpath and wasm-opt to the build pipeline for further size reduction - Add WASM preload hint for faster perceived page load - Remove dead code: progress.js, HTML front-matter, stripFrontMatter() - Add generator tests for roman(), markCurrent(), and full generate() Net: -440 lines, +318 lines across 26 files changed.
Regenerate chapters 1-6 and add chapters 7-42, covering the full curriculum from classical computation through quantum algorithms, error correction, information theory, and frontiers. Each chapter includes interactive QASM sandboxes, simulations with sliders, graded exercises, predict-observe-explain modules, and spaced- repetition flashcards powered by the Goqu WASM runtime. Add chapter-prompt.md as a generation reference for the HTML format, component templates, QASM gate reference, and quality guidelines.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
==========================================
+ Coverage 71.82% 72.37% +0.55%
==========================================
Files 157 157
Lines 16708 16686 -22
==========================================
+ Hits 12001 12077 +76
+ Misses 3796 3685 -111
- Partials 911 924 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.