The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.989096 - 2023-03-27

  • Incompatible Changes
    • Change the definition of the value field in the Bool class.
      • Before
        • has value : ro int;
      • After
        • has value : ro byte;
    • Remove the new_env method from the Native::Runtime.
  • New Features
    • Add the following native APIs.
      • int32_t (*get_byte_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* byte_object); int32_t (*get_short_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* short_object); int32_t (*get_int_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* int_object); int64_t (*get_long_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* long_object); float (*get_float_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* float_object); double (*get_double_object_value)(SPVM_ENV* env, SPVM_VALUE* stack, void* double_object);
    • Add the following native runtime APIs. SPVM_ENV* (*get_env)(void* runtime);
    • Add the get_env method to the Native::Rutnime.
  • Internal Changes
    • A runtiem has its runtime environment.
  • Breaking Binary Compatibility
    • Native API IDs are changed after 195
    • Before
      • 195 reserved195, 196 new_stack, 197 free_stack, 198 get_field_object_defined_and_has_pointer_by_name, 199 get_field_object_ref, 200 get_field_object_ref_by_name, 201 is_binary_compatible_stack, 202 assign_object, 203 new_string_array_no_mortal, 204 new_memory_block, 205 free_memory_block, 206 get_memory_blocks_count, 207 say, 208 warn, 209 spvm_stdin, 210 spvm_stdout, 211 spvm_stderr, 212 check_bootstrap_method 213 new_array_proto_element_no_mortal 214 new_array_proto_element
    • After
      • 195 is_binary_compatible_stack, 196 new_stack, 197 free_stack, 198 get_field_object_defined_and_has_pointer_by_name, 199 get_field_object_ref, 200 get_field_object_ref_by_name, 201 check_bootstrap_method 202 assign_object, 203 new_string_array_no_mortal, 204 new_memory_block, 205 free_memory_block, 206 get_memory_blocks_count, 207 say, 208 warn, 209 spvm_stdin, 210 spvm_stdout, 211 spvm_stderr, 212 new_array_proto_element_no_mortal 213 new_array_proto_element 214 get_byte_object_value 215 get_short_object_value 216 get_int_object_value 217 get_long_object_value 218 get_float_object_value 219 get_double_object_value

Documentation

Executing SPVM programs
Generating Excutable File
Generating SPVM Distribution

Modules

SPVM Language
Address
Array Utilities
SPVM object
A Boolean value as An Object
Build Dynamic Libraries for SPVM Distribution
Builder APIs
Compilation and Link of Native Class
Compiler Information
Config for Compiling and Linking Native Classes
Excutable File Config
Config Information
Creating Executable File
Library Information for A Linker
Linker Information
Basic Type Native APIs
Class File Native APIs
Compiler Native APIs
Runtime Environment
Method Native APIs
Object File Information
Builder Utilities
Builder Utility APIs
A byte Value as An Object
Dynamic byte Arrays
Callback interface
A Callback for The grep Method
A Callback for The map Method
A Callback for The map_expand Method
Interface Type to Clone Object
Interface Type for the Callback to Clone a Object
Command Line Information
Interface Type for Object Comparation Callback
Interface Type for double Comparation Callback
Interface Type for float Comparation Callback
Interface Type for int Comparation Callback
Interface Type for long Comparation Callback
Interface Type for String Comparation Callback
double Complex Type
float Complex Type
SPVM Documents
Environment Variables
SPVM Language Specification
Class Definition in The SPVM Language
Exception Handling in The SPVM Language
Garbage Collection in The SPVM Language
Operators in The SPVM Language
Statements in The SPVM Language
Syntax Parsing in The SPVM Language
System Setting in The SPVM Language
Lexical Tokenization in The SPVM Language
Types in The SPVM Language
SPVM Standard Modules
Allocator Native APIs
Basic Type Native APIs
Class File Native APIs
Class Variable Native APIs
String Buffer Native APIs
A double value as An Object
Dynamic double Arrays
Renamed
Interface Type for Object Equality Checking Callback
a callback implementation of EqualityChecker to check if the memory addresses of the two objects are equal.
Error
Compilation Errors
Not Supported Error
System Error
Invalid UTF8 Errors
SPVM Exchange API
A float value as An Object
Dynamic float Arrays
SPVM Starndard Functions
For Only Resource Tests
Format Utilities
SPVM Global Instance
Hash (Associative Array)
Hash entry
Immutable byte Array
Immutable double Array
Immutable float Array
Immutable int Array
Immutable long Array
Immutable short Array
Immutable string array
An int value as An Object
Dynamic int Arrays
Dynamic Object Array
A long value as An Object
Dynamic long Arrays
Getting the current native environment, stack, runtime, compiler.
Native APIs
Information of Arguments
Information of Basic Types
Information of Class Files
Information of Class Variables
Native::Compiler
Constant Values in Native APIs
Runtime Environment
Information of Fields
Information of Methods
Native::Runtime
Call Native::Stack
Point
Point 3D
Renamed
Executing Callback at End of Scope
A short Value as An Object
Dynamic short Arrays
Sorting Functions
Renamed
String Buffers
Dynamic string array
A Interface Type to Stringify a Object
Interface Type for Stringing Callback

Provides

in lib/SPVM/Dist.pm

Examples