---
title: "Improving Ruby Concurrency"
publication: "Ruby Weekly"
issue: 403
published_at: "2018-06-14"
canonical_url: "https://rubyweekly.com/issues/403"
---

This week's Ruby news, issue 403       

#403 — June 14, 2018 

[Read on the Web](https://rubyweekly.com/issues/403)   

Ruby Weekly   

[Ruby's External Malloc Problem](https://samsaffron.com/archive/2018/06/13/ruby-x27-s-external-malloc-problem) — Discourse’s Sam Saffron explores a _“severe, extremely hard to debug vector for memory bloat in Ruby which can be triggered by the PG (Postgres) gem”_. 

Sam Saffron   

[Improving Ruby Concurrency](https://www.codeotaku.com/journal/2018-06/improving-ruby-concurrency/index) — Using Fibers and non-blocking operations, it’s possible to dramatically increase concurrency in Ruby without the overhead of multi-threaded programming. 

Samuel Williams   [![\](https://copm.s3.amazonaws.com/3951bb49.jpg)](http://go.pluralsight.com/C0043458) 

[Productivity Meets Beauty—Learn Ruby Free for 10 Days](http://go.pluralsight.com/C0043458) — You can learn a lot in 10 days. Start a trial and get unlimited access to expert-led dev courses and more. 

Pluralsight sponsor   

[Arel with Wharel: Virtual Rows for Active Record](https://dejimata.com/2018/5/30/arel-with-wharel) — [Wharel](https://github.com/shioyama/wharel) is a 31-line gem adding syntactic sugar to ActiveRecord models using Arel, inspired by Sequel. 

Chris Salzberg   

[From ActiveRecord to Diesel (and Rust)](http://patshaughnessy.net/2018/6/9/from-activerecord-to-diesel) — Using new tools means learning new things, so Pat chose to use Rust and Diesel for a task that he could have easily done with ActiveRecord. 

Pat Shaughnessy   

[Adding Automated Speech Recognition for Phone Calls to Rails](https://www.twilio.com/blog/2018/05/automated-speech-recognition-phone-calls-ruby-on-rails.html) — Your Rails app could easily become a voice assistant with machine learning tools. 

Daniel Phillips (Twilio)   

▶[On Building Your Own RSpec: A Chat with Paweł Dąbrowski](https://devchat.tv/ruby-rogues/rr-366-build-your-own-rspec-a-gentle-metaprogramming-intro-with-pawel-da%cc%a8browski) 

Ruby Rogues   

[Why Crystal Is My Next Language](https://fgimian.github.io/blog/2018/06/06/why-crystal-is-my-next-language/) — This one comes from a Python developer who’s been flirting with Ruby but wants things like a single binary and better performance. 

Fotis Gimian  

💻 Jobs  

[Sr. Fullstack Engineer (Remote)](https://www.stickermule.com/careers) — Sticker Mule is looking for passionate developers to join our remote team. Come help us become the Internet’s best place to shop and work. 

Sticker Mule   

[Ruby on Rails Developer at X-Team (Remote)](https://x-team.com/remote-ruby-on-rails-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=ruby-weekly-q4-18) — We help our developers keep learning and growing every day. Unleash your potential. Work from anywhere. [Join X-Team](https://x-team.com/remote-ruby-on-rails-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=ruby-weekly-q4-18). 

x-team   

[Have You Tried Vettery?](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-58140) — Vettery matches top tech talent with fast-growing companies. Take a few minutes to join our platform. 

Vettery  

📘 Tutorials  

[How to Write a Bundler Plugin](https://bundler.io/v1.16/guides/bundler_plugins.html) — Add commands, handlers, or event-based callbacks to Bundler. 

Samuel Giddins   

[Quick Tips for a Practical Rubocop Workflow](https://blog.dnsimple.com/2018/06/quick-tips-for-practical-rubocop-workflow/) — [Rubocop](http://batsov.com/rubocop/) is a popular Ruby linting and code analysis tool. 

Luca Guidi   

[How Drivy Uses Sidekiq Middleware](https://drivy.engineering/use-sidekiq-middleware/) — Drivvy needed to add some context data to their running jobs, so they used Sidekiq middleware, a carefully-managed “bad” practice, and some creativity. 

Drivy Engineering   

[Webinar: Continuous Delivery with Docker, Kubernetes, and GoCD](https://info.thoughtworks.com/Continuous-Delivery-Docker-Kubernetes-webinar?utm_campaign=new_webinar&utm_medium=newsletter_ad&utm_source=cooperpress_ruby&utm_content=k8s_webinar&utm_term=) 

GoCD sponsor   

[Simple Shortcuts to Get More Out of Bundler](https://everydayrails.com/2018/06/11/bundler-shortcuts.html) 

Aaron Sumner   

[Using GraphQL with Rails](https://vitobotta.com/2018/06/13/using-graphql-with-rails/) 

Vito Botta   

[Quick Tip: Use Beginnings and Ends of Strings in Regular Expressions](https://andycroll.com/ruby/beginning-and-end-of-string-in-regex/) — Be more secure with `\A` and `\z` when you _really_ need to anchor to the start and end of strings. 

Andy Croll   

▶[How to Migrate from Heroku to Hatchbox.io](https://gorails.com/episodes/how-to-migrate-from-heroku-to-hatchbox) — [Hatchbox](https://www.hatchbox.io/) is a (paid) tool that handles a lot of the ops around deploying Rails apps. 

GoRails  

🔧 Code & Tools  

[Host Git Repository Servers w/ DigitalOcean’s One-Click GitLab App](https://try.digitalocean.com/gitlab-hosting/?utm_source=paid_newsletter+ruby+weekly&utm_medium=display&utm_campaign=2018_Brand&utm_content=6-14-18+ruby+weekly+cooperpress) — Save up to 55 percent by deploying GitLab on DigitalOcean. Get started today in as little as a few minutes. 

DigitalOcean sponsor   

[Sho: An Experimental 'Post-Framework' View Library](https://github.com/zverok/sho) — An experiment to provide a view layer that is ‘just Ruby’. 

Victor Shepelev   

[Passenger 5.3.2: A Security Fix Release](https://blog.phusion.nl/2018/06/12/passenger-5-3-2-various-security-fixes/) 

Phusion Blog   

[Sinatra 2.0.2 and 2.0.3 Released](http://sinatrarb.com/2018/06/09/sinatra-2.0.2-and-2.0.3.html) 

Kunpei Sakai   

[Wallaby: A Rails Engine for Managing Data/Admin Interface](https://github.com/reinteractive/wallaby) — A customizable Rails engine that allows you to manage data. 

reInteractive         

Curated by [Cooperpress](https://cooperpress.com/) 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
