Files
tyche/TODO.md
Andre Wagner 3fce2d383c .
2026-05-02 15:06:31 -05:00

1.4 KiB

Bytecode

  • Byte array
    • Auto-expand
    • Add/retrive byte/int/float/string
    • Should not be larger than the byte array itself
  • Bytecode
    • Add/retrive all types of data
    • Keeps no memory except for caching
    • Refactor bytecode code

Improvements:

  • Fixed int type (based on opcode)
  • Constant type (only floats and strings for now)

After some additional development:

  • Bytecode debugging info

VM

  • VM
    • Code
      • Simple bytecode loader
        • Output bytecode format
    • Value object
    • Stack object
    • External interface
    • Code execution (except functions)
    • Functions
    • Print stack
  • Assembler
  • VM execution
    • Stack operations (nil, integer, float, string, function)
      • Integer
      • Float
      • String
    • Expressions
      • Integer
      • Float
      • String
    • Local/global variables
    • Functions
    • Constants
    • Other operations
    • Arrays
      • Iteration
      • Expressions
    • Tables
      • Iteration
      • Metatables
      • Expressions
    • Control flow
    • Compilation
    • Error handling
  • C++ API
    • Run native code on VM
    • Run tyche code from C++
    • C API

After some additional development:

  • Bytecode loader
    • Combine multiple chunks
    • Resolve function ids, constant ids, etc
  • Upvalues