Tag: rust
-
Oxidization: Nested hashes
This might be an idiosyncrasy of mine, but I tend to use hashes a lot in Ruby. For instance, recently I was working on a code challenge involving ordering food. There were different categories of courses (breakfast, lunch, and dinner) and different categories of foods (main dish, side dish, etc.), and you need both in […]
-
Rust advocacy at a medium-sized startup
At Hologram, I loved getting to sign into work Slack and share knowledge with fellow software engineers of all experience levels. There were about 40 engineers in a company closing in on 200 employees. Meanwhile, the biggest change in my career as a software engineer recently has been learning Rust, which I’ve been calling a […]
-
Writing a Rust gem from scratch
This is a followup to the last post. Instead of using the template
rust_ruby_example
gem, we’ll make one from scratch. Make sure to go back over the “Using arubygems
fork” section because we’ll be using it heavily during this post, as well! -
Sneak preview: Writing Ruby gem native extensions in Rust
In December 2021, Ian Ker-Seymer (@ianks) submitted a pull request to add a
CargoBuilder
class for handling Rust code in gems, enabling native extensions in Rust!I was so excited, I had to try it out, even though it hadn’t been merged yet. A lot of maintainers are showing interest and pitching in, so I have high hopes for it being merged into main. So here are my notes on writing a Rust gem extension.
-
Crate of the Week second chance list
TLDR – the three most upvoted crates that were never recognized as Crate of the Week in This Week in Rust are glutin, rust-cuda, and redshirt. The Crate of the Week is a Rust (programming language, not game) segment in the This Week in Rust newsletter that highlights a single Rust library in a given […]
-
Building a CEDICT parser in Rust with Nom
The CEDICT format is a simple, creative commons-licensed file format for Chinese/English dictionaries. While Mandarin-only CEDICT parsers abound, there is basically no support for Cantonese jyutping in the English-speaking programming world. As someone who would have liked to use Cantonese pronunciations in my programs, at first I was stuck. I considered adding jyutping support to […]
-
Contributing to Artichoke in Rust
Yesterday, I eked out a bit of time to contribute to Artichoke in Rust, in no small part due to the maintainer @lopopolo: Artichoke is an implementation of Ruby written in the Rust programming language. The issue I worked on was to expose a newly stabilized method in Artichoke’s implementation of the Ruby String class. […]