Skip to main content

Crate cuda_instruction_set

Crate cuda_instruction_set 

Source
Expand description

§cuda-instruction-set

Agent-native instruction set unifying FLUX VM, cuda-genepool instincts, and cuda-axiom deliberation into one bytecode format.

§Opcode Categories

  • Control (0x00-0x07): JMP, CALL, RET, HALT
  • ArithConf (0x08-0x17): Arithmetic with confidence propagation
  • Logic (0x18-0x1F): Bitwise with confidence
  • Compare (0x20-0x27): Confidence-aware comparisons
  • Stack (0x28-0x2F): Typed stack operations
  • Perception (0x30-0x37): IO, sensor fusion
  • A2A (0x38-0x4F): Agent-to-agent communication
  • Memory (0x50-0x57): Capability-based regions
  • Type (0x58-0x5F): Boxed values, casting
  • SIMD (0x60-0x67): 4-wide vector operations
  • Instinct (0x68-0x6F): Biological instinct activation
  • Energy (0x70-0x77): ATP budgets, apoptosis
  • System (0x78-0x7F): Debug, barriers, resources

§Confidence Propagation

Every ArithConf operation propagates uncertainty using Bayesian fusion: post_conf = 1 / (1/conf_a + 1/conf_b) This ensures confidence decreases monotonically through computation chains.

Structs§

A2AMessage
A2A message encoding
Assembler
Simple text assembler
ConfValue
A value with attached confidence
Confidence
Confidence value in [0.0, 1.0]
Disassembler
Text disassembler
Instruction
Variable-length instruction

Enums§

OpCategory
Opcode categories
Opcode
All agent opcodes (80 instructions)