Monday, Dec 21, 2020 [Tweets] [Favorites]

Ruby 3

Ruby (Hacker News):

Ruby 3.0 ships with rbs gem, which allows parsing and processing type definitions written in RBS.

[…]

Currently, TypeProf serves as a kind of type inference.

It reads plain (non-type-annotated) Ruby code, analyzes what methods are defined and how they are used, and generates a prototype of type signature in RBS format.

[…]

Ractor is an Actor-model like concurrent abstraction designed to provide a parallel execution feature without thread-safety concerns.

[…]

Fiber#scheduler is introduced for intercepting blocking operations. This allows for light-weight concurrency without changing existing code.

Update (2021-01-01): Ruby (Hacker News):

We are pleased to announce the release of Ruby 3.0.0.

1 Comment

So I take it both PHP and Ruby are moving towards opt-in type annotations, a bit in the vein of TypeScript (vs. JavaScript). Interesting…

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment