Skip to main content
Pony: High-Performance, Memory-Safe Actors with Sean Allen
  1. Interviews/

Pony: High-Performance, Memory-Safe Actors with Sean Allen

·225 words·2 mins

Interview overview
#

Pony is a language born out of what should be a simple need - actor-style programming with C performance. On the face of it, that shouldn’t be too hard to do. Writing an actor framework isn’t trivial, but it’s well-trodden ground. The hard part is balancing performance and memory management. When your actors start passing hundreds of thousands of complex messages around, either you need some complex rules about who owns and frees which piece of memory, or you just copy every piece of data and kill your performance. Pony’s solution is a third way - a novel approach to memory management called reference capabilities.

In this week’s Developer Voices, Sean Allen joins us from the Pony team to explain what reference capabilities are, how Pony uses them in its high-performance actor framework, and how they implement a garbage collector without stop-the-world pauses. The result is a language for performant actors, and a set of ideas bigger than the language itself.

Links#

References
#

Related

GC Made Fast

·229 words·2 mins
Most engineers think GC is slow. They’re wrong. Coordination is slow. Pony’s per-actor heaps and message-passing model eliminate the coordination that makes traditional garbage collectors a performance problem.