rust

A collection of 10 posts

Sep 14, 2018

Rust modules and you

Rust modules and you

The bad news is that the 2018 edition of Rust has pretty much settled on the worse of two module systems. The good news is that they have done so with the potential to unfuck this at some point in the future. In the meantime, what can you expect?

Apr 12, 2018

Debug implementation

Debug implementation

In Rust, Debug is a trait that allows us to inspect the state of a struct by printing the struct to std out or, you know, whatever. Usually, we just derive debug implementations, but there are cases when that's not possible or even desirable. Here's a real world example.

Apr 10, 2018

Honestly, what am I doing?

Sometimes, I'm not sure why I write about software. Specifically, I'm not sure why I write about Rust. The community built up around the language views me as basically the root of all

Apr 3, 2018

When does dynamic vs. static dispatch matter?

When does dynamic vs. static dispatch matter?

Rust allows the programmer to choose between static and dynamic dispatch pretty much on a case by case basis. In real world terms, the performance difference between the two is practically invisible; a branch is a branch is a branch. When should we choose one over the other and why?

Feb 12, 2018

Benchmarking in Rust

Benchmarking in Rust

Half of Rust is unstable. Unfortunately, it's the good half. Fortunately, there are some ways to mitigate that.

Jan 8, 2018

Crockford + Meltdown

Crockford + Meltdown

If you haven't been keeping up with "Meltdown," I'm not going to link to it from here. I don't want to fuck up your world. No, no, don't look it up.

Jan 5, 2018

Crockford performance tuning

Crockford performance tuning

Bigger isn't always better. Sometimes, the small number wins. For instance, the US Army monster pictured above makes 11,000 horsepower and has a redline of 8500 RPM, but goes from zero to

Jan 2, 2018

Good Christian men rejoice!

...Because rustup has finally provided me with a version of rls-preview that actually works again. Also, my crockford library has reached 1.0. I expect to be releasing a companion library (boasting similar