Peterlog

  1. Introducing MicroCeph

    Intro

    This post aims to introduce MicroCeph, a Ceph packaging that we've been working on extensively the last months. First, I'll talk a bit about Ceph and it's workings, then describe MicroCeph, which problems it solves and why I think it's cool, and then walk through some examples of setting …

  2. When Ferrous Metals Corrode, pt. XVIII

    Intro

    This post summarizes chapter 19, "Concurrency". The concurrency chapter introduces has this nice bit at the beginning: "Experience inculcates a healthy skepticism, if not outright cynicism, toward all multithreaded code". Yes, yes it does.

    All the safety features Rust brings with it should come to good use here.

    Fork-Join …

  3. When Ferrous Metals Corrode, pt. XVII

    Intro

    This post summarizes chapter 18, "Input and Output"

    Rust I/O is organized around three basic traits: Read, BufRead, and Write. Read does byte-oriented input, BufRead buffered reads (lines of text and similar), Write does output.

    Example Read types are Stdin, File, TcpStream; BufRead: Cursor and StdinLock. Examples for …

  4. When Ferrous Metals Corrode, pt. XV

    Intro

    This post deals with standard library collections, and corresponds to chapter 16. in the Programming Rust book.

    Rust moves elements into collections to avoid deep-copying of values. Due to Rusts borrow checker we won't get dangling pointers while collections are changed or resized.

    Vec<T>

    We've used that one …

  5. When Ferrous Metals Corrode, pt. XIV

    Intro

    I'm working through chapter 15, "Iterators" in the Programming Rust book for this post.

    Iterators produce sequences of values, and all kinds of things can be iterated over – strings, collection types, files, connections, database records, etc.

    Rust iterators have a rich set of methods like fold(), map(), filter(), reduce …

Page 1 / 10 »