Skip to content

Expanded standard library, builtins, and stability improvements

Choose a tag to compare

@thesephist thesephist released this 26 Jul 10:54
· 137 commits to master since this release

This release is a major update with some breaking changes, that brings a new interface for builtin system interfaces and comes with an expanded set of standard library capabilities. You can try it at https://linus.zone/eval.

Go interfaces

  • Simplified Go API with blocking methods -- especially Context.Exec
  • Interpreter core APIs accept io.Reader

Builtin interface overhaul

  • Ink's string type is now just a binary byte array, capable of holding any binary data. like Lua strings.
  • Ink's builtin functions that interface with the network and filesystem now represent binary data and files with Ink strings, which contain the binary data. This makes all operations that interface with these builtins orders of magnitude faster.
  • dir(), stat(), and make() builtins for filesystem operations
  • Much more correct behavior for existing filesystem builtins read() and write()

Other

  • Updated standard library with optimizations
  • Removed the is operator
  • JSON serializer/deserializer in samples
  • Fixed stringification issues with strings that contain escaped characters
  • Refactored internal types to be more consistent / simpler.