Skip to content

J* Version 1.6.1

Compare
Choose a tag to compare
@bamless bamless released this 16 Feb 19:16
· 222 commits to master since this release

J* AUR page

Changelog of versions 1.6 and 1.6.1:

  • Slightly changed the structure of the core library:
    • any, all, reduce and other free-functions that operate on iterables have been moved in the Iterable class as methods.
    • toList has been removed in favor of the List constructor.
    • Added a sum method to Iterable that consumes it and returns the sum of its elements.
    • Added toList, toTable and toTuple methods to Iterable that consume it and return the appropriate collection.
    • The IZip iterator can now "zip" only two iterables instead of a variable amount.
  • Faster foreach execution:
    • Added a new instruction OP_FOR_PREP that is responsible for caching the __iter__ and __next__ methods on the stack for faster method calls
    • v1.6.1: modified the behaviour of OP_FOR_PREP, OP_FOR_NEXT and OP_FOR_ITER to cache more aggressively and reduce stack manipulation.
  • Better error reporting on binary file deserialization errors
  • Slight changes to jsrDisassembleCode API, that now takes in a filepath to be used in error reporting
  • Bugfixes:
    • v1.6.1: Fixed a bug that broke the iteration protocol by calling __next__ multiple times in IFilter
    • Removed unused const type in the .jsc file format