What programs mean (the languages, translators, Mojo checker and
interpreter, prover, fuzzer, machine model, catalog problems and the Mojo
corpus with godbolt's stored answers) was mixed into the site's tree, so a
change to the prover and a change to a button went through the same gate
and the same docs. This moves all of it under core/, laid out as its own
repository, ready to be extracted with its history and pinned here as a
git submodule.
- core/: src/{engines,services,sync,mojo,exercises,curriculum,common},
mojo/, syntax/mojo.xml, its tests (with Workspace and workForProblem in
place of the site's Session), scripts (corpus pipeline, play, the
exercise and probe starters, engines export/diff), and its docs
(engines, trust, mojo-corpus, exercises, coverage). Its own pixi.toml,
package.json, README, AGENTS.md and CI workflow.
- core/tests/boundary.test.mjs: library modules use no DOM, import no
page widget, and import nothing outside src/.
- core/scripts/cli.mjs: pixi run cli check|run|prove|fuzz|translate.
- core/scripts/dafny.py: Dafny 4.11.0 pinned by version and SHA-256 per
platform, fetched into .tools/ (pixi run dafny-fetch, pixi run dafny).
- The site imports core only as #core/<path>.js: an import map in
index.html, "imports" in package.json for node, core's declarations for
tsc. The site's TypeScript builds core first (npm run build).
- assemble.sh, the Quarto engine copy, the render cache key, check-pages,
quarto-export and quarto-css read core/dist and core/mojo; quarto-css
copies core's syntax/mojo.xml into the extension.
- Site tests that covered engines moved to core; the rest keep Session.
- README, AGENTS.md, docs/app.md, docs/deploy.md and the CI workflow
describe the split (checkout with submodules; core's tests and corpus
status run against the pinned commit).
Gate: site 110 pass; core 307 pass; corpus status --strict passes.
Manual check: the assembled site opens Bridge (count-base-proved),
Developer and Hardware (count-base) with the editor, the stepper and the
board, and no module errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
329 lines
7.5 KiB
JSON
329 lines
7.5 KiB
JSON
{
|
|
"columns": [
|
|
"Removed",
|
|
"Replacement"
|
|
],
|
|
"entries": [
|
|
{
|
|
"removed": "`alias X = ...`",
|
|
"removedCode": [
|
|
"alias X = ..."
|
|
],
|
|
"replacement": "`comptime X = ...`",
|
|
"replacementCode": [
|
|
"comptime X = ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`@parameter if` / `@parameter for`",
|
|
"removedCode": [
|
|
"@parameter if",
|
|
"@parameter for"
|
|
],
|
|
"replacement": "`comptime if` / `comptime for`",
|
|
"replacementCode": [
|
|
"comptime if",
|
|
"comptime for"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`fn`",
|
|
"removedCode": [
|
|
"fn"
|
|
],
|
|
"replacement": "`def` (see below)",
|
|
"replacementCode": [
|
|
"def"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`let x = ...`",
|
|
"removedCode": [
|
|
"let x = ..."
|
|
],
|
|
"replacement": "`var x = ...` (no `let` keyword)",
|
|
"replacementCode": [
|
|
"var x = ...",
|
|
"let"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`borrowed`",
|
|
"removedCode": [
|
|
"borrowed"
|
|
],
|
|
"replacement": "`imm` (implicit default — rarely written)",
|
|
"replacementCode": [
|
|
"imm"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`read` (convention / capture)",
|
|
"removedCode": [
|
|
"read"
|
|
],
|
|
"replacement": "`imm` (deprecated synonym; the compiler warns with a fixit)",
|
|
"replacementCode": [
|
|
"imm"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`inout`",
|
|
"removedCode": [
|
|
"inout"
|
|
],
|
|
"replacement": "`mut`",
|
|
"replacementCode": [
|
|
"mut"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`owned`",
|
|
"removedCode": [
|
|
"owned"
|
|
],
|
|
"replacement": "`var` (as argument convention)",
|
|
"replacementCode": [
|
|
"var"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`inout self` in `__init__`",
|
|
"removedCode": [
|
|
"inout self",
|
|
"__init__"
|
|
],
|
|
"replacement": "`out self`",
|
|
"replacementCode": [
|
|
"out self"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`__copyinit__(inout self, existing: Self)`",
|
|
"removedCode": [
|
|
"__copyinit__(inout self, existing: Self)"
|
|
],
|
|
"replacement": "`__init__(out self, *, copy: Self)`",
|
|
"replacementCode": [
|
|
"__init__(out self, *, copy: Self)"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`__moveinit__(inout self, owned existing: Self)`",
|
|
"removedCode": [
|
|
"__moveinit__(inout self, owned existing: Self)"
|
|
],
|
|
"replacement": "`__init__(out self, *, deinit move: Self)`",
|
|
"replacementCode": [
|
|
"__init__(out self, *, deinit move: Self)"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`@value` decorator",
|
|
"removedCode": [
|
|
"@value"
|
|
],
|
|
"replacement": "`@fieldwise_init` + explicit trait conformance",
|
|
"replacementCode": [
|
|
"@fieldwise_init"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`@register_passable(\"trivial\")`",
|
|
"removedCode": [
|
|
"@register_passable(\"trivial\")"
|
|
],
|
|
"replacement": "`TrivialRegisterPassable` trait",
|
|
"replacementCode": [
|
|
"TrivialRegisterPassable"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`@register_passable`",
|
|
"removedCode": [
|
|
"@register_passable"
|
|
],
|
|
"replacement": "`RegisterPassable` trait",
|
|
"replacementCode": [
|
|
"RegisterPassable"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`Stringable` / `__str__`",
|
|
"removedCode": [
|
|
"Stringable",
|
|
"__str__"
|
|
],
|
|
"replacement": "`Writable` / `write_to`",
|
|
"replacementCode": [
|
|
"Writable",
|
|
"write_to"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`from collections import ...`",
|
|
"removedCode": [
|
|
"from collections import ..."
|
|
],
|
|
"replacement": "`from std.collections import ...`",
|
|
"replacementCode": [
|
|
"from std.collections import ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`from memory import ...`",
|
|
"removedCode": [
|
|
"from memory import ..."
|
|
],
|
|
"replacement": "`from std.memory import ...`",
|
|
"replacementCode": [
|
|
"from std.memory import ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`from sys import ...`",
|
|
"removedCode": [
|
|
"from sys import ..."
|
|
],
|
|
"replacement": "`from std.sys import ...`",
|
|
"replacementCode": [
|
|
"from std.sys import ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`from os import ...`",
|
|
"removedCode": [
|
|
"from os import ..."
|
|
],
|
|
"replacement": "`from std.os import ...`",
|
|
"replacementCode": [
|
|
"from std.os import ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`from pathlib import ...`",
|
|
"removedCode": [
|
|
"from pathlib import ..."
|
|
],
|
|
"replacement": "`from std.pathlib import ...`",
|
|
"replacementCode": [
|
|
"from std.pathlib import ..."
|
|
]
|
|
},
|
|
{
|
|
"removed": "`s[i]`",
|
|
"removedCode": [
|
|
"s[i]"
|
|
],
|
|
"replacement": "`s[byte=i]` — returns `StringSlice`; wrap in `String()` if needed",
|
|
"replacementCode": [
|
|
"s[byte=i]",
|
|
"StringSlice",
|
|
"String()"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`s[0:10]`, `s[:5]`",
|
|
"removedCode": [
|
|
"s[0:10]",
|
|
"s[:5]"
|
|
],
|
|
"replacement": "No slice syntax on String — use `s.codepoint_slices()` or Python FFI",
|
|
"replacementCode": [
|
|
"s.codepoint_slices()"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`constrained(cond, msg)`",
|
|
"removedCode": [
|
|
"constrained(cond, msg)"
|
|
],
|
|
"replacement": "`comptime assert cond, msg`",
|
|
"replacementCode": [
|
|
"comptime assert cond, msg"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`DynamicVector[T]`",
|
|
"removedCode": [
|
|
"DynamicVector[T]"
|
|
],
|
|
"replacement": "`List[T]`",
|
|
"replacementCode": [
|
|
"List[T]"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`InlinedFixedVector[T, N]`",
|
|
"removedCode": [
|
|
"InlinedFixedVector[T, N]"
|
|
],
|
|
"replacement": "`Array[T, N]`",
|
|
"replacementCode": [
|
|
"Array[T, N]"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`Tensor[T]`",
|
|
"removedCode": [
|
|
"Tensor[T]"
|
|
],
|
|
"replacement": "Not in stdlib (use SIMD, List, Pointer)",
|
|
"replacementCode": []
|
|
},
|
|
{
|
|
"removed": "`MutUnsafePointer` / `ImmUnsafePointer`",
|
|
"removedCode": [
|
|
"MutUnsafePointer",
|
|
"ImmUnsafePointer"
|
|
],
|
|
"replacement": "`MutPointer` / `ImmPointer`",
|
|
"replacementCode": [
|
|
"MutPointer",
|
|
"ImmPointer"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`OptionalUnsafePointer`",
|
|
"removedCode": [
|
|
"OptionalUnsafePointer"
|
|
],
|
|
"replacement": "`OptionalPointer`",
|
|
"replacementCode": [
|
|
"OptionalPointer"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`escaping` closures",
|
|
"removedCode": [
|
|
"escaping"
|
|
],
|
|
"replacement": "Unified closures (`def(...) -> T`, captures in `{}`); `capturing[_]` still valid",
|
|
"replacementCode": [
|
|
"def(...) -> T",
|
|
"{}",
|
|
"capturing[_]"
|
|
]
|
|
},
|
|
{
|
|
"removed": "`__del__(deinit self)`",
|
|
"removedCode": [
|
|
"__del__(deinit self)"
|
|
],
|
|
"replacement": "`__deinit__(deinit self)`",
|
|
"replacementCode": [
|
|
"__deinit__(deinit self)"
|
|
]
|
|
}
|
|
],
|
|
"processor": "skill",
|
|
"provenance": {
|
|
"commit": "0288f88deff5e4d936ed1b84db125f2b9bafc0d1",
|
|
"license": "Apache-2.0 WITH LLVM-exception",
|
|
"path": "mojo-syntax/SKILL.md",
|
|
"repo": "modular/skills",
|
|
"source": "skills",
|
|
"zipSha256": "7511fa319866022e6b511d579244f05bd377719187c3bb556d32c80fffe06a58"
|
|
}
|
|
}
|