本期看点
Ruby 3.0.0 RC1 Released
https://www.ruby-lang.org/en/news/2020/12/20/ruby-3-0-0-rc1-released/
We are pleased to announce the release of Ruby 3.0.0-rc1. It introduces a number of new features and performance improvements.
Is Ruby 3 Actually Three Times Faster?
https://codefol.io/posts/is-ruby-3-actually-three-times-faster/
Ruby 3x3 announced that Ruby 3.0 would be three times as fast as Ruby 2.0. It was an audacious goal, especially for a language released in 1995. Ruby 3 is due to be released in less than a month. They’re hard at work on some of the features, but non-JIT performance is pretty close to release speed. If they pull another 5%-10% speed increase at the last minute (which happened for Ruby 2.5!) it’ll be surprising. The current performance is basically the “real” Ruby 3 performance.
Web Scraping with Ruby
https://scraperbox.com/blog/web-scraping-with-ruby
In this article, we’re going to set up a web scraper with Ruby! I think that I’ll be fun to try and scrape all developer jobs from indeed.com We’re going to start with setting up a basic web scraper. And then improve it by automating real web browsers to do the scraping. Let’s dive in!
This week in Rails: benchmark anywhere, bugfixes and more!
https://weblog.rubyonrails.org/2020/12/20/this-week-in-rails-rails-6-1-benchmark-anywhere-bugfixes-and-more/
Rails 6.1 released! Horizontal Sharding, Multi-DB Improvements, Strict Loading, Destroy Associations in Background, Error Objects, and more! Rails 6.1 has been released and wow does it have a lot of great stuff! The changes include improvements to multiple databases, adding support for destroying associations in jobs instead of in-memory, turning errors into objects, and so much more.
Rails 6.1: Horizontal Sharding, Multi-DB Improvements, Strict Loading, Destroy Associations in Background, Error Objects, and more!
https://weblog.rubyonrails.org/2020/12/9/Rails-6-1-0-release/
Rails 6.1 has been released and wow does it have a lot of great stuff! We’ve been hard at work these past few months implementing improvements to multiple databases, adding support for destroying associations in jobs instead of in-memory, turning errors into objects, and so much more.
为 Ruby 3 Fiber 调度器设计事件库 Evt
https://ruby-china.org/topics/40728
我在 2020 年 7 月写过一篇文章 《Ruby 3 Fiber 变化前瞻》,以及后来 8 月 又写过一篇文章 《尝试使用 Ruby 3 调度器》,简单介绍了 Fiber 调度器。Ruby 3 在这几个月中更新了数个版本,包括 ruby-3.0.0-preview1 ruby-3.0.0-preview2 和 ruby-3.0.0-rc1,其对于 Fiber 调度器的 API 做了更多的改进。 不过正如我之前所说,Ruby 3 调度器实现的只有接口,如果没有配套的接口实现,默认是不会启动的。最近四个月工作实在很忙,抽出了点时间来跟上 API 更新的脚步。这个项目得以进一步更新。
开源项目
qcam/3llo - Trello interactive CLI aplication
https://github.com/qcam/3llo
3llo allows you to work with Trello without exiting your favorite terminal.
javan/whenever - Cron jobs in Ruby
https://github.com/javan/whenever
Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs.
关注 微信公众号,实时获取 Ruby 动态!