Skip to content

Stax 1.1.3

Compare
Choose a tag to compare
@tomtheisen tomtheisen released this 13 Feb 06:40
· 255 commits to master since this release

Stax 1.1.3

Language:

  • Eval interprets and -∞ as floating point infinities. Works with e and implicit input evaluation.
  • Directly printing an infinity and converting one to string using $ consistently produce "∞".
  • Deprecated :F to get indices of falsy elements. Use :0 instead.
  • Bugfix: Multiplying array by negative integer mutated array in place before repeating.
  • Remove-at |@ works with negative indices.
  • Absolute difference :- now works with any kind of mixed numeric operands.
  • Totient function instruction :t works for input of 1.
  • Fibonacci instruction |5 produces values for negative integers as if the sequence extended infinitely in both directions.
  • Bugfix: All-partitions :! and all-excerpts :e work for empty array input (producing empty output)
  • Bugfix: Format number j produces specified number of decimal places, even for 0.0.

Web UI: (https://staxlang.xyz/)

  • Copy button to copy entire output to clipboard
  • Forgot to set foreground color in CSS. Oops.
  • Limit the height of the automatically sized input box. For really large outputs, scrolling the whole document could be inconvenient.
  • The automatic code type classifier is the thing that decides whether to show the "Pack", "Unpack", or "Golf" button. It's smarter now, and can distinguish between 5 kinds of program source.
    • LooseAscii, // all ascii with extra whitespace or comments
    • LowAscii, // ascii with no extra whitespace, but can't be packed, e.g. newline in string literal
    • TightAscii, // minified ascii, could be packed
    • Packed, // PackedStax, tightest representation known
    • UnpackedNonascii, // Unpackable, due to emojis or something
  • If a program is running, pressing esacpe stops the program instead of closing the quick reference panel.

Bonus:

  • Fixed typos in documentation