This means f will take a bunch of react hooks to update the react state (e.g. printout value), a memory allocator (to allocate or extract value from heap memory), and several (1 to more) C0Value arguments.
Implementation Progress
In original C0VM, a bunch of native functions are implemented in C and connected to C0VM to support the system calls (e.g. receive user input, etc.).
The list of native functions is listed below:
β - Currently Support
β - Development in Progress, will be supported
β - No Recent Plan for implementation
Command Line Arguments β
Native Functions
Support?
NATIVE_ARGS_FLAG
β
NATIVE_ARGS_INT
β
NATIVE_ARGS_PARSE
β
NATIVE_ARGS_STRING
β
Standard I/O β
Native Functions
Support?
NATIVE_EOF
βββ (Always return true since there's no file read in C0VM.ts)
NATIVE_FLUSH
β (Always return true since there's no "buffering" in React UI Update)
NATIVE_PRINT
β
NATIVE_PRINTBOOL
β
NATIVE_PRINTCHAR
β
NATIVE_PRINTINT
β
NATIVE_PRINTLN
β
NATIVE_READLINE
β
Cursor β
There are no recent plans to implement native functions in this category (NATIVE_INDEX = [12, 54])
Double Arithmetic β
We will not support this since there is no double type in C0/C1 language. (NATIVE_INDEX=[55, 62))
File I/O β
There are no recent plans to implement native functions in this category (NATIVE_INDEX=[62, 67))
Float Arithmetic β
We will not support this since there is no float type in C0/C1 language. (NATIVE_INDEX=[67, 77))
Native Functions
Support?
NATIVE_PRINT_HEX
β
NATIVE_PRINT_INT
β
Image β
There are no recent plans to implement native functions in this category (NATIVE_INDEX = [77, 85))