Language for ai agents
https://www.agentica-lang.com โ// momentum
// why it's here
- Created 7 weeks ago and already shipping
- Built almost entirely by one person
- Health 98/100 with only 5 stars
- 10 releases in the last 90 days
- 51 open issues handled by one or two people
// how to help
// readme
Agentica
Agentica is Ruby with static types: Ruby-like syntax, every program checked
before it runs, and values that never change in place. Tasks run in parallel on
several cores, and it comes with HTTP, TLS and WebSockets, packages and C native
modules. A front end written in Agentica compiles each program to bytecode, and
a C VM runs it. Both are one binary, agentica.
def main() -> Void
for text in ["4", "8", "x"]
case text.to_i
ok(n) -> puts("#{text} doubled is #{n * 2}")
error(_) -> puts("#{text} is not a number")
end
end
end
4 doubled is 8
8 doubled is 16
x is not a number
Save it as hello.agc and run it with agentica hello.agc.