My personal blog, where I write about software development and the projects I’m working on
Written by Mario Ortiz Manero

Plugins in Rust: Reducing the Pain with Dependencies

Plugins in Rust: Reducing the Pain with Dependencies

The last article of this series covered how the plugin system could be implemented from scratch. This is a lot of work if you’re dealing with a relatively large codebase and therefore a complex interface in your plugin system, so let’s see how we can make our lives easier. I’ve been wanting to try abi_stable for this since the beginning, which was specifically created for plugins. But we aren’t really locked to that crate, so I’ll show other alternatives as well, which can even be combined to your liking....

November 8, 2021 · 28 min · Mario Ortiz Manero
Designing an API Client in Rust: New Rspotify Version a Year Later

Designing an API Client in Rust: New Rspotify Version a Year Later

This article describes my journey of basically rewriting the entirety of Rspotify; around 13 months of work (in my free time), starting at September of 2020, up until October of 2021. I think this has given me enough experience for an article regarding API design on Rust, and perhaps those who attempt the same in the future can take some ideas and save time. Specially considering how much I’ve gone in circles and how much time I’ve “wasted” implementing things that ended up being discarded....

October 13, 2021 · 26 min · Mario Ortiz Manero
Plugins in Rust: Diving into Dynamic Loading

Plugins in Rust: Diving into Dynamic Loading

In the last part of this series I wrote some simple experiments of plugins both with WebAssembly and dynamic loading. After discarding Wasm for this specific PDK, I wanted to try to get a more realistic example with dynamic loading and work towards the final implementation. Since the Tremor team suggested to begin by implementing connectors, we’ll first have to learn more about them. Matthias ran me through their current state in a meeting, which I’ll try to summarize....

October 5, 2021 · 27 min · Mario Ortiz Manero
Plugins in Rust: Getting Started

Plugins in Rust: Getting Started

Welcome to my second article about Plugins in Rust! Here I will try to actually write some simple code of what a PDK (Plugin Development Kit) might look like, and also do some research about questions that arise while doing so. Please note that this is a series of posts, so you might be interested in reading the previous ones for context. Some probably weren’t expecting me to continue the series, as in the last article I wrote that Google didn’t end up allocating a slot for my project (as this was initially going to be for the Google Summer of Code)....

September 5, 2021 · 20 min · Mario Ortiz Manero
Why you shouldn't obsess about Rust "features"

Why you shouldn't obsess about Rust "features"

Rust makes it very easy to express conditional compilation, specially thanks to its “features”. They’re well integrated into the language and are very easy to use. But one thing I’ve learned by maintaining Rspotify (a library for the Spotify API) is that one shouldn’t obsess over them. Conditional compilation should be used when it’s the only way to solve the problem, for a number of reasons I’ll explain in this article....

July 6, 2021 · 7 min · Mario Ortiz Manero