HomeRésuméOpen SourceWorkBlog

Blog posts about programming with Rust

(clear filter)

RSPHP Part 2: Build Tools

Friday, 20 November 2026

In my last post, I talked about the rsphp-sys crate, which provides Rust bindings for PHP's C ABI for building PHP extensions in Rust. As I mentioned, I fully expect extension developers to override the definition of the rsphp-sys crate to customize their bindings. In order to facilitate those overrides, most of the build logic comes from a separate crate, rsphp-build-tools. Continue reading...

RSPHP Part 1: Bindings

Friday, 06 November 2026

Last month I led a workshop at Longhorn PHP about how to build PHP extensions in Rust. The extension that was built during that workshop made use of RSPHP, a set of Rust crates that I wrote to make it easier to develop PHP extensions in Rust. Continue reading...

Rewriting Reflection with Rust

Friday, 10 July 2026

Over the last few weeks, I have been working on rewriting the PHP Reflection extension in Rust as an exercise in building extensions in Rust. In addition to understanding how to implement extensions in Rust, the process also highlighted a number of ways that the Reflection extension could be improved. Continue reading...

ConFoo 2026

Monday, 02 March 2026

Last week, I was in Montreal for the ConFoo conference, where I gave two talks, one about Rust and one about PHP. I also attended plenty of fascinating talks given by others, and absorbed some new ideas along the way. Continue reading...

Project Euler in Rust, Part 2

Monday, 01 December 2025

Over the last few months (I started writing this blog post in September), I've continued to learn Rust by working through Project Euler problems. Since I will be giving a talk about Rust at ConFoo in February, learning Rust is no longer just for fun - I also need to make sure I don't make a fool of myself. Continue reading...

Project Euler in Rust

Friday, 19 September 2025

After writing the obligatory "Hello, World!", I wanted to work on something more substantial in Rust. When I learn a new programming language, my go-to source of coding problems to try and solve in the new language is Project Euler, which features hundreds of coding challenges of various difficulty levels. Continue reading...

"Hello, World!" in Rust

Friday, 12 September 2025

Yesterday, I started to teach myself how to program in Rust. As always, the first step was a "Hello, World!" program. Continue reading...

First Rust Patch

Saturday, 06 September 2025

As part of preparing for my Longhorn PHP talk about what is new in PHP 8.5, I have been going through various PHP tools and checking to what extent they support the new features. When the support is lacking, I have sometimes tried to add it myself; this led me to making my first patch in Rust. Continue reading...