Rust and Node.js: A match made in heaven

Worker threads are great, but they’re not available in all supported versions of Node. Fortunately, you can use Rust to build a native add-on for Node.js. Read more


Optimizing Rust Struct Size

Anyone who knows me knows that I've been spending a lot of time working on the Rust compiler, to the detriment of all my other projects. I'm glad to say I'm done. The 2000-foot version: Rust structs, (more…)

Read more »

Returning Trait Objects in Rust

This is a fairly basic Rust syntax issue that I’ve run into several times. Based on unknowable runtime conditions, I will return one of several different return types from the same function. Also, this return type must use methods from two traits. How can... (more…)

Read more »

Type-Level Programming in Rust

I show how two domain-specific type systems, information flow control and two-party communication protocols, can be implemented in Rust using type-level programming. I explain how interesting properties of these domains can be verified at compile-time. Fi... (more…)

Read more »