---
title: "Improving Ruby Performance with Rust"
publication: "Ruby Weekly"
issue: 376
published_at: "2017-11-23"
canonical_url: "https://rubyweekly.com/issues/376"
---

Improving Ruby Performance with Rust

This week's Ruby and Rails news[Read this e-mail on the Web](http://rubyweekly.com/issues/376)

Ruby WeeklyIssue 376 — November 23, 2017

A slightly shorter than usual issue today in respect of Thanksgiving. We hope you have a good one if you're celebrating.

Daniel P. Clark[Improving Ruby Performance with Rust](https://blog.codeship.com/improving-ruby-performance-with-rust/)Rust is a (compiled) systems language focused on speed and safety. What about integrating it with Ruby? Here’s an introduction.


Amazon Web Services[Amazon API Gateway Can Now Generate Ruby SDKs](https://aws.amazon.com/blogs/developer/introducing-support-for-generating-ruby-sdks-in-amazon-api-gateway/)You can now generate a Ruby gem for consuming an Amazon API Gateway API with a simple button click or command.


OpsCare by reinteractiveSponsored[We’ve Solved the Problems of ROR Operations](https://reinteractive.com/enquiries/new?code=ops_care&sid=137)Our out-source DevOps solves the problems associated with ROR development. Plus our blue/green pre-baked deployment process means that you can deploy your app as often as you want. Get started today – start enjoying OpsCare.

[![OpsCare by reinteractive\](https://copm.s3.amazonaws.com/5a942089.jpg)](https://reinteractive.com/enquiries/new?code=ops_care&sid=137)


Mike Pastore[Session-Only Cookie Corruption in Ruby Web Apps](https://perlkour.pl/2017/11/ruby-cookie-corruption/)This could become a real problem for you if your apps use _cookie-only sessions_ and has resulted in the creation of [Rack::Protection::MaximumCookie](https://github.com/mwpastore/rack-protection-maximum_cookie#readme) to help.


GitHub[GitHub Introduces Security Alerts for Ruby Projects](https://github.com/blog/2470-introducing-security-alerts-on-github)_“we’ll now notify you when we detect a vulnerability in one of your dependencies and suggest known fixes from the GitHub community.”_


Lazarus Lazaridis[DuckRails: Quickly and Dynamically Mock API Endpoints](https://github.com/iridakos/duckrails)A Rails app that helps you quickly mock API endpoints and includes a straightforward interface to set them up.


In brief

- [Rubyhack Conference (Salt Lake City, May 3-4, 2018)](http://rubyhack.com/?utm_source=rubyweekly&utm_medium=email) news 
CFP is currently open and they are very keen for talk proposals.
- [Ruby 2.5's Dir.children and Dir.each_child](https://blog.bigbinary.com/2017/11/21/ruby-2_5-introduces-dir-children-and-dir-each_child.html?utm_source=rubyweekly&utm_medium=email) tutorial 
They get around the issue of `Dir.entries` & `Dir.foreach` including the `.` and `..` directory entries. Mohit Natoo
- [Using ActiveStorage Today (Prior to the Rails 5.2 Release)](http://blog.jasonkim.ca/blog/2017/11/13/Using-ActiveStorage-Today/?utm_source=rubyweekly&utm_medium=email) tutorial Jason Kim
- [Better Rails Performance with JSON Patch](https://formapi.io/blog/posts/json-patch-with-rails-5-and-react?utm_source=rubyweekly&utm_medium=email) tutorial 
If you have to post large JSON docs to a Rails app, JSON Patch can reduce the amount of data that goes over the wire. FormAPI Blog
- [How to Receive & Respond to Text Messages with Hanami & Twilio](https://www.twilio.com/blog/2017/11/how-to-receive-and-respond-to-text-messages-in-ruby-with-hanami-and-twilio.html?utm_source=rubyweekly&utm_medium=email) tutorial Phil Nash
- [Migrating 'has_and_belongs_to_many' Associations to Rails 4+](https://blog.arkency.com/rails-3-to-rails-4-has-and-belongs-to-many-hbtm-habtm-safer-association-migration-using-reflections/?utm_source=rubyweekly&utm_medium=email) tutorial Robert Pankowecki
- [Docker + Rails + System Tests with Headless Chrome](https://dev.to/dstull/docker--rails--system-tests-with-headless-chrome-d00?utm_source=rubyweekly&utm_medium=email) tutorial 
The fulfilled promise of running Rails tests in a container quickly to feed your CI needs. Doug Stull
- [google_translate_diff: Using Google's Translate API More Efficiently](https://evilmartians.com/chronicles/spend-less-on-google-translate?utm_source=rubyweekly&utm_medium=email) tutorial 
One for heavy users of Google’s translation API only, but it could save you a lot of requests (and, therefore, money). Viktor Sokolov
- [Some Thoughts and Feelings on RubyConf 2017](https://avdi.codes/rubyconf-2017/?utm_source=rubyweekly&utm_medium=email) story 
Focusing on personal reflections, rather than coding _per se_. Avdi Grimm
- [$20 Free On A New Linode Account](https://welcome.linode.com/ruby-weekly/?utm_source=cooperpress&utm_medium=sponsored&utm_term=ruby&utm_campaign=ruby-weekly-sponsored) tools 
Linux cloud hosting starting at 1GB of RAM for $5/mo. Get $20 credit on a new account. Linode Cloud HostingSponsored
- [dbmgr: CLI Tool to Back Up, Restore, and Provision Dev Databases](https://github.com/callahanrts/dbmgr?utm_source=rubyweekly&utm_medium=email) tools 
For MySQL and Postgres only so far.
- [ModelProbe: Schema Introspection for ActiveModel](https://github.com/hopsoft/model_probe?utm_source=rubyweekly&utm_medium=email) code Nathan Hopkins

Curated by [Peter Cooper](https://twitter.com/peterc) and [Glenn Goodrich](https://twitter.com/ruprict), and published by [Cooperpress](https://cooperpress.com/).
Send feedback by simply replying to this mail.
Want to sponsor an issue? See our [media kit.](https://cooperpress.com/mediakit)
Want to post a job? Email us or [use our self-serve system.](https://booking.cooperpress.com/jobs)

[Stop getting Ruby Weekly](*|UNSUB|*) | [Change email address](*|UPDATE_PROFILE|*) | [Read this issue on the Web](http://rubyweekly.com/issues/376)

© Cooperpress Ltd, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
[Email policy](https://cooperpress.com/spam.html) [Privacy policy](https://cooperpress.com/privacy.html)
