AluVM / rust-aluvm

Rust implementation of AluVM (RISC functional machine)
https://docs.rs/aluvm
Apache License 2.0
59 stars 22 forks source link

Question about the return value #121

Closed cymqqqq closed 2 months ago

cymqqqq commented 2 months ago

I have some questions about the aluvm:

  1. if I want to return a value in the aluvm script(whatever it is), what kind of instruction should I take? (Now there is a ret instr, but it returns nothing)
  2. if I want to call another transition or extension, can I use call instr to call the lib id(hash) of a specific transition?
dr-orlovsky commented 2 months ago

In any registry-based assembler values are returned via registers. And there is no such thing as "calling other state transition or extensions": the question just doesn't make sense, like "how to call CNN from AluVM"