Skip to content

v4.0.0: The TinyTalk Revolution (.tnt)

Choose a tag to compare

@kicode01 kicode01 released this 08 Nov 17:16
· 35 commits to main since this release

TinyTalk v4.0.0 (.tnt) -- The Smalltalk Revolution & Explosive Performance

TinyTalk v4.0.0 marks the historic dawn of the post-text, live-object programming era. Combining the clean elegance of Python syntax, the living interactive heritage of Smalltalk-72/80, and the explosive bare-metal compilation speed of unboxed machine code, TinyTalk establishes a unified semantic programming substrate with 100% backward compatibility for all Black Mamba (.bmb) codebases.


🌐 Live Web Arena & Interactive Studio


💻 Official Visual Studio Code Extension (tinytalk-4.0.0.vsix)

  • Dual Syntax Grammar: First-class syntax highlighting and bracket matching for both .tnt and .bmb files.
  • Language Server Protocol (LSP 3.17): As-you-type Cartesian type diagnostics, struct autocomplete, go-to-definition, and 4-space code formatting.
  • Install via CLI:
    code --install-extension tinytalk-4.0.0.vsix

⚡ Flagship Real-World Application: High-Frequency Trading Engine (.tnt)

  • Location: examples/tinytalk_hft_engine.tnt
  • Features Demonstrated:
    • Zero-cost stack-allocated structs (Order, Trade, BookLevel).
    • Nanosecond IEEE-754 SSE2 floating point calculations and VWAP computation.
    • Quantitative signal derivation via functional pipeline operator (|>).
    • Single-cycle CPU jump table pattern matching on order execution actions.
    • Deep order book sweeping (500,000 lots) via Automatic Tail-Call Optimization (Auto-TCO) with zero stack expansion.
    • Multi-target compilation: builds cleanly to standalone Windows PE32+ .exe (21 KB), Linux ELF64 (14 KB), macOS Apple Silicon Mach-O (35 KB), and WebAssembly (5 KB).

🌟 Key Highlights & Innovations in v4.0.0

  1. The TinyTalk (.tnt) Identity & Drop-In Runtime:

    • First-class support for .tnt source files, packages, and modules.
    • Dual-personality CLI: Available as both tnt (primary) and bmb (legacy).
    • Automatic dual module resolution: Loads .tnt modules with transparent fallback to .bmb across stdlib, vendor dirs, and local projects.
  2. Living Image Persistence & Morphic Canvas:

    • Persistent memory snapshots (.tntimg with TNTIMG01 header) resuming full application state, active heap, and database in < 0.15 ms.
    • Dual-format backward compatibility supporting legacy .bmbimg (BMBIMG01) images seamlessly.
    • Infinite 2D Morphic Canvas for spatial programming and visual dataflow wiring.
  3. Zero-Syntax Content-Addressed Semantic Hypergraph:

    • Binary DAG storage format (.tntgraph with TNTG signature) storing Blake3/SHA-256 content-addressed AST nodes.
    • Eliminates text parsing overhead and syntax errors entirely.
    • Direct Hypergraph-to-MIR compiler pipeline compiling graphs directly to SSA MIR and machine code in < 0.28 ms.
  4. Multi-Perspective Projections & Lossless Transmutation:

    • Project any AST graph into Pythonic text, Morphic 2D flowcharts, or LaTeX math formulas instantaneously.
    • Lossless 3-way transmutation (tnt transmute / bmb transmute) with bit-for-bit JIT execution verification across .py, .tnt, .bmb, and .tntgraph.
  5. 100% Backward Compatibility Guarantee:

    • Every .bmb program, library, test suite, and module continues to compile and execute without modification.
    • Drop-in execution for .tnt, .bmb, .tntgraph, .bmbgraph, and .py.

🛡️ Quality Certification & Verification

  • 5-Stage Zero-Defect Pre-Release Gatekeeper:
    • [PASS] Stage 1: Standard library & self-hosting compiler syntax/MIR check.
    • [PASS] Stage 2: Unit test suite discovery (275 / 275 tests passed 100%).
    • [PASS] Stage 3: Adversarial compiler torture engine.
    • [PASS] Stage 4: Multi-target emitter matrix (JIT, PE32+, ELF64, Mach-O, WASM, C11).
    • [PASS] Stage 5: Packaging & manifest integrity check.
  • Post-Release Adversarial Fuzzer:
    • 210 / 210 Torture Cases Passed (100%) across 9 hostile vectors.

📦 Artifacts & Distribution Packages

  • tinytalk-4.0.0.vsix: Official Visual Studio Code Extension package.
  • tnt.exe & bmb.exe: Standalone Win64 compiler binaries.
  • tinytalk-v4.0.0-win64.zip & blackmamba-v4.0.0-win64.zip: Complete standalone release archives.
  • tinytalk_lang-4.0.0-py3-none-any.whl & blackmamba_lang-4.0.0-py3-none-any.whl: Python wheels.
  • tinytalk_lang-4.0.0.tar.gz & blackmamba_lang-4.0.0.tar.gz: Source distributions.
  • checksums_v400.txt: Cryptographic SHA-256 verification hashes.