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;
- Before
- Remove the new_env method from the Native::Runtime.
- Change the definition of the value field in the Bool class.
- 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.
- Add the following native APIs.
- 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
SPVM Array
SPVM Class
SPVM string
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
Runtime
Runtime Stack
Object File Information
Resource
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
Native APIs
Allocator Native APIs
Argument Native APIs
Basic Type Native APIs
Class File Native APIs
Class Variable Native APIs
Compiler Native APIs
Field Native APIs
Internal Native APIs
Method Native APIs
Mutex Native APIs
Runtime Native APIs
String Buffer Native APIs
Type Native APIs
Native Classes
Resource
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
Class Object
Error Code
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
Method Call
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
Mutex
Provides
in lib/SPVM/Dist.pm
Examples
- examples/doc/tutorial/basic/lib/SPVM/MyMath.spvm
- examples/doc/tutorial/basic/sum.pl
- examples/doc/tutorial/precompile/lib/SPVM/MyMath.spvm
- examples/doc/tutorial/precompile/sum_precompile.pl
- examples/native/bind_clib/bind_clib.pl
- examples/native/bind_clib/lib/SPVM/BindCLib.c
- examples/native/bind_clib/lib/SPVM/BindCLib.config
- examples/native/bind_clib/lib/SPVM/BindCLib.native/include/bind_clib.h
- examples/native/bind_clib/lib/SPVM/BindCLib.native/src/bind_clib.c
- examples/native/bind_clib/lib/SPVM/BindCLib.spvm
- examples/native/cuda_add/cuda_add.pl
- examples/native/cuda_add/lib/SPVM/MyAdd.config
- examples/native/cuda_add/lib/SPVM/MyAdd.cu
- examples/native/cuda_add/lib/SPVM/MyAdd.native/include/cuda_array_culc.h
- examples/native/cuda_add/lib/SPVM/MyAdd.native/src/cuda_array_culc.cu
- examples/native/cuda_add/lib/SPVM/MyAdd.spvm
- examples/native/eigen/README
- examples/native/gsl/lib/SPVM/MyGSL.c
- examples/native/gsl/lib/SPVM/MyGSL.config
- examples/native/gsl/lib/SPVM/MyGSL.spvm
- examples/native/gsl/mygsl.pl
- examples/native/opencv/resize/lib/SPVM/MyOpenCVResize.config
- examples/native/opencv/resize/lib/SPVM/MyOpenCVResize.cpp
- examples/native/opencv/resize/lib/SPVM/MyOpenCVResize.spvm
- examples/native/opencv/resize/linux-pengin-output.png
- examples/native/opencv/resize/linux-pengin.png
- examples/native/opencv/resize/opencv_resize.pl
- examples/native/openmp/lib/SPVM/MyOpenMP.c
- examples/native/openmp/lib/SPVM/MyOpenMP.config
- examples/native/openmp/lib/SPVM/MyOpenMP.spvm
- examples/native/openmp/openmp.pl
- examples/native/zlib/lib/SPVM/MyZlib.c
- examples/native/zlib/lib/SPVM/MyZlib.config
- examples/native/zlib/lib/SPVM/MyZlib.spvm
- examples/native/zlib/zlib.pl
- examples/spvmcc/basic/README.txt
- examples/spvmcc/basic/SPVM/MyApp.spvm
- examples/spvmcc/basic/myapp