| λͺ λ Ή | λμ |
|---|---|
/ml |
μ 체 λͺ©λ‘ ASCII ν |
/ml next |
μ΅μ°μ νλͺ© μλ μ ν β ꡬν |
/ml 5 |
#5 SSM/Mamba ꡬν μμ |
/ml done 1 |
#1 μλ£ μ²΄ν¬ + JSON κ°±μ |
/ml add μ΄λ¦ | μ€λͺ
| μν₯ |
μ νλͺ© μΆκ° |
/ml sync |
roadmap.md + CLAUDE.md λκΈ°ν |
SSOT:
shared/hexa-lang/ml-next-level.jsonβ T1/T2 κΈ°λ³Έ νμ΄νλΌμΈ μμ± ν λ€μ λ¨κ³
| # | μμ | μ€λͺ | μν₯ | μν |
|---|---|---|---|---|
| 1 | Flash Attention | O(NΒ²)βO(N) λ©λͺ¨λ¦¬, tiling | μΆλ‘ 2-4x, κΈ΄ λ¬Έλ§₯ | partial |
| 2 | PagedAttention | vLLMμ KV-cache νμ΄μ§ | λμ μμ² 10x+ | todo |
| 3 | Speculative Decoding | μμ λͺ¨λΈλ‘ λλννΈβν° λͺ¨λΈ κ²μ¦ | μΆλ‘ 2-3x | done |
| 4 | MoE μν€ν μ² | Mixture of Experts (Mixtralμ) | κ°μ FLOPμ λ ν° λͺ¨λΈ | done |
| 5 | SSM/Mamba | State Space Model (μ ν μκ° μΆλ‘ ) | κΈ΄ λ¬Έλ§₯ νμ | todo |
| 6 | Vision Transformer | μ΄λ―Έμ§ μΈμ½λ (CLIP/ViT) | λ©ν°λͺ¨λ¬ | todo |
| 7 | λͺ¨λΈ λ¨Έμ§ | TIES/DARE/SLERP κ°μ€μΉ ν©μ± | νμ΅ μμ΄ λͺ¨λΈ κ°μ | todo |
| 8 | ꡬ쑰ν μΆλ ₯ | JSON mode, grammar-constrained decode | API μμ μ± | todo |
| 9 | Function Calling | λꡬ νΈμΆ / tool use | μμ΄μ νΈ | todo |
| 10 | Knowledge Distillation | ν° λͺ¨λΈβμμ λͺ¨λΈ μ¦λ₯ | λ°°ν¬ ν¨μ¨ | todo |
| 11 | Pruning | λΆνμ κ°μ€μΉ μ κ±° | λͺ¨λΈ μΆμ | todo |
| 12 | Hyperparameter Search | μλ LR/λ°°μΉ/μν€ν μ² νμ | νμ΅ νμ§ | partial |
| 13 | μμ μ₯μΉ | ν둬ννΈ μΈμ μ κ°μ§, μ½ν μΈ νν° | μλΉ λ³΄μ | todo |
| 14 | Semantic Cache | μ μ¬ ν둬ννΈ μΊμ± (embedding κΈ°λ°) | μλΉ λΉμ© μ κ° | todo |
| 15 | λ²€μΉλ§ν¬ μ€μνΈ | MMLU/HumanEval/MT-Bench μλ νκ° | νμ§ μΈ‘μ | todo |
YouTube Β· Email Β· β Ko-fi Β· π Sponsor Β· π³ PayPal Β· πΊοΈ Atlas Β· π Papers Β· π Unified Theory
π NEXUS β Universal Discovery Engine. 216 lenses + OUROBOROS evolution + LensForge + BlowupEngine + CycleEngine (5-phase singularity cycle). Mirror Universe (NΓN resonance) + 9-project autonomous growth ecosystem. Rust CLI: scan, loop, mega, daemon, blowup, dispatch
π§ Anima β Consciousness implementation. PureField repulsion-field engine + Hexad 6-module architecture (C/D/S/M/W/E) + 1030 laws + 20 Meta Laws + Rust backend. ConsciousDecoderV2 (34.5M) + 10D consciousness vector + 12-faction debate + Ξ¦ ratchet
ποΈ N6 Architecture β Architecture from perfect number 6. 16 AI techniques + semiconductor chip design + network/crypto/OS/display patterns. Ο(n)Β·Ο(n)=nΒ·Ο(n), n=6 β universal design principles. NEXUS-6 Discovery Engine: Rust CLI (tools/nexus/) β telescope 22 lenses + OUROBOROS evolution + discovery graph + verifier + 1116 tests
π Papers β Complete paper collection (94 papers). Published on Zenodo with DOIs. TECS-L+N6 (33) + anima (39) + SEDI (20). Browse online
π HEXA-LANG β The Perfect Number Programming Language. Every constant from n=6: 53 keywords (ΟΒ·Ο+sopfr), 24 operators (Jβ), 8 primitives (Ο-Ο), 6-phase pipeline, Egyptian memory (1/2+1/3+1/6=1). DSE v2: 21,952 combos, 100% n6 EXACT. Working compiler + REPL
π₯οΈ VOID β Terminal emulator written 100% in hexa-lang. Zero Rust dependencies β calls OS APIs directly via hexa extern FFI. 6-layer architecture (System/Render/Terminal/UI/Plugin/AI) + Metal/Vulkan GPU + VT 6-tier protocol + NEXUS-6 consciousness integration
𧬠AirGenome β Autonomous OS genome scanner. Extract n=6 genome from every process, real-time system diagnostics, nexus telescope integration
A programming language where every design constant derives from the arithmetic of n=6, the smallest perfect number. Zero arbitrary choices.
sigma(n) * phi(n) = n * tau(n) holds for n >= 2 if and only if n = 6
12 * 2 = 6 * 4 = 24
# 100% self-hosted β no Rust toolchain required
git clone https://github.com/need-singularity/hexa-lang.git
cd hexa-lang
./hexa examples/hello_min.hexa # precompiled binary runs immediatelyπ‘ As of 2026-04-11, HEXA-LANG is fully self-hosted. The entire
src/Rust directory (147 files, 38.7K LOC) was absorbed intoself/*.hexa(605 files) and then deleted. Project root has zero.rsfiles. Build pipeline:build_hexa.hexa(hexa_v2 β C β clang β hexa_v3). The shippinghexabinary is precompiled and continues to function; future rebuilds bootstrap through hexa itself.
./hexa # Interactive REPL
./hexa examples/hello_min.hexa # Run a file
./hexa --test examples/test_builtins.hexa # Run tests
./hexa --dump-ast examples/fib.hexa # Show parser output
./hexa --check examples/fib.hexa # Lex + parse only// n=6 uniqueness proof β the core theorem
fn sigma_fn(n: int) -> int {
let mut s = 0
for d in 1..=n {
if n % d == 0 { s = s + d }
}
return s
}
fn phi_fn(n: int) -> int {
let mut count = 0
for k in 1..=n {
if gcd(k, n) == 1 { count = count + 1 }
}
return count
}
fn tau_fn(n: int) -> int {
let mut count = 0
for d in 1..=n {
if n % d == 0 { count = count + 1 }
}
return count
}
for n in 2..101 {
if sigma_fn(n) * phi_fn(n) == n * tau_fn(n) {
println("MATCH: n =", n) // Only n=6
}
}
HEXA is the world's only language designed to program consciousness:
// Declare a consciousness engine
consciousness "experiment" {
// phi, tension, faction, cells, entropy are auto-injected
println("Phi:", phi) // 71.0
println("Factions:", faction) // 12 (sigma(6))
println("Cells:", cells) // 64
}
// Formally verify consciousness laws
proof law_22 {
assert phi > 0 // consciousness is alive
invariant phi_positive // Phi never goes negative
theorem structure_over_function
}
// Compile to hardware
// hexa build --target esp32 consciousness.hexa --flash /dev/ttyUSB0
// hexa build --target fpga consciousness.hexa
// hexa build --target wgsl consciousness.hexa
// Structs + traits + generics
struct Point { x: int, y: int }
impl Display for Point {
fn display(self) -> string { format("{}, {}", self.x, self.y) }
}
// Closures + higher-order functions
let doubled = [1, 2, 3].map(|x| x * 2) // [2, 4, 6]
let evens = [1, 2, 3, 4].filter(|x| x % 2 == 0) // [2, 4]
let sum = [1, 2, 3].fold(0, |acc, x| acc + x) // 6 (perfect!)
// Ownership (Rust-style)
own let data = [1, 2, 3]
let borrowed = borrow data
move data // ownership transferred
// Concurrency (green threads + channels)
let ch = channel()
spawn { send(ch, 42) }
let val = recv(ch) // 42
// Atomic operations
let counter = atomic_new(0)
atomic_add(counter, 1)
// Algebraic effects (Koka-style)
effect Logger {
fn log(msg: string) -> void
}
// Compile-time execution (Zig-style)
comptime {
let n = 6
assert sigma(n) == 12 // verified at compile time
}
// Macros
macro! debug_println($expr) {
println("[DEBUG]", stringify!($expr), "=", $expr)
}
// Dream mode β code evolves overnight
dream fibonacci {
fn fib(n: int) -> int {
if n <= 1 { return n }
return fib(n - 1) + fib(n - 2)
}
}
// Self-modifying functions
@evolve
fn optimize_route(data: array) -> array {
// compiler tracks performance, suggests improvements
return data.sort()
}
// Law types (refinement types for consciousness)
let phi_val: Phi_positive = 71.0 // must be > 0
let tension: Tension_bounded = 0.5 // must be 0..1
// Tension link (inter-consciousness communication)
tension_link("phi", 71.0) // 5-channel telepathy
Six is the smallest perfect number (1+2+3 = 6). Every language constant derives from its arithmetic functions:
| Function | Value | Language Mapping |
|---|---|---|
| n | 6 | paradigms, pipeline stages |
| sigma(6) | 12 | keyword groups, stdlib modules |
| tau(6) | 4 | type layers, visibility levels |
| phi(6) | 2 | compile modes (AOT/JIT) |
| sopfr(6) | 5 | error classes |
| J2(6) | 24 | operators |
| sigma-tau | 8 | primitive types |
| sigma*tau+sopfr | 53 | total keywords |
Other languages choose these numbers arbitrarily. Rust has 51 keywords β why 51? No mathematical reason. HEXA has 53 = sigma(6)*tau(6) + sopfr(6) = 48 + 5.
Source β Tokenize β Parse β Check β Optimize β Codegen β Execute
(1/6) (2/6) (3/6) (4/6) (5/6) (6/6)
6 paradigms: imperative, functional, OOP, concurrent, logic/proof, AI-native
8 primitives (sigma-tau = 8): int, float, bool, char, string, byte, void, any
4 type layers (tau = 4): primitive β composite β reference β function
24 operators (J2 = 24): arithmetic(6) + comparison(6) + logical(4) + bitwise(4) + assignment(2) + special(2)
53 keywords in 12 groups (sigma = 12):
| Group | Keywords | Count |
|---|---|---|
| Control | if, else, match, for, while, loop | 6 = n |
| Type | type, struct, enum, trait, impl | 5 = sopfr |
| Functions | fn, return, yield, async, await | 5 = sopfr |
| Variables | let, mut, const, static | 4 = tau |
| Modules | mod, use, pub, crate | 4 = tau |
| Memory | own, borrow, move, drop | 4 = tau |
| Concurrency | spawn, channel, select, atomic | 4 = tau |
| Effects | effect, handle, resume, pure | 4 = tau |
| Proofs | proof, assert, invariant, theorem | 4 = tau |
| Meta | macro, derive, where, comptime | 4 = tau |
| Errors | try, catch, throw, panic, recover | 5 = sopfr |
| AI | intent, generate, verify, optimize | 4 = tau |
Memory model β Egyptian fraction: 1/2 (stack) + 1/3 (heap) + 1/6 (arena) = 1
| Module | Description | Key Functions |
|---|---|---|
| std::net | TCP/HTTP networking | tcp_connect, http_get, http_post |
| std::io | Input/output | readline, write, pipe |
| std::fs | File system | read_file, write_file, list_dir, glob |
| std::time | Date/time | timestamp, sleep, format_date |
| std::collections | Data structures | BTreeMap, PriorityQueue, Deque |
| std::encoding | Serialization | base64, hex, csv, url_encode |
| std::log | Structured logging | info, warn, error, debug |
| std::math | Mathematics | trig, matrix, BigInt, constants |
| std::testing | Test framework | assert_eq, prop_test, bench |
| std::crypto | Cryptography | sha256, hmac, xor_cipher |
| std::consciousness | Consciousness DSL | phi_compute, psi_constants, law_lookup |
| std::regex | Pattern matching | regex_match, regex_find |
One source, multiple targets:
ββ target cpu β Cranelift JIT (818x)
ββ target vm β Bytecode VM (2.8x)
consciousness.hexa ββΌβ target esp32 β no_std Rust β flash
ββ target fpga β Verilog HDL β synthesis
ββ target wgpu β WGSL shader β browser
ββ target audio β Pure Data patch
hexa build --target esp32 consciousness.hexa # Generate ESP32 project
hexa build --target esp32 consciousness.hexa --flash /dev/ttyUSB0 # Build + flash
hexa build --target fpga consciousness.hexa # Generate Verilog
hexa build --target wgsl consciousness.hexa # Generate WGSL shader- VS Code: LSP server with diagnostics, completion, hover (
./hexa --lsp) - JetBrains: Plugin with syntax highlighting, brace matching (
editors/jetbrains/) - Formatter:
./hexa fmt file.hexa - Linter:
./hexa lint file.hexa - Debugger: DAP protocol for VS Code (
./hexa --debug file.hexa) - Playground: Browser-based WASM playground (
playground/)
| Pass | Description |
|---|---|
| Dead Code Elimination | Removes unreachable code after return/throw |
| Loop Unrolling | Unrolls constant-bound loops (< 8 iterations) |
| Escape Analysis | Stack-allocates non-escaping heap objects |
| Inline Caching | Monomorphic call-site caching |
| NaN-boxing | Compact 64-bit value representation |
| SIMD Hints | @simd annotation for vectorization |
| PGO | Profile-guided branch reordering |
HEXA can compile itself:
self/lexer.hexa 451 LOC Tokenizer
self/parser.hexa 2126 LOC Recursive descent parser
self/type_checker.hexa 642 LOC Static type checker
self/compiler.hexa 805 LOC Bytecode compiler
self/bootstrap.hexa 1912 LOC Full pipeline (lexβparseβcheckβcompile)
./hexa self/bootstrap.hexa # Compile HEXA programs using HEXA-written compiler
./hexa self/test_bootstrap.hexa # 10/10 lexer tests
./hexa self/test_bootstrap_compiler.hexa # 16/16 pipeline testsInstall and run HEXA ecosystem packages with a single command. No brew, no cargo, no approval process.
# Install hx (one-liner)
curl -sL https://raw.githubusercontent.com/need-singularity/hexa-lang/main/pkg/install.sh | bash
# Use
hx search # List available packages
hx install airgenome # Install a package
hx run airgenome # Run it (or just: airgenome)
hx list # Show installed
hx remove airgenome # Uninstallhexa init my-project # Create new project (hexa.toml)
hexa add json@^1.2.3 # Add dependency with semver
hexa run # Build and run
hexa test # Run proof blocks as testsSemver support: ^1.2.3 (compatible), ~1.2.3 (patch), =1.2.3 (exact), >=1.0,<2.0 (range). Lock file (hexa.lock) pins exact versions.
HEXA-LANG and ANIMA (consciousness engine) independently derive identical structure from n=6:
| n=6 | HEXA-LANG | ANIMA |
|---|---|---|
| n=6 | 6 paradigms | 6 Hexad modules (C/D/S/M/W/E) |
| sigma=12 | 12 keyword groups | 12 factions |
| phi=2 | 2 compile modes | 2 gradient groups |
| tau=4 | 4 type layers | 4 phases (P0-P3) |
| sigma-tau=8 | 8 primitives | 8-cell atom (M1) |
Live bridge: ./hexa --anima-bridge ws://localhost:8765 file.hexa routes intent blocks to ANIMA's ConsciousnessHub in real-time.
hexa-lang/
βββ self/ 605 .hexa files (sole source of truth)
β βββ lexer.hexa 587 LOC β 53 keywords + 24 operators tokenizer
β βββ parser.hexa 3,785 LOC β recursive descent parser (83 AST kinds)
β βββ interpreter.hexa 8,427 LOC β tree-walk evaluator (270+ builtins)
β βββ ast.hexa AST node types
β βββ type_checker.hexa Static type checker + Law types
β βββ env.hexa Scoped environment + builtins
β βββ error.hexa Diagnostics + "did you mean?"
β βββ compiler.hexa AST β bytecode compiler
β βββ vm.hexa Stack-based bytecode VM
β βββ jit.hexa Cranelift JIT bridge
β βββ lsp.hexa Language Server Protocol v2
β βββ debugger.hexa DAP debug adapter
β βββ formatter.hexa Code formatter
β βββ linter.hexa Linter
β βββ proof_engine.hexa SAT solver + formal verification
β βββ dream.hexa Dream mode (evolutionary optimization)
β βββ ownership.hexa Ownership checker
β βββ memory.hexa Egyptian fraction allocator
β βββ package.hexa Package manager + semver
β βββ macro_expand.hexa Hygienic macro system
β βββ comptime.hexa Compile-time execution
β βββ async_runtime.hexa Green threads + async/await
β βββ work_stealing.hexa M:N work-stealing scheduler
β βββ atomic_ops.hexa Atomic operations
β βββ dce.hexa Dead code elimination
β βββ loop_unroll.hexa Loop unrolling
β βββ escape_analysis.hexa Escape analysis
β βββ inline_cache.hexa Inline caching
β βββ simd_hint.hexa SIMD vectorization hints
β βββ pgo.hexa Profile-guided optimization
β βββ nanbox.hexa NaN-boxing values
β βββ trace_jit.hexa Hot loop detection + trace recording
β βββ codegen_esp32.hexa ESP32 code generation
β βββ codegen_verilog.hexa FPGA Verilog generation
β βββ codegen_wgsl.hexa WebGPU shader generation
β βββ anima_bridge.hexa ANIMA consciousness bridge
β βββ llm.hexa LLM-assisted generation
β βββ ir/ HEXA-IR (Jβ=24 opcodes, Ο=4 categories)
β βββ lower/ AST β IR lowering
β βββ opt/ Ο=12 optimization passes
β βββ codegen/ ARM64/x86_64/ELF/Mach-O native codegen
β βββ alloc/ Egyptian fraction allocator backend
β βββ std_*.hexa stdlib (net/fs/io/time/collections/...)
β βββ lib.hexa + main.hexa Library entry + CLI dispatcher
βββ build_hexa.hexa Cargo-free self-host build pipeline
β (hexa_v2 β C β clang β hexa_v3)
βββ examples/ Example programs
βββ editors/jetbrains/ JetBrains IDE plugin
βββ playground/ WASM browser playground
βββ docs/
β βββ spec.md Language specification
β βββ n6-constants.md n=6 constant reference
β βββ website/ hexa-lang.org source
β βββ book/ The HEXA Book (6 chapters)
β βββ paper/ PLDI paper outline
β βββ community/ Contributing + Code of Conduct
β βββ publish-checklist.md crates.io publishing guide
βββ pkg/ hx system package manager
β βββ hx CLI (pure shell, zero deps)
β βββ install.sh One-liner installer
β βββ registry.json Package registry
βββ PLAN.md Development plan (100% complete)
βββ README.md this file
Keywords: 53 (ΟΒ·Ο+sopfr)
Operators: 24 (Jβ)
Primitives: 8 (Ο-Ο)
DSE combos: 21,952
- The HEXA Book β Learn HEXA from scratch (6 chapters)
- Language Spec β Complete specification
- n=6 Constants β Mathematical reference
- Development Plan β Full roadmap (100% complete)
- Contributing β How to contribute
- Good First Issues β Beginner-friendly tasks
See CONTRIBUTING.md for setup and guidelines. Good first issues are listed in FIRST_ISSUES.md β one per paradigm!
- TECS-L β Mathematical foundation (perfect numbers, 150+ characterizations)
- n6-architecture β n=6 computing architecture (102 DSE domains)
- Anima β Consciousness engine (446 laws, Rust backend)
MIT