Agentica 0.33.0
Agentica 0.33.0 is out. This post lists what changed; the full list is in the changelog.
What is new #
Bytes.build do |out| ... endbuilds oneBytesfrom many parts with no copy in between.Actor.sendandActor.awaitsplitActor.callin two, so a caller can ask several actors first and await each answer later.Process.spawnwithpty: trueruns a program on a pseudo-terminal, andProcess.resizesets its size (Linux and macOS).Native.arena do ... endcloses, when its block ends, the native resources and buffers the block opened, except those its value holds.- The errors of file and network builtins carry
details:"path"for file calls,"host"for network calls. agentica compilewith no-ofills the bytecode cache ahead for everymain.agcunder the working folder.
Faster #
- With several schedulers, TCP and TLS reads and sends run on the task’s scheduler: faster streams and HTTP(S) servers.
ATS.get,has_key?and the read ofpushtake no lock, so readers scale with the schedulers.agentica FILE.agcstarts a cached program without loading the compiler: about 16 ms in place of 48 ms on Linux.- A
compute defor dirty native call right after another costs about 3 µs in place of 15 to 25 µs. - The interpreter runs programs 4 to 6% faster; text work,
JSON.parseandFloatto text are faster too.
agc-redis-s on 0.33.0 #
agc-redis-s is a Redis-compatible server written in Agentica. We ran the same code on 0.32.0 and on 0.33.0 with redis-benchmark 8.0.2 and 4 schedulers. GET, LPUSH and MGET with a pipeline of 16 run 18 to 27% faster. With 1 scheduler the difference is within noise.
With Bytes.build building the replies, LRANGE_100 runs 3 to 4 times as fast. The numbers and the method are in agc-redis-s pull request 69; tools/bench.py in that repository reruns them.
Fixed #
String#downcasepicks the final sigma as Python does.- Loops that parse large JSON arrays or build large lists are much less likely to hit
--max-heapon macOS arm64 and Windows. JSON.decodeand codecs give a field’s default for a missing key.
To install or upgrade, see getting started.
The last patch release of 0.33 is 0.33.2; see the releases.