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

v0.9.1

Choose a tag to compare

@HelloAIXIAOJI HelloAIXIAOJI released this 13 Aug 20:56
· 123 commits to master since this release
cc44134

Full Changelog: CodeNothingCommunity/CodeNothing@v0.9.0...v0.9.1

[v0.9.1] - 2025-08-14

🔧 Execution Control Optimization

  • Timeout Check Control: Added --cn-check-timeout command-line parameter
    • Timeout check is disabled by default, allowing the program to run indefinitely
  • The --cn-check-timeout parameter can enable a 30-second timeout limit
    • The issue where long-running programs were unexpectedly interrupted has been resolved
    • Backward compatibility is maintained; existing code does not require modification

🚀 Performance Optimization

  • Removal of operation count limit: Completely removed the operation count check mechanism
    • Resolved issues where complex programs were interrupted due to operation count limits
    • Enhanced the execution capability of loop-intensive programs
    • Retained the time-out check as an optional security mechanism

🏗️ Object-Oriented Programming Enhancement

  • Improved Class and Object System: Continue improving OOP features
    • Optimized method invocation mechanism
    • Enhanced object state management
  • Enhanced field access and assignment functionality
    • Improved constructor and destructor support

🛠️ Technical Implementation

  • Interpreter core improvements
  • Add timeout_enabled field to control timeout checking
    • New set_timeout_enabled() method
    • Create interpret_with_timeout() function to support timeout control
    • Modify check_timeout() method to only perform checks when enabled

Command Line Options

  • Add Execution Control Options
    • --cn-check-timeout: Enable timeout check (disabled by default)
    • Fully compatible with existing debug options
  • Supports combined use: --cn-check-timeout --cn-time

🧪 Testing and Validation

  • ✅ Default behavior: The program can run for a long time without being interrupted
  • ✅ Enabled timeout: The program correctly displays a timeout error after 30 seconds
  • ✅ Backward compatible: All existing code works normally
  • ✅ Stable performance: Performance is more stable after removing restrictions

[v0.9.1] - 2025-08-14

🔧 执行控制优化

  • 超时检查控制:新增 --cn-check-timeout 命令行参数
    • 默认情况下禁用超时检查,程序可以无限制运行
    • 使用 --cn-check-timeout 参数可启用30秒超时限制
    • 解决了长时间运行程序被意外中断的问题
    • 保持向后兼容性,现有代码无需修改

🚀 性能优化

  • 移除操作次数限制:完全移除了操作次数检查机制
    • 解决了复杂程序因操作次数限制而被中断的问题
    • 提升了循环密集型程序的执行能力
    • 保留时间超时检查作为可选的安全机制

🏗️ 面向对象编程增强

  • 类和对象系统完善:继续改进OOP功能
    • 优化了方法调用机制
    • 改进了对象状态管理
    • 增强了字段访问和赋值功能
    • 完善了构造函数和析构函数支持

🛠️ 技术实现

  • 解释器核心改进
    • 添加 timeout_enabled 字段控制超时检查
    • 新增 set_timeout_enabled() 方法
    • 创建 interpret_with_timeout() 函数支持超时控制
    • 修改 check_timeout() 方法,只在启用时进行检查

📝 命令行选项

  • 新增执行控制选项
    • --cn-check-timeout:启用超时检查(默认禁用)
    • 与现有调试选项完全兼容
    • 支持组合使用:--cn-check-timeout --cn-time

🧪 测试验证

  • ✅ 默认行为:程序可以长时间运行而不被中断
  • ✅ 启用超时:程序在30秒后正确显示超时错误
  • ✅ 向后兼容:所有现有代码正常工作
  • ✅ 性能稳定:移除限制后性能更加稳定