This commit is contained in:
2026-03-24 13:40:32 +00:00
parent 07e9871b13
commit 7eb2e5d75b
6 changed files with 92 additions and 64 deletions
-30
View File
@@ -15,36 +15,6 @@
## Phase 3 — JVM-like Symbol Identity: Signature-based Overload & Constant-Pool Mindset
### PR-07 (5 pts) — Introduce Signature interning (`SigId`) and descriptor canonicalization
**Briefing**
Overload must be by signature, not by `name/arity`.
**Target**
Create a canonical function descriptor system (JVM-like) and intern signatures.
**Scope**
* Add `Signature` model:
* params types + return type
* Add `SignatureInterner` -> `SigId`
* Add `descriptor()` canonical representation (stable, deterministic).
**Requirements Checklist**
* [ ] `SigId` is used as identity in compiler IR.
* [ ] Descriptor is stable and round-trippable.
**Completion Tests**
* [ ] `debug(int)->void` and `debug(string)->void` produce different descriptors.
* [ ] Descriptor stability tests.
---
### PR-08 (5 pts) — Replace `name/arity` import/export keys with `(name, SigId)`
**Briefing**