Skip to content

co-nlang/nlang-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

n/ Language Specification: The Ouroboros Code

"In the n/ universe, there is no execution, only observation. Truth is the point of convergence."

n/ (n-slash or n-lang) is a data-centric, lattice-based declarative programming language. This repository houses the single source of truth for the languageβ€”The n/ Code of Law (The Spec).

δΈ­ζ–‡η‰ˆ (Chinese Version)


🌌 The Trinity Isomorphism

n/ eliminates the boundaries between Data, Type, and Logic. In the world of n/, all three are merely different faces of the same geometric object, the Combo, seen through different observational dimensions.

Example: Type as Data, Merge as Verification

;; 1. Define a "Type" (Boundary)
@Adult: {{
    age: @int & >= 18
}}

;; 2. Acquire "Data" (Existence)
~payload: { name: "Alice", age: 25 }

;; 3. Execute "Merge" (Observation)
;; In n/, verification is not an action, but a convergence in geometric space.
user: ~payload & @Adult

;; If age doesn't match, 'user' immediately collapses to _|_ (Bottom) with causal tags.

πŸ“š Specification Structure

The code consists of 18 core specs, orders of evolution, realization standards, and the digital cosmology appendices.

Core Specifications

Volume Theme Summary
Vol I: Axioms Foundations Lattice (01), Lexical (02), Structure (03)
Vol II: Flow Navigation & Logic Navigation (04), Trinity (05), Unification (06), Morphism (07)
Vol III: Order Governance Interim Constitution, Governance
Vol IV: System Runtime & Commit Runtime (08), StdLib (09), Commit (10), Reflection (11)
Vol V: Network Discovery & Validation Recursion (12), Discovery (13), Grammar (14), Anti-Patterns (15)
Vol VI: Echo Proof & Evolution Testing (16), Self-Evolution (17), The Echo (18)

Digital Cosmology (Appendix Series)

A deep dive into the dynamics of n/ from physical and topological perspectives.

  • Overview & Index: 15 chapters covering $E=mc^2$, semantic gravity, quantum collapse, and topos theory.

Standards & Guides

Note: Currently, Traditional Chinese (zh_TW) is the primary reference. English and Japanese translations are in progress.


πŸ” Navigation

To understand n/, we recommend following this sequence:

  1. PREFACE: The origin and philosophy.
  2. GLOSSARY: Unified terminology.
  3. QUICK_REFERENCE: Syntax at a glance.
  4. SPEC_00 Introduction: Global architecture overview and versioning.
  5. COSMOLOGY: Gain a deeper understanding of the isomorphism between lattice theory and physics.

πŸ›οΈ The 6-Layer Architecture

The evolution of n/ is governed by a 6-layer structure, ensuring core stability and peripheral flexibility. See SPEC_00.


πŸ“„ License

This specification is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). See LICENSE for details.


🀝 Community & Contact

"Convergence is our goal; Coherence is our bond."

About

🌌 The Ouroboros Code: Formal specifications for n/, a data-centric, lattice-based declarative language. Data β‰… Type β‰… Logic. Truth is the point of convergence.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages