Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

v0.9.5

Latest

Choose a tag to compare

@HelloAIXIAOJI HelloAIXIAOJI released this 17 Aug 17:17

[v0.9.5] - 2025-08-18

Memoization Cache System

  • Implement complete memoization cache function, support automatic caching and reuse of function call results
  • Added memo { }; syntax block to support memoized function declarations globally, in namespaces, and within classes
  • Support memoization optimization of global functions, instance methods, and static methods

Performance Optimization

  • Added a tail recursion optimization module to automatically detect and optimize tail recursive function calls
  • Numeric type enhancement: Int overflow is automatically converted to Long type, and mixed type operations are supported
  • Virtual machine instruction-level optimization: multiple new bytecode instructions, including instruction fusion and constant comparison optimization
  • Added support for Long literal syntax (123L) to improve the accuracy of numerical parsing

OOP function improvement

  • Complete inheritance and polymorphism support, implementing inheritance chain method search mechanism
  • Added access permission control: Public, Protected, Private access levels
  • Improve constructor and static method support, and improve this/super context management
  • Added multiple OOP-related bytecode instructions to support complete object-oriented programming

Debugging and Monitoring

  • Added modular debugging system: independent options such as parser debugging and tail recursion debugging
  • New performance statistics features: memoized cache statistics, tail recursion optimization report
  • New command line options: --cn-memo-stats, --cn-tail-stats, --cn-no-memo
  • Added debug macro support, providing detailed execution tracing and performance analysis

Architecture Improvements

  • Parser enhancement: support for memo syntax parsing, improved numerical literal recognition
  • Virtual machine reconstruction: transparent integration of memoized cache and complete OOP instruction execution
  • Compiler optimization: automatic memoization of registers, tail call optimization detection, instruction fusion optimization
  • Added 2 core modules: memoization.rs, tail_recursion.rs

[v0.9.5] - 2025-08-18

记忆化缓存系统

  • 实现完整的记忆化缓存功能,支持函数调用结果的自动缓存和复用
  • 新增 memo { }; 语法块,支持全局、命名空间、类内部的记忆化函数声明
  • 支持全局函数、实例方法、静态方法的记忆化优化

性能优化

  • 新增尾递归优化模块,自动检测和优化尾递归函数调用
  • 数值类型增强:Int溢出自动转换为Long类型,支持混合类型运算
  • 虚拟机指令级优化:新增多条字节码指令,包括指令融合和常量比较优化
  • 新增Long字面量语法支持(123L),改进数值解析准确性

OOP功能完善

  • 完整的继承和多态支持,实现继承链方法查找机制
  • 新增访问权限控制:Public、Protected、Private访问级别
  • 完善构造函数和静态方法支持,改进this/super上下文管理
  • 新增多条OOP相关字节码指令,支持完整的面向对象编程

调试和监控

  • 新增模块化调试系统:解析器调试、尾递归调试等独立选项
  • 新增性能统计功能:记忆化缓存统计、尾递归优化报告
  • 新增命令行选项:--cn-memo-stats--cn-tail-stats--cn-no-memo
  • 新增调试宏支持,提供详细的执行跟踪和性能分析

架构改进

  • 解析器增强:支持memo语法解析、改进数值字面量识别
  • 虚拟机重构:记忆化缓存透明集成、完整OOP指令执行
  • 编译器优化:自动记忆化注册、尾调用优化检测、指令融合优化
  • 新增2个核心模块:memoization.rs、tail_recursion.rs

Full Changelog: CodeNothingCommunity/CodeNothing@v0.9.4...v0.9.5