The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.990008 - 2023-09-02

  • New Features
    • Add Fn#memcmp method.
    • Add Comparable interface.
    • Add StringBuffer#cmp method.
    • StringBuffer class has Comparable interface.
    • Add new syntax for anon method field definition. You can use the varialbe name that is different from the varialbe name of a default value.
      • VAR : ATTRIBUTE1 ATTRIBUTE2 ATTRIBUTEn TYPE = OPERAND
      • Example { my $default1 = 7; my $default2 = 10; my $object = [$var1 : int = $default1, $var2 : int = $default2] method : int () {
        • my $total = $var1 + $var2;
        • return $total;
        • };
      • }
    • Add Fn#reverse_inplace method.
    • Add Array#equals method.
    • Add Fn#is_string_array method.
    • Add Native::MethodCall#new_proto method.
  • Exception Message Improvement
    • Exception messages in Native::MethodCall#call method are improved.
    • https://github.com/yuki-kimoto/SPVM/issues/528
  • Internal Changes
    • Rename SPVM_IMPLEMENT_MOVE_OBJECT_CHECK_READ_ONLY to SPVM_IMPLEMENT_MOVE_OBJECT_CHECK_READ_ONLY_STRING.
    • Rename SPVM_OPCODE_C_ID_MOVE_OBJECT_CHECK_READ_ONLY to SPVM_OPCODE_C_ID_MOVE_OBJECT_CHECK_READ_ONLY_STRING.
    • SPVM_IMPLEMENT_MOVE_OBJECT_CHECK_READ_ONLY checks if the type is string type.
    • Use a new runtime stack for DESTROY method instead of using the current runtime stack.
  • Bug Fix
    • Fix a bug that the creation of multi dimensional array of any object by new operator is allowed.
      • https://github.com/yuki-kimoto/SPVM/issues/541
    • Fix a bug that a case of compilation error causes segmentation fault.
      • https://github.com/yuki-kimoto/SPVM/issues/522
    • Fix a bug that the count of memory blocks is wrong.
      • https://github.com/yuki-kimoto/SPVM/issues/521
    • Fix th bug that (mutable string)$object cast does not throw an exception when $object is read-only.
      • https://github.com/yuki-kimoto/SPVM/issues/565
  • Incompatible Changes
    • The fix https://github.com/yuki-kimoto/SPVM/issues/565 cause an incompatible changes.
      • An exception is thrown if your code contains (mutable string)$object and $object is a read-only string.
  • Exception Message Changes
    • Improve exception messeges in Array class.
    • Improve exception messeges in Fn class.
    • Improve exception messages in spvmcc command.
    • Improve an exception message "[An exception thrown in DESTROY method is coverted to a warning]".
  • Changes
    • Add $api->set_exception(undef); to a test file generated by spvmdist command.

Documentation

Executing SPVM programs
Generating Excutable File
Generating SPVM Distribution

Modules

The 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
Comparable Interface
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
Classes 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
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
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
Executing Callback at End of Scope
A short Value as An Object
Dynamic short Arrays
Sorting Functions
String Buffers
Dynamic string array
A Interface Type to Stringify a Object
Interface Type for Stringing Callback

Provides

in lib/SPVM/Dist.pm

Examples