Skip to content

Commit f766dcb

Browse files
chore: remove rescript example configuration
Remove examples/web-project-deno.json and other deno/rescript files. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent 0fa434d commit f766dcb

82 files changed

Lines changed: 297 additions & 644 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The following files in `.machine_readable/` contain structured project metadata:
4242

4343
## Language Policy (Hyperpolymath Standard)
4444

45-
> **Policy refresh 2026-05-25**: AffineScript is now the primary application language across the estate (this is its home repo). ReScript / TypeScript / meaningfully-migrated JavaScript are banned going forward — write new code in AffineScript. Existing ReScript stays in place as legacy until the `.res → .affine` migration assistant (#488) walks the corpus. MPL-1.0 / MPL-1.0-or-later are banned; rewrite to MPL-2.0 wherever encountered (code + docs). **Jekyll is banned**; the canonical estate SSG is `hyperpolymath/casket-ssg` (Haskell). This repo already migrated via `.github/workflows/casket-pages.yml`.
45+
> **Policy refresh 2026-05-25**: AffineScript is now the primary application language across the estate (this is its home repo). / TypeScript / meaningfully-migrated JavaScript are banned going forward — write new code in AffineScript. Existing stays in place as legacy until the `.res → .affine` migration assistant (#488) walks the corpus. MPL-1.0 / MPL-1.0-or-later are banned; rewrite to MPL-2.0 wherever encountered (code + docs). **Jekyll is banned**; the canonical estate SSG is `hyperpolymath/casket-ssg` (Haskell). This repo already migrated via `.github/workflows/casket-pages.yml`.
4646
4747
### ALLOWED Languages & Tools
4848

@@ -66,15 +66,15 @@ The following files in `.machine_readable/` contain structured project metadata:
6666

6767
| Language | Status | Disposition |
6868
|----------|--------|-------------|
69-
| **ReScript** (`.res`, `.resi`) | Legacy — pre-2026-05-25 | Migrate via `tools/res-to-affine/` (#488) when touching adjacent code; do not add new `.res` files. |
69+
| **** (`.res`, `.resi`) | Legacy — pre-2026-05-25 | Migrate via `tools/res-to-affine/` (#488) when touching adjacent code; do not add new `.res` files. |
7070
| **JavaScript** (`.js`, `.cjs`, `.mjs`) | Legacy / carve-outs only | Approved runtime-exemption carve-outs (see below) remain; net-new JS in a project already migrated to AffineScript is banned. |
7171

7272
### BANNED — Do Not Use (write zero new occurrences)
7373

7474
| Banned | Replacement |
7575
|--------|-------------|
7676
| TypeScript | **AffineScript** |
77-
| ReScript (new files) | **AffineScript** (migration via #488) |
77+
| (new files) | **AffineScript** (migration via #488) |
7878
| JavaScript (where the project has been meaningfully migrated to AffineScript) | **AffineScript** |
7979
| Node.js | Deno |
8080
| npm | Deno |
@@ -102,7 +102,7 @@ Both are FOSS with independent governance (no Big Tech).
102102
### Enforcement Rules
103103

104104
1. **No new TypeScript files** - Write new code in AffineScript (closed exemptions table below covers the residual `.d.ts` / Deno-test cases).
105-
2. **No new ReScript files** - As of 2026-05-25 policy refresh; AffineScript is the go-forward. Existing `.res` files stay until migrated via #488.
105+
2. **No new files** - As of 2026-05-25 policy refresh; AffineScript is the go-forward. Existing `.res` files stay until migrated via #488.
106106
3. **No package.json for runtime deps** - Use deno.json imports.
107107
4. **No node_modules in production** - Deno caches deps automatically.
108108
5. **No Go code** - Use Rust instead.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ this project aims to follow [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- feat(stdlib): Transaction.affine — affine-bounded write-set isolation — db-theory #2 (8 externs) (PR #526)
2525
- feat(stdlib): Sqlite schema introspection + bulk I/O + error inspection — db-theory #1c (6 externs) (PR #525)
2626
- feat(res-to-affine): partial-port mode #488 slice 3 — `--partial` now translates array literals (`[a, b]`) and record literals (`{x, y}``Rec #{ x: x, y: y }`, with a nominal placeholder type + field-punning expansion) (Refs #488)
27-
- feat(res-to-affine): partial-port mode #488 slice 2 — `--partial` now desugars ReScript pipe-first `->` (`a->f(b)``f(a, b)`, chained left-to-right), and translates `if`/`else` and blocks with `let` statements (Refs #488)
27+
- feat(res-to-affine): partial-port mode #488 slice 2 — `--partial` now desugars pipe-first `->` (`a->f(b)``f(a, b)`, chained left-to-right), and translates `if`/`else` and blocks with `let` statements (Refs #488)
2828
- feat(res-to-affine): partial-port mode (#488) — new `--partial` flag renders module-top-level functions as AffineScript `fn` skeletons with `switch``match` and best-effort expression translation (literals / idents / calls / binary ops with float-op + identity-equality normalisation / `++` / member + qualified access / ternary / variant + tuple + literal patterns); un-translatable forms become `() /* TODO */` / `_ /* TODO */` holes. Output deliberately does NOT type-check but parses (verified). Distinct model from `--translate` (Refs #488)
2929
- feat(res-to-affine): Phase 3 slice 3 — `--translate` now also lowers module-level `let <id> = <literal>` (int/float/string/bool) to a typed `const name: T = value;`; call / `ref(...)` / destructuring bindings are skipped (not compile-time constants); every emitted form verified compilable via `main.exe check`. `switch``match` and qualified-path resolution remain out of the standalone-type-check scope (Refs #57)
3030
- feat(res-to-affine): Phase 3 slice 2 — `--translate` now also handles record types (→ `struct`) and generics (type params `'a``[A]`) across aliases / sums / records; `mutable`/optional-`?` records, qualified paths, and nested generics are still skipped (never guessed); every emitted form verified compilable via `main.exe check` (Refs #57)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ affinescript/
4040
├── examples/ # Self-contained example programs
4141
├── conformance/ # Conformance test corpus
4242
├── docs/ # Specs, decisions, guides
43-
├── packages/ # Aggregate JS/TS/ReScript binding packages
43+
├── packages/ # Aggregate JS/TS/ binding packages
4444
├── editors/ # Editor integrations
4545
├── js/ # `js_of_ocaml` playground (built into `playground.bc.js`)
4646
├── .machine_readable/ # Machine-readable metadata (`.a2ml`) — see 0-AI-MANIFEST.a2ml

affinescript-deno-test/README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ double-track-browser `extension_lifecycle_test.affine` (10/10 green).
189189
The harness now supports idiomatic enum-plus-match application-state
190190
test suites without fallback tagged-struct workarounds.
191191

192-
== Why AffineScript rather than ReScript?
192+
== Why AffineScript rather than ?
193193

194-
ReScript is the estate's default TypeScript replacement and has a mature
194+
is the estate's default TypeScript replacement and has a mature
195195
Deno integration (see `fireflag`). The AffineScript path exists because
196196
AffineScript has stronger semantics for:
197197

@@ -202,9 +202,9 @@ AffineScript has stronger semantics for:
202202
Test suites that want to *demonstrate* these properties — e.g. "this
203203
resource is consumed exactly once", "this protocol sequence is honoured" —
204204
are a natural fit for AffineScript. Plain behavioural tests can continue
205-
in ReScript; there's no migration pressure either direction.
205+
in ; there's no migration pressure either direction.
206206

207-
The trade-off today: AffineScript's compiler matures while ReScript's is
207+
The trade-off today: AffineScript's compiler matures while 's is
208208
mature, so this harness carries the MVP constraints above. As the compiler
209209
gains `pub fn` / effect-conditional WASI imports / better bridge ergonomics,
210210
the harness sheds them.

affinescript-deno-test/deno.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

affinescript-deno-test/deno.lock

Lines changed: 0 additions & 25 deletions
This file was deleted.

affinescript-tea/deno.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/ALIB-INTEGRATION.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ benchmarks:
135135
memory_bytes: 2400
136136
....
137137

138-
*Compare against:* ReScript, OCaml, Rust, JavaScript implementations
138+
*Compare against:* , OCaml, Rust, JavaScript implementations
139139

140140
*Insight:* Shows cost/benefit of affine type safety
141141

@@ -190,7 +190,7 @@ alib-for-affinescript/
190190
=== Phase 4: Cross-Language Integration (Month 3)
191191

192192
* [ ] Benchmark AffineScript vs other implementations
193-
* [ ] Create interop examples (AffineScript ↔ ReScript/OCaml)
193+
* [ ] Create interop examples (AffineScript ↔ /OCaml)
194194
* [ ] Publish comparison study
195195
* [ ] Present findings to aLib community
196196

docs/CAPABILITY-MATRIX.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ eliminating them is the contortion ADR-012 forbids). `just build` masks
7272
type/effect paths now parse* — `Pkg.Type` / `Pkg::Type` (mixed, deep),
7373
`::` canonical (ADR-014, PR #241, Refs #228; zero Menhir conflict delta).
7474
Cleared the dominant estate parse blocker (was 525/1177 `.affine`);
75-
estate re-audit + ReScript residue (#229) follow separately.
75+
estate re-audit + residue (#229) follow separately.
7676

7777
|AST |works |All current language constructs represented.
7878

@@ -205,7 +205,7 @@ the `vscode-smoke` CI job, asserting activation, command registration,
205205
|Julia, JS, Rust, Lua |works (transpile) |`Module_loader.flatten_imports`
206206
inlines imported public fns; smoke-tested.
207207

208-
|C, WGSL, Faust, ONNX, OCaml, Bash, Nickel, ReScript, LLVM, Verilog, Gleam,
208+
|C, WGSL, Faust, ONNX, OCaml, Bash, Nickel, , LLVM, Verilog, Gleam,
209209
CUDA, Metal, OpenCL, MLIR, Why3, Lean, SPIR-V
210210
|partial / experimental
211211
|Code-generators exist and build. Coverage varies widely; treat as

docs/DESIGN-VISION.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
88
== What AffineScript Is
99

1010
AffineScript is a *web programming language*. Its purpose is to replace the
11-
fragmented x-script ecosystem — JavaScript, TypeScript, ReScript, CoffeeScript,
11+
fragmented x-script ecosystem — JavaScript, TypeScript, , CoffeeScript,
1212
ActionScript, and their successors — with a single language that solves the
1313
problems they collectively fail to solve, without inheriting their compromises.
1414

0 commit comments

Comments
 (0)