Name | Modified | Size | Downloads / Week |
---|---|---|---|
README.md | 2025-05-31 | 7.3 kB | |
HanoiVM-v0.9.3.zip | 2025-05-31 | 1.3 MB | |
Totals: 2 Items | 1.3 MB | 2 |
π Hanoi β Recursive Ternary Virtual Machine
Hanoi is a recursive, AI-augmented ternary virtual machine built on a symbolic base-81 architecture. It is the execution core of the Axion + T81Lang ecosystem, enabling stack-tier promotion, symbolic AI opcodes, and entropy-aware transformations across three levels of logic:
- πΉ
T81
: 81-bit operand logic (register-like) - πΈ
T243
: Symbolic BigInt + FSM state logic - πΊ
T729
: Tensor-based AI macros with semantic dispatch
Designed for research, language development, and future ternary hardware acceleration, Hanoi is literate, modular, and fully recursive.
Join us as we move beyond binary. Explore the power of HanoiVM.
π Core Features
- π’ Ternary Operand Architecture:
-
Supports
uint81_t
,T243BigInt
, andT729Tensor
data types -
π Recursive Stack Tiering:
-
Auto-promotes through
T81 β T243 β T729
based on depth/entropy -
π§ Symbolic AI Execution:
- Includes FSM logic, pattern recognition, entropy-driven dispatch
-
AI macros:
TNN_ACCUM
,T81_MATMUL
,T729Intent
,T729MetaOpcode
-
𧬠Tensor Engine + Holomorphic Support:
-
DOT
,SLICE
,TRANSPOSE
,RESHAPE
,CLONE
,PRINT
,FFT
-
βοΈ Axion Kernel AI:
- AI introspection + rollback via NLP-style commands (
optimize
,snapshot
) -
Integrated Axion telemetry, logs, entropy weighting
-
β‘ GPU Acceleration via GAIA:
- AMD:
gaia_handle_request.cweb
(HIP) -
NVIDIA:
cuda_handle_request.cu
(CUDA) -
πΌοΈ 3D Visualization via Looking Glass:
FrameSceneBuilder.cweb
renders recursion traces in jMonkeyEngine-
Axion overlays, ternary geometry, and entropy pulse animation
-
π Secure Trace Export:
-
recursion_exporter.cweb
+nist_encryption.cweb
for audit-safe symbolic traces -
π¦ Synergistic Coordination Layer:
-
synergy.cweb
enables orchestration across all AI, GPU, recursion, and symbolic tiers -
π Literate Codebase (
.cweb
): -
Every module is self-documenting and extractable via
cweave
/ctangle
-
π§ͺ Disassembler + Test Infrastructure:
- Disassembles
.hvm
with symbolic introspection - CI-compatible tests + kernel-mode driver for system-level validation
π¦ New: T81Lang Compiler Stack
The T81Lang toolchain is now fully integrated with HanoiVM:
- β
Lexer + Parser β AST via
t81lang_parser.cweb
- β Semantic Analyzer with scope/symbol resolution
- β Intermediate Representation (IR) with symbolic ops
- β .hvm Emitter for virtual machine execution
- β HVM Interpreter with register-based runtime
- β
CLI Compiler via
t81lang_compiler.cweb
ποΈ Repository Overview
src/
βββ hanoivm_vm.cweb # Main interpreter engine
βββ advanced_ops.cweb # TNN, matrix, AI primitive opcodes
βββ advanced_ops_ext.cweb # T243/T729 extensions: FSM, intent, FFT
βββ t243bigint.cweb # BigInt math in ternary (T243)
βββ t729tensor.cweb # Tensor logic for T729 tier
βββ t81_patterns.cweb # Symbolic AI patterns & dispatch
βββ t81recursion.cweb # Canonical ternary recursion patterns
βββ gaia_handle_request.cweb # HIP symbolic GPU backend
βββ cuda_handle_request.cu # CUDA symbolic tensor support
βββ axion-ai.cweb # Kernel AI optimizer and rollback hooks
βββ disassembler.cweb # Human-readable `.hvm` introspector
βββ recursion_exporter.cweb # Export symbolic trace to `.t81viz`
βββ synergy.cweb # Cross-module synergy + integration layer
βββ FrameSceneBuilder.cweb # 3D recursion visualizer with jMonkeyEngine
βββ tisc_backend.cweb # TISC backend compiler
βββ TISCQueryCompiler.cweb # Semantic query-to-TISC compiler
βββ nist_encryption.cweb # AES/RSA/SHA support for secure data flows
tests/
βββ hanoivm-test.cweb # Kernel-mode debugfs test harness
βββ test_advanced_hvm.cweb # Test AI macros, recursion, control flow
βββ t729tensor_to_string.cweb # Tensor stringification for debug/logs
docs/
βββ ROADMAP.md
βββ CHANGELOG.md
βββ t243_t729.md # Documentation for FSM, Intent, FFT
scripts/
βββ disasm_*.sh # Bytecode disassembler tests
bazel/
βββ BUILD # Bazel config for modular builds
README.md # You are here
βοΈ Getting Started
π§ Build
bazel build //...
β Run Tests
bazel test //:disasm_advanced_test
bazel test //:disasm_controlflow_test
bazel test //:disasm_logic_test
π§ Kernel Test Harness
sudo insmod hanoivm-test.ko
cat /sys/kernel/debug/hanoivm-test
π¬ Tier Execution Demo
bazel run //:recursive_tier_execution -- --max-depth=36
π€ Axion + GAIA Integration
- GPU Execution Paths:
- NVIDIA:
cuda_handle_request.cu
-
AMD:
gaia_handle_request.cweb
-
Ternary AI Macros:
T729Intent
for symbolic AI behaviorT729MetaOpcode
for entropy-weighted logic switching-
T729HoloTensor
for FFT and multi-dimensional signal composition -
Signal Control:
- Axion tracks recursive entropy, triggers promotion/demotion
rollback
,optimize
,snapshot
available via NLP hooks
π Pattern + Symbolic Opcode Summary
Opcode | Tier | Function |
---|---|---|
T81_MATMUL |
T81 | Matrix multiply over base-81 |
T243_STATE_ADV |
T243 | FSM state vector logic |
T729_INTENT |
T729 | Dispatch symbolic AI intent |
T729_HOLO_FFT |
T729 | FFT over holomorphic ternary tensor |
T729_META_EXEC |
T729 | Meta-instruction, conditional entropy |
π Project Status
β
Recursive execution engine
β
Literate .cweb
modular design
β
Full symbolic tier stack (T81 β T243 β T729)
β
Pattern dispatch and entropy signal handling
β
Axion AI integration with rollback and NLP
β
GPU offload (HIP + CUDA) for symbolic macros
β
Verbose .hvm
disassembler and type introspection
β
Kernel-level testing (debugfs
)
β
.t81viz
recursion trace export
β
.synergy.cweb
for unified tier integration
β
AES-encrypted symbolic trace exports (nist_encryption.cweb
)
β
3D visualizer: FrameSceneBuilder.cweb
+ PulseControl
π TISC query compiler with entropy scoring
π Live REPL for .t81
to .hvm
π LLVM IR export for hybrid backend
π Axion log streaming in Looking Glass
π Related Projects
- [Axion AI] β AI optimizer and rollback kernel
- T81Lang β Ternary language for symbolic logic + AI macros
- [Alexis Linux] β AI-first OS with ternary kernel base
- Project Looking Glass β 3D GUI for recursion visualization and stack tiering
π License
MIT License β see LICENSE
for full terms.
π§ βRecursion is not just a structure β itβs the soul of ternary.β