Skip to content

ArkScript v4.1.2

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Jan 14:10
· 19 commits to dev since this release
Immutable release. Only release title and notes can be modified.
v4.1.2
7550bb1

Added

  • the repl prints the output of the last expression it ran
  • new super instructions: MUL_BY, MUL_BY_INDEX, MUL_SET_VAL that can do multiplications (and optional storing in vars) in place
  • new super instruction: FUSED_MATH, which can fuse 2 to 3 math operations in one go (ADD, SUB, MUL, DIV)
  • new LOAD_SYMBOL instruction that avoids creating a reference

Fixed

  • the REPL doesn't color import in two colors (red for imp__t and blue for ___or_), it keeps the first color that matched (red for import here)
  • page numbers are correctly counted when using the bytecode reader with '--only-names', instead of displaying 0 every time

Changed

  • quotes are added around strings in type errors
  • disassemble can show a file bytecode
  • empty? now accepts nil and returns true for this value
  • the REPL adds (repl:history) and (repl:save filename) as builtins
  • the REPL attempts to load a file from ARKSCRIPT_REPL_STARTUP environment variable, to preload code
  • rename LOAD_SYMBOL and LOAD_SYMBOL_BY_INDEX to LOAD_FAST and LOAD_FAST_BY_INDEX to emphasize they load refs