Download Latest Version HanoiVM-v0.9.3.zip (1.3 MB)
Email in envelope

Get an email when there's a new version of HanoiVM

Home
Name Modified Size InfoDownloads / 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, and T729Tensor 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 behavior
  • T729MetaOpcode 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


  • [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.”

Source: README.md, updated 2025-05-31