Ruby 3.0.0, an upgrade to the beloved open source dynamic language, arrived as a production release on Christmas Day. Highlights of the new version include parallel execution and type description capabilities.
Parallel execution comes in the form of an experimental feature dubbed “Ractor,” which is an Actor-model-like concurrency abstraction intended to provide parallel execution without thread safety concerns. Developers can make multiple ractors and run them in parallel. These parallel programs can be made thread safe because ractors cannot share normal objects. Communication between ractors is supported by message-passing. However, to limit sharing of objects, Ractor introduces restrictions to Ruby’s syntax.