ChaiScript v6.0.0 Release Notes

Release Date: 2017-02-22 // about 4 years ago
  • ๐Ÿ”„ Changes since 5.8.6

    6.0.0 is a massive rework compared to 5.x. It now requires a C++14 enabled compiler

    Compiler Requirements

    • MSVC 2015 or greater
    • g++ 4.9 or greater
    • clang 3.6 or greater

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ— Instantiating a ChaiScript object now, by default, builds the stdlib in
      • This was done to address the most common support issues of loading stdlib dynamically at runtime
      • If you want the old behavior, use include/chaiscript/chaiscript_basic.hpp
    • ๐Ÿ— Headers have been reorganized to fully separate stdlib/parser/engine from each other (some faster builds)
    • Bootstrap functions no longer return a reference to the module added to (compile time savings)
    • It's now no longer possible modify AST_Nodes (compile time, runtime efficiency)
    • Function annotations no longer exist (simplifies code, reduces compile time, compile size)

    ๐Ÿ†• New Features Added

    • Modular optimization system; this can be accessed via the ChaiScript_Basic interface
    • Execution tracing capability; also accessed via ChaiScript_Basic interface
    • ๐ŸŽ range-based for loops for( id : container ) { } (much better performance than other loop types)
    • If-init expressions (ala C++17)
    • ๐Ÿ‘Œ Support for passing r-value references to functions
    • ๐Ÿ‘Œ Support for containing unique_ptr
    • โž• Add helpers for exposing enum classes to ChaiScript
    • ๐Ÿ‘ Allow typed ChaiScript defined functions to perform conversions on call #303

    ๐Ÿ‘Œ Improvements

    • Compile time improvements
    • Compile size improvements
    • ๐Ÿ‘€ Significant runtime improvements (see "Modular optimization system")
    • ๐Ÿ“œ Significant parser improvements, both with parse-time and parser initialization time (Thanks @niXman)
    • ๐Ÿ›  Fix type conversion to bool in conditionals

    ๐Ÿ‘Œ Improvements Still Need To Be Made

    • File location tracking has been rewritten; this currently means error location reporting is not as good as it was
    • โœ… Tracing capability needs to be tested and vetted