1. When Ferrous Metals Corrode, pt. VIII


    This post corresponds to Chapter 9. Structs in the "Programming Rust" book.

    Rust structs are data collection; fields can be named or tuple (or there can be no fields at all). Like in Go, you can have methods bound to structs (there is no separate "class" concept).

    Named-Field Structs …

  2. When Ferrous Metals Corrode, pt. V


    This part summarizes the sixth chapter of "Programming Rust, 2nd Edition", "Expressions".

    An Expression Language

    All control structures are expressions – they can produce a value. For example:

    let status =
      if cpu.temperature <= MAX_TEMP {
      } else {
          HttpStatus::ServerError  // server melted

    Blocks and Semicolons

    A block can produce a …

  3. When Ferrous Metals Corrode, pt. IV


    This part summarizes the fifth chapter of "Programming Rust, 2nd Edition", "References". There was talk of references before, this chapter provides some additional detail around shared and mutable references and lifetimes.

    References to Values

    We have encountered references previously. There are two types


    r/o references, can be …

  4. When Ferrous Metals Corrode, pt. III


    This part summarizes the fourth chapter of "Programming Rust, 2nd Edition" and deals with data ownership.

    This to me is one of the most fascinating things in Rust: how it strictly tracks which part of the code holds a piece of data, and how that ownership is passed around …

  5. When Ferrous Metals Corrode, pt. II


    Second part of my Rust learning notes, about Rust datatypes. This corresponds with chapter 3 of Programming Rust, 2nd Edition

    Fundamental Types

    Coming from a Python-heavy background, Rust type handling is of course completely different – everything statically typed, and a lot of nuance in basic datatypes. Fortunately the compiler …

  6. When Ferrous Metals Corrode, pt. I


    Hello Rustlang. I have been circling around this for a while, there's lots of folks I respect that have nothing but nice things to say, and both efficiency and safety have come to the forefront more and more for me. I think the final straw was when I recently …

  7. NATS and Go


    These are some notes and an example on hooking up Golang programs to the NATS messaging system

    NATS Messaging

    NATS messaging enables data sharing via a publish/subscribe mechanism across different processes, systems and platforms. NATS core offers an "at most once" quality of service. If a subscriber is …

  8. Fabric Automation

    Occasionally I have to do scripting work outside of our config management tool of choice, Juju 1 - eg. for bootstrapping or one-off jobs. I had used Fabric version 1 previously (as well as Plumbum) for those, and was looking at Fabric 2 (respectively it's sidekick Invoke) now.

    So whats Fabric …

« Page 2 / 9 »