{"id":31096,"date":"2020-12-21T16:35:44","date_gmt":"2020-12-21T21:35:44","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31096"},"modified":"2021-01-01T12:12:39","modified_gmt":"2021-01-01T17:12:39","slug":"ruby-3","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/12\/21\/ruby-3\/","title":{"rendered":"Ruby 3"},"content":{"rendered":"<p><a href=\"https:\/\/www.ruby-lang.org\/en\/news\/2020\/12\/20\/ruby-3-0-0-rc1-released\/\">Ruby<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=25494789\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.ruby-lang.org\/en\/news\/2020\/12\/20\/ruby-3-0-0-rc1-released\/\"><p>Ruby 3.0 ships with <code>rbs<\/code> gem, which allows parsing and processing type definitions written in RBS.<\/p><p>[&#8230;]<\/p><p>Currently, TypeProf serves as a kind of type inference.<\/p><p>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.<\/p><p>[&#8230;]<\/p><p>Ractor is an Actor-model like concurrent abstraction designed to provide a parallel execution feature without thread-safety concerns.<\/p><p>[&#8230;]<\/p><p><code>Fiber#scheduler<\/code> is introduced for intercepting blocking operations. This allows for light-weight concurrency without changing existing code.<\/p><\/blockquote>\n\n<p id=\"ruby-3-update-2021-01-01\">Update (2021-01-01): <a href=\"https:\/\/www.ruby-lang.org\/en\/news\/2020\/12\/25\/ruby-3-0-0-released\/\">Ruby<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=25534588\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/www.ruby-lang.org\/en\/news\/2020\/12\/25\/ruby-3-0-0-released\/\"><p>We are pleased to announce the release of Ruby 3.0.0.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Ruby (Hacker News): Ruby 3.0 ships with rbs gem, which allows parsing and processing type definitions written in RBS.[&#8230;]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.[&#8230;]Ractor is an Actor-model [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-12-21T21:35:47Z","apple_news_api_id":"9e39b854-40b8-41ba-9f91-ef171d7f6aa7","apple_news_api_modified_at":"2021-01-01T17:12:42Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/Anjm4VEC4Qbqfke8XHX9qpw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[800,46,71,287],"class_list":["post-31096","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-concurrency","tag-languagedesign","tag-programming","tag-ruby"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=31096"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31096\/revisions"}],"predecessor-version":[{"id":31199,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31096\/revisions\/31199"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}