3 posts tagged with "rust"

Posts I've written about my new favourite programming language. Rust makes it easy to write fast, safe and easy to understand code.

Don't use boxed trait objects for struct internals

December 24, 2019 - 1164 words - 4 minutes

When writing a struct with the intention of it being reused, it's important not to use boxed trait objects to represent interior data. Namely, this is because turning an object into a Box<dyn Trait> loses a lot of type information about the object…

Writing safe, efficient and parallel Node.js extensions with Rust, Neon and Rayon

November 26, 2019 - 1082 words - 4 minutes

When writing server applications with Node.js, sometimes JavaScript just doesn't cut it and you need to employ native code.

This could be because of a few different reasons: You need to complete a CPU-bound task Because JavaScript runs inside a VM…

How to complete the Advent of Code 2018 challenges with Rust

December 07, 2018 - 917 words - 3 minutes

Over the past month or so I've been learning the Rust programming language. When I heard that Advent of Code was starting up again, I figured it would be a great opportunity to put some of the skills I'd learned to the test. Since the first…

Browse All Tags