Ruby 3.0.0 Preview1 Released

Ruby 3.0.0-preview1 brings many new features and performance improvements such as the ‘rbs’ gem and Thread Scheduler.

Recently, the Ruby team announced the release of Ruby 3.0.0-preview1, which brings many new features and performance improvements such as the ‘rbs’ gem, which allows parsing and processing type definitions written in RBS.
 
Here, RBS is a language that describes the types of Ruby programs. "Type checkers including type-profiler and other tools supporting RBS will understand Ruby programs much better with RBS definitions.".
 
RBS allows writing advanced types including union types, method overloading, and generics. It also brings duck typing support with interface types
 
 
This preview release is introducing a Ractor experimental feature, which enables you to make multiple tractors and run them in parallel.
 
The release also features ‘Thread#scheduler’ for intercepting blocking operations. Scheduler (Experimental) allows for light-weight concurrency without changing existing code.
 
Some other Notable New Features include Rightward assignment statement, Endless method definition, Find pattern, and Hash#except(now built-in).