Skip to content

YaoXiang RFC (Request for Comments) Index ​

RFC (Request for Comments) is the formal submission format for YaoXiang language feature design proposals.

Contents ​


Template ​

FileDescription
RFC_TEMPLATE.mdStandard RFC template
EXAMPLE_full_feature_proposal.mdComplete example (enhanced pattern matching)

Draft RFCs ​

IDTitleAuthorCreatedStatus
RFC-002RFC-002: libuv-Based Resource-Type I/O Implementation Layer晨煦2026-01-05Draft
RFC-028RFC-028: JIT Compiler — Multi-Level Execution Engine Within the VM晨煦2026-06-11Draft
RFC-031RFC-031: Optimization Levels and Pass Manager晨煦2026-06-16Draft
RFC-033RFC-033: ^^ Reflection Operator晨煦2026-06-16Draft
RFC-034RFC-034: Unified Debugging Toolchain晨煦2026-07-06Draft
RFC-035RFC-035: MCP Server Support (AI Agent Integration)晨煦2026-07-11Draft
RFC-029aRFC-029a: Module Caching and Incremental Recompilation晨煦2026-09-07Draft

RFCs Under Review ​

IDTitleAuthorCreatedStatus
RFC-032RFC-032: Unified spawn Expression Modifier — Eliminating the spawn for Special Case晨煦2026-06-16Under Review

Accepted RFCs ​

IDTitleAuthorCreatedStatus
RFC-004RFC-004: Multi-Position Union Binding Design for Curried Methods晨煦2025-01-05Accepted
RFC-006RFC-006: Documentation Site Development晨煦2025-01-05Accepted
RFC-007RFC-007: Unified Function Definition Syntax沫郁酱2025-01-05Accepted
RFC-008RFC-008: Runtime Concurrency Model and Scheduler Decoupling Design晨煦2025-01-05Accepted
RFC-009RFC-009: Ownership Model Design晨煦2025-01-08Accepted
↳ RFC-009aRFC-009a: Token Lifetime Analysis — Hoare Proof Pipeline晨煦2026-06-13Accepted
RFC-010RFC-010: Unified Type Syntax - name: type = value Model晨煦2026-02-14Accepted
↳ RFC-010aRFC-010a: Tail Expression Evaluation and return Semantics晨煦2026-09-15Accepted
RFC-011RFC-011: Generics System Design - Zero-Cost Abstractions and Macro Alternatives晨煦2026-02-14Accepted
↳ RFC-011aRFC-011a: Interface Implementation and Dynamic Dispatch晨煦2026-06-14Accepted
↳ RFC-011bRFC-011b: Operator Overloading and Interface-Driven Operators晨煦2026-09-15Accepted
RFC-012RFC-012: F-String Template StringsChen Xu2025-01-27Accepted
RFC-013RFC-013: Error Code Specification晨煦2026-02-02Accepted
RFC-014RFC-014: Package Management System Design晨煦2026-02-12Accepted
↳ RFC-014aRFC-014a: Registry Protocol Specification晨煦2026-06-11Accepted
↳ RFC-014bRFC-014b: Build System and Binary Distribution晨煦2026-06-11Accepted
↳ RFC-014cRFC-014c: Workspace Support晨煦2026-06-11Accepted
RFC-015RFC-015: YaoXiang Configuration System Design晨煦2026-02-12Accepted
RFC-017RFC-017: Language Server Protocol (LSP) Support Design晨煦2026-02-15Draft
RFC-018RFC-018: LLVM AOT Compiler Design晨煦2026-02-15Draft
RFC-024RFC-024: spawn-Based Concurrent Runtime Semantics晨煦2026-06-05Accepted
RFC-026RFC-026: Core FFI Mechanism晨煦2026-07-03Accepted
↳ RFC-026aRFC-026a: Extensible FFI Mechanism System晨煦2026-06-05Under Review
↳ RFC-026bRFC-026b: yx-bindgen Toolchain晨煦2026-06-05Draft
RFC-027RFC-027: Compile-Time Predicates and Unified Static Verification晨煦2026-06-07Accepted
↳ RFC-027aRFC-027a: Explicit Measure for Termination Checking晨煦2026-09-14Accepted
RFC-029RFC-029: Module Semantics System晨煦2026-06-13Accepted
RFC-030RFC-030: assert Assertion Mechanism晨煦2026-06-15Accepted
RFC-036RFC-036: std.test Testing Framework and yaoxiang test Command晨煦2026-07-26Accepted
RFC-037RFC-037: Industrial Distribution Solution — Compiler/Toolchain Packaging Based on cargo-distChenXu2332026-07-26Accepted
RFC-038RFC-038: Statement Termination & Newline RulesChenXu2332026-08-05Accepted
RFC-010bRFC-010b: Pattern Matching Completeness (Variant Destructuring and Exhaustiveness)晨煦2026-09-03Accepted
RFC-029fRFC-029f: Compilation Target Roles and Import Surface Semantics晨煦2026-09-12Accepted
RFC-029gRFC-029g: Removing the pub Keyword and Automatic Binding晨煦2026-10-02Accepted
RFC-039RFC-039: Compiler ArchitectureChenXu2332026-10-03Accepted

Deprecated RFCs ​

IDTitleAuthorCreatedStatus
RFC-001RFC-001: Spawn Model and Error Handling System晨煦2025-01-05Deprecated
RFC-019RFC-019: Typed Homoiconicity - Syntax Is Type晨煦2026-02-20Deprecated
RFC-020RFC-020: Dynamic Modules and FFI Integration晨煦2026-03-14Deprecated
RFC-021RFC-021: Library-Driven FFI Extensions and Cross-Language Call Support晨煦2026-03-14Deprecated
RFC-022RFC-022: Hoare Logic Static Verification Support (Specification Comments and Specification Types)晨煦2026-03-16Deprecated
RFC-023RFC-023: Closure Capture Model晨煦2026-05-29Deprecated

Rejected RFCs ​

IDTitleAuthorCreatedStatus
RFC-003RFC-003: Version Planning晨煦2025-01-05Rejected
RFC-005RFC-005: Automated CVE Security Checking System晨煦2025-01-05Rejected
RFC-016RFC-016: Quantum-Native Support and Multi-Backend Integration晨煦2026-02-13Rejected
RFC-025RFC-025: Extensible Primitive Type Mechanism晨煦2026-06-05Rejected

RFC Lifecycle ​

草案 → 审核中 → 已接受 → 已废弃(被取代)
                  ↓
               已拒绝(不通过)

Status Description ​

StatusLocationDescription
Draftrfc/draft/Author draft, awaiting submission for review
Under Reviewrfc/review/Open for community discussion and feedback
Acceptedrfc/accepted/Becomes an official design document and enters the implementation phase
Deprecatedrfc/deprecated/Was previously accepted but has been superseded by a new design
Rejectedrfc/rejected/Rejected RFC document

Document Revision Rules ​

RFC documents must contain only correct information. When a design changes, directly edit the original text so that it expresses the current, correct semantics; do not retain incorrect content and then add an “Erratum” block to correct it.

Keeping the “original text + erratum” is the worst possible approach: readers only discover halfway through that everything preceding it has been invalidated, wasting the reading effort they have already spent and making it easy to mistake obsolete passages for references to current semantics. An erratum block may appear cautious, but in practice it shifts the cleanup burden onto readers.

Correct Approach ​

SituationAction
The implementation does not match the original text, or the original text has been overturnedDirectly rewrite the paragraph with the correct content and remove the original wording
An example no longer runsDirectly revise it into a runnable form; do not retain the old example
Readers need to know what the previous version looked likeOnly retain incorrect content for an intentional incorrect-example comparison, and place the “This form is incorrect” label and the reason immediately next to it
The evolution of the design needs to be tracedRecord it in the Git commit message or issue, not in the RFC body

Exceptions ​

The following incorrect information may be retained:

  • Intentionally created comparison teaching: clearly marked as a correct-versus-incorrect comparison, with an explanation of why it is wrong immediately next to the incorrect side
  • Deprecated RFCs (rfc/deprecated/): retained as historical records, but should indicate what superseded them

Supporting Practices ​

  • The status / updated fields at the top of an RFC reflect the latest revision time; there is no need to write “what changed in this revision” in the body
  • Use ✅ / ❌ in a table to indicate implementation status, and avoid weaving status narratives into the body
  • Use git log -- <file> to view the complete revision history


Submitting an RFC ​

  1. Read RFC_TEMPLATE.md to learn the format requirements
  2. Refer to EXAMPLE_full_feature_proposal.md to learn how to write one
  3. Create a new file named number-descriptive-title.md
  4. Place the file in the docs/src/rfc/draft/ directory
  5. Update this index file and add an entry for the new RFC
  6. Submit a PR to begin the review process

Contribution Guidelines ​

Please refer to CONTRIBUTING.md in the repository root and the site's Contribution Guidelines for the contribution workflow.

Before submitting an RFC, please read the Submission Guidelines: the frontmatter in the RFC directory will be validated by scripts/rfc/check_tracking.py; noncompliant fields will cause CI to fail.