Repository navigation
Releases
0.33.0
- New:
Process.spawnwithpty: trueandProcess.resizefor interactive programs (Linux and macOS),Actor.sendandActor.await,Bytes.build,Native.arena,details(path or host) on file and network errors, and Native API 1.4. - Startup: a cached program starts without loading the compiler (about 16 ms in place of 48 ms on Linux), a compiling run says
Compiling FILE…, andagentica compilewith no-ofills the cache ahead. - Faster: back-to-back
compute defand native calls (about 3 µs in place of 15 to 25 µs), TCP and TLS I/O andATSreads with several schedulers, the interpreter (4 to 6%), text work,Floatto text andBytesbuilding. - Changed:
TCP.writebuffers on TLS sockets too;Floattext and parsing are now shortest and nearest, which changes a few values on Windows. - Fixes:
String#downcasefinal sigma,--max-heaphits on large lists on macOS arm64 and Windows, andJSON.decodedefaults for missing keys.
Full list: CHANGELOG
0.32.0
- Breaking:
agentica testnow runs the scenarios of each--jobsslot in one worker process, about 5 times faster for many small scenarios. State made beforeBDD.runor set by a step is shared within a worker;--isolategives each scenario its own process. - New:
--max-heap SIZE,std/heap,ATS.pushandATS.clear, aTCP.writethat does not wait for a slow peer (withTCP.write_limitandTCP.flush),Actor.inbox, and generic structs inJSON.decode. - Faster:
ATStables are hash tables (writes 5 to 8 times faster), chunked HTTP streams and uploads join waiting pieces, loops that call builtins are up to 17% faster, and Int loops up to 15% faster on x86-64. - Fixes in
std/http(header limits,HTTP.openwith no body),std/cache, JSON with aliased field types andnonein map blocks.
Full list: CHANGELOG
0.32.0-alpha.2
Second alpha of 0.32.0. Alpha builds ship for Linux, macOS and Windows; features that land on Linux first may be missing on the others.
New since 0.32.0-alpha.1:
std/analysis:Analysis.bodiesis complete: it covers the prelude bodies and every node kind, and gives the arguments of a call in the order they run.- Channel messages between tasks scale with the schedulers (no runtime-wide lock per send or receive), so message throughput is much higher. A channel timeout of a second or more may end up a few ms late on Linux.
- Bug fixes:
CHECK-REDEFINED-NAMEhelp,PKG-LOCK-MISSINGhelp,agentica checkshows a problem of an imported file once. - Breaking: the call shape of
Analysis.bodiesnodes changed: each named argument is anamednode, and there are nodefaultplaceholders.
Not signed or notarized.
Details: https://github.com/agentica-lang/agentica/blob/0.32.0-alpha.2/CHANGELOG.md#0320-alpha2---2026-11-14
0.32.0-alpha.1
First alpha of 0.32.0. An alpha because the work on std/analysis is not finished: #1159 PRs 4 and 5 are still pending.
What is new:
Analysis.bodiesreads astd/module as the binary carries it, says for each function whether it ispure(and why not inimpure), and gives thetype_argsof generic calls.std/actor:Actor.Timeoutwakes an actor when no message came in time. Breaking:Actor.replygives aBool, and a call that times out closes its reply channel.Process.poll_line,Process.signal,Process.signal_group,Process.spawn_group.HTTP.shutdownstops a server gracefully.System.subscribeandSystem.signalfor signals. Breaking:SIGUSR1,SIGUSR2andSIGQUITnow stop the program asSIGTERMdoes.format("%-8s|%6.2f", name, price)is a builtin;def formatis now an error.JSON.node, test-only dependencies,agentica help File.Info.
Not signed or notarized. Full list: CHANGELOG.
0.31.2
Patch release, bug fixes only (built from 0.31.1):
- A hand-made
.agcbthat interpolates a bad Error fails withRUNTIME-INTERNALunder the JIT too, instead of crashing (#1561). - macOS: a stop signal after a task crash stops the program again (#1529).
nonein amapblock takes the Optional item of the expected list type (#1579).List.uniqtakesBytesitems (#1577).r.error?help on a Result points took?(#1578).
Not signed or notarized. See the CHANGELOG.
0.31.1
A patch release of 0.31.0 with two fixes.
- The
locationof an error returned by a function of anextern moduleblock is now the place of the call, not of the declaration (#1466). Task.monitor: a notice that finds its channel full is no longer dropped. A crash seen only through a monitor of aTaskRef(Task.current) is now reported as not observed (#1522).
Details: CHANGELOG.
0.31.0
Agentica 0.31.0 is the first stable release since 0.30.1. It includes the changes of 0.31.0-alpha.1.
Highlights:
- Lambdas:
->(x) { x + 1 }is a function value, and a pipe step may name a method of the value:xs |> map(f) |> sum(). - Named arguments for any function,
std/function or builtin:check(gen, verbose: true). - Errors have a type: a failed Result holds an
Errorwith a kind, message, code, details, cause and location.error("unique failed", kind: "db.constraint", code: 19)builds one ande.is_a?("db")matches a family of kinds. Builtins andstd/report kinds such asio.not_found,net.timeout,http.too_largeanddenied.fs. private: aprivateline in a file or module block makes the declarations after it private, and in a struct body makes the fields after it private to the module (the struct is built only there).agentica = "0.31.0"inagentica.tomlnames the oldest Agentica a project or package needs.- Builtin types live under their module:
File.Info,TCP.Socket,TLS.Context,Test.Case,JSON.Value,HTTP.Request. agentica lint,refsandtype-atunderstand named arguments and error kinds.
Breaking changes:
exportbefore a declaration is a parse error. A declaration is public unless it comes afterprivate: delete theexport, and putprivatebefore the declarations you want to hide.export Alias.namestill re-exports.- A file with no
privateis public as a whole (it exported only what it marked before): addprivatebefore what you want to hide. Animportafter a re-export isCHECK-DECL-ORDER: move the imports above it. - Builtin and
std/errors have kinds, and==witherror("same text")no longer holds. Branch one.kindore.is_a?("io"), not on the message. error(e)in acasebinds anError, not a String: writee.message.- A refused
--deny-*or--sandboxcall returns the kinddenied.env,denied.fs,denied.netordenied.run, noterror. - Old type names are unknown: write
JSON.ValueandJSON.Field(notJson,JsonField),File.Info,File.Handle,Process.Output,TCP.Socket,TCP.Listener,TLS.Context,TLS.ClientOptions,TLS.ServerOptions,Test.Case, andSystem.Profile.measure/System.Profile.steps. - From the alpha: a builtin has only its Ruby name (
strip,to_i,list.join, ...); the HTTP types areHTTP.Request,HTTP.Response,HTTP.Header,HTTP.ClientOptions,HTTP.ServerOptions,HTTP.ClientandHTTP.Server;Erroris a reserved type name; nothing chains after theendof adoblock (use braces);agentica test --jobs Nruns the scenarios of one file as separate jobs (use--jobs 1when they share a port, a path or a DB); the child channel ofProcess.spawn_channelis a pipe per direction.
Full list: CHANGELOG.
The archives are not signed or notarized.
0.31.0-alpha.1
Pre-release of 0.31.0. Each archive passed the release smoke test on its system, but the full test suite of the other systems (Platforms) was not awaited.
- Faster BDD runs:
agentica test --jobs Nnow spreads the scenarios of one feature file over the jobs, so one long file no longer sets the floor. Breaking: scenarios that share a port, a path or a database need--jobs 1. - Lambdas:
->(x) { x + 1 }, a lambda as a block, pipe steps that name a method (xs |> map(f) |> sum()), andagentica lint. - Breaking: builtins keep only their Ruby names (
strip,to_i,list.join, ...); the HTTP types areHTTP.Request,HTTP.Responseand the rest ofstd/http;Erroris a reserved type name; nothing chains after theendof adoblock. String#edit_distanceandString#jaro_winkler.
Programs written for 0.30 that use the old builtin or HTTP names get an error with a help that names the new form.
Full list: CHANGELOG.
0.30.1
A patch release of 0.30 with one fix.
- A guard (
return x if c), acaseor awhile/for ... doinside adoblock within[...],(...)or{...}no longer fails withLEX-UNMATCHED-DELIMITERor a parse error, soagentica fmtcan write such code back.
Details: CHANGELOG.
0.30.0
Agentica 0.30.0.
Highlights:
- Actors:
std/actorruns tasks that own their state, withcast,callandstop, andstd/supervisorrestarts an actor that crashes (one for one). channel.addressgives anAddress[T], a send-only reference that is data.- Module blocks:
module Name ... endholds several modules in one file, andexport modulemakes one importable. DNS.lookup(host)gives the IPv4 and IPv6 addresses of a host name.TCP.recv_bytes(socket, max_bytes)without a timeout waits with no limit.- Language: a
casearm takes several patterns ("ex", "px" -> ...),+joins two lists, a builtin is a function value ([1, 2].map(&Int.to_s)), a range has the Enumerable methods of List, and a constant may be anATStable shared by every task. - Fixes: running out of memory ends with
agentica: out of memory, and on macOS x86_64 a native call throughan_blockingno longer loses a value to the collector.
Breaking changes:
LogEventandLogLevelare nowLogger.EventandLogger.Levelofstd/logger; the old names are unknown, with a help.
Full list: CHANGELOG.
The archives are not signed or notarized.