DEV Community

Prog. Kanishk Raj
Prog. Kanishk Raj

Posted on

ProXPL v1.6.0: The IOP and Resilience Release

🌟 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.

  • intent keyword successfully creates Intent Objects.
  • resolver functions dynamically match against intents using the matches (or for) keyword.
  • Intent invocations route dynamically based on active scopes and resolvers.

2. Context-Aware Polymorphism (CAP)

Layers override behaviors without requiring heavy class hierarchies.

  • context blocks establish scope-bound namespaces.
  • layer blocks define polymorphic overrides.
  • activate dynamically 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.

  • resilient blocks 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 blackenObject switch blocks to safely traverse ObjContext and ObjLayer memory 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)