Skip to content

Overview

When you write Pony code, you work with actors, reference capabilities, and the type system. But underneath all of that is the Pony runtime: the engine that schedules your actors, manages memory, handles I/O, and decides when your program is done.

You don’t need to understand the runtime to write Pony programs, but knowing how it works helps you write better ones. Understanding the scheduler explains why long-running behaviors are a problem. Understanding garbage collection explains why memory usage can spike unexpectedly. Understanding program lifecycle explains when and why your program exits.

This chapter covers: