Skip to content

0.40.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 20:52
· 41 commits to master since this release
f59e9de

Agentica 0.40.0 gathers the two betas of this line and a few last changes.

Highlights

  • Pipes can span lines: a line that starts with |> continues the one before it, and agentica fmt uses that form.
  • Packages may keep their modules in a src/ folder; imports do not change.
  • agentica test --test-timeout-ms N sets the time of each test and each scenario (30,000 ms by default).
  • Native libraries of a compiled program: agentica compile warns PKG-NATIVE-STORED for each library that must travel beside the .agcb, and agentica run looks for it there first.
  • Files: File.copy, File.chmod, File.symlink, File.readlink, temp files (File.open(path, "temp")) and System.hostname(); Archive.Options(keep_mode: true) keeps the modes of TAR entries.
  • Enums without payloads get values and parse, and every enum value name.
  • A List[Float32] is stored packed (4 bytes per item), and native modules can read it in place.

Breaking changes

  • The std/http connection pool is removed (HTTP.client, HTTP.close_client, HTTP.get, HTTP.post, HTTP.request, HTTP.Client). Use HTTP.get_response and HTTP.post_response, or the http-client package for a pool. HTTP.download takes HTTP.ClientOptions instead of a client.
  • std/utc is removed; use the builtin Time.
  • A 0.39 VM rejects a .agcb built by 0.40 that loads a [native] library.
  • A file error with errno ENOTSUP or EOPNOTSUPP has kind io.unsupported, not io.failed.

The full list: CHANGELOG (the 0.40.0 section and the two beta sections below it).