🌟 Overview
ProXPL v1.6.0 delivers the full implementation of three core operational pillars: Intent-Oriented Programming (IOP), Context-Aware Polymorphism (CAP), and Autonomic Self-Healing (ASR). Previously, these paradigms existed only in the frontend (Parser/AST); they are now fully integrated into the Virtual Machine with bytecode opcodes, zero-cost exception handling, and GC support.
✨ New Features
1. Intent-Oriented Programming (IOP)
Intents provide declarative runtime dispatch decoupled from direct function calls.
-
intentkeyword successfully creates Intent Objects. -
resolverfunctions dynamically match against intents using thematches(orfor) keyword. - Intent invocations route dynamically based on active scopes and resolvers.
2. Context-Aware Polymorphism (CAP)
Layers override behaviors without requiring heavy class hierarchies.
-
contextblocks establish scope-bound namespaces. -
layerblocks define polymorphic overrides. -
activatedynamically pushes layers onto the VM's active execution context stack, affecting subsequent virtual calls globally within that scope.
3. Autonomic Self-Healing (ASR)
Zero-cost exception unwinding using native setjmp/longjmp.
-
resilientblocks protect arbitrary logic chunks. - Exceptions now safely unwind through nested structures, deep call stacks, and closures.
- Local variables and closures are safely reclaimed during stack unwinding.
📈 Performance Benchmarks
The v1.6.0 release retains ProXPL's lightning-fast speed metrics for these dynamic paradigms:
- Direct Native Call (100k iter): ~0.008s
- Intent Dynamic Resolution (100k iter): ~0.006s (Negligible Overhead)
- ASR Setup Loop (1 million iter): ~0.035s
🐛 Fixes & Stabilizations
- Corrected GC
blackenObjectswitch blocks to safely traverseObjContextandObjLayermemory boundaries. - Adjusted the implementation of the interpreter stack-reset behavior to avoid unbounded loop exceptions.
🔧 Upgrading
Refer to the v1.6.0 Upgrade Guide for detailed syntax requirement shifts (e.g., semicolons for intents).
ProXPL v1.6.0 — Intent, Context, and Resilience running at the speed of native C.
Top comments (0)