Changes for version 0.990152 - 2026-03-26

  • Bug Fixes
    • Fix "Permission denied" errors on Windows when removing the temporary build directory.
  • New Features
    • SPVM::Global: Implement a global resource management system for temporary build directories and dynamic library handles.
    • SPVM::Global: Add SET_BUILD_TMP_DIR to allow explicit control over the temporary build directory location.
    • SPVM::Builder::Util: Expose get_cpu_count as a public API in SPVM::Builder::Util::API to support platform-independent CPU detection for parallel builds.
  • Changes
    • SPVM::Global: Relocate get_method_addresses from SPVM::Builder::Util to SPVM::Global to better align with runtime dynamic library loading.
    • SPVM::Global: Implement explicit unloading of cached dynamic libraries using DynaLoader::dl_unload_file in the END block to ensure clean resource release.
    • SPVM::Global: Ensure $BUILDER is undefined before calling rmtree in the END block to release file handles and prevent "Permission denied" errors on Windows.
    • SPVM::Builder::Ninja: Improve concurrent log safety by using read-write mode (+<) with mandatory seeking and flock to prevent data corruption during parallel builds.
    • SPVM::Builder::Ninja: Use truncate and seek in recompact to ensure portable and safe log management on Windows and Unix.
    • SPVM::Builder::Ninja: Implement read_lock, write_lock, and write_lock_with_flush methods to encapsulate concurrent access logic.
    • SPVM::Builder::CC: Refactor need_generate to accept command_hash directly and update its callers in CC.pm.
    • SPVM::Builder: Load ExtUtils::CBuilder dynamically only when compilation or linking is needed to improve performance.
  • Internal Changes
    • SPVM::Global: Fix missing File::Path import by explicitly adding use File::Path 'rmtree'.
    • SPVM::Builder::Ninja: Ensure the log directory is created (mkpath) before any file operations in prepare and recompact methods.
    • SPVM::Builder::CC: Remove redundant optimization flag assignment from new_options_string in create_make_rule.

Documentation

Executing SPVM programs
Generating Excutable File
Class Dependencies Analyzer
Generating SPVM Distribution
A tool to list non-core CPAN dependencies recursively.

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
Config for Compiling and Linking Native Classes
Configuration for Dynamic Link Libraries
Configuration for Executable Files
Excutable File Config
Config for Linking Native Classes
Utility for Analyzing Class Dependencies
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
Script Information
Builder Utilities
Builder Utility APIs
A byte Value as An Object
Dynamic byte Arrays
Callback interface
A Callback Interface for grep Method
A Callback Interface for grep_byte Method
A Callback Interface for grep_double Method
A Callback Interface for grep_float Method
A Callback Interface for grep_int Method
A Callback Interface for grep_long Method
A Callback Interface for grep_short Method
A Callback for The map Method
A Callback for The map_expand Method
Information about a Caller
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
Countable Interface
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
EqualityCheckable Interface
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
Field Not Specified Errors
Method Call Not Permitted Error
Not Supported Error
System Error
Invalid UTF8 Errors
SPVM Exchange API
A float value as An Object
Dynamic float Arrays
SPVM Starndard Functions
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
Pack and Unpack Operations
A Specifier for a pack/unpack Template.
Point
Point 3D
List with O(1) deque
SPVM information
Executing Callback at End of Scope
A short Value as An Object
Dynamic short Arrays
Sorting Functions
String Buffers
Dynamic string array
Stringable Interface
Interface Type for Stringing Callback

Provides

in lib/SPVM/Builder/Accessor.pm
in lib/SPVM/Builder/Config/Exe/MSVC.pm
in lib/SPVM/Builder/Ninja.pm
in lib/SPVM/Dist.pm

Examples