An open-source, object-oriented, actor-model, capabilities-secure, high-performance programming language
open sourceBSD-2-Clausefree
Pony is an open source, object-oriented, actor-model, capabilities-secure, high-performance programming language for fast, safe, highly concurrent programs. Its type system adds reference capabilities, labels on data that say how it can be shared, and the compiler checks them, so programs are data-race free and deadlock-free with no locks or atomic operations at all. It's type safe (with a mathematical proof), memory safe with no null, dangling pointers or buffer overruns, and exception-safe, and a program that compiles should never crash. It compiles ahead of time to native code with no interpreter or virtual machine, garbage-collects each actor's objects separately and collects actors themselves with the ORCA protocol, and calls C libraries through its foreign function interface. Pony hasn't reached 1.0: breaking changes still happen, its library ecosystem is small and it has no IDE, though it has a language server and Corral for dependencies.
Libraries for Pony
Talira doesn't list any yet.
Problems it solves
- write highly concurrent code without data races or deadlocks
- an actor-model language that compiles to fast native code
- a language whose compiler guarantees my concurrent program can't crash
- share data between threads safely without locks
- a memory-safe language with no null and no runtime exceptions
Features
- actors and an actor-model runtime
- reference capabilities checked by the compiler
- data-race free and deadlock-free, with no locks
- type safe, memory safe, no null and exception-safe
- ahead-of-time compilation to native code
- per-actor garbage collection and ORCA actor collection
- C foreign function interface
- language server, linter and Corral dependency manager
Limitations
- Hasn't reached 1.0: breaking changes still happen.
- Small library ecosystem and no IDE.
Alternatives
The same job
These do what Pony does.
- Erlang Practical functional programming for a parallel world
- Go Build simple, secure, scalable systems with Go
- Rust A language empowering everyone to build reliable and efficient software.
- Crystal A language for humans and computers
- Mojo The systems language for the AI era
- Haskell Enjoy long-term maintainable software you can rely on
