Blogs / Personal blogs

Andrew Gallant

blog.burntsushi.net

I was recently diagnosed with anti-NMDA receptor encephalitis . It is an autoimmune disorder where your body’s normally helpful antibodies start acting strangely . This leads to inflammation in the brain. This blog briefly discusses some of my experience and prognosis.

Popular posts
8
Total points
2,971
HN comments
1,204
Rank
#478 personal

Visit blog.burntsushi.net → RSS feedOn Hacker News Apr 2014 – Jul 2023

Software Engineering 7Programming Languages 3Math & Algorithms 2Tools & Productivity 1Systems & Performance 1Open Source 1

2

Regex engine internals as a library

Over the last several years, I’ve rewritten Rust’s regex crate to enable better internal composition, and to make it easier to add optimizations while maintaining correctness. In the course of this rewrite I created a new crate, regex-automata , which exposes much of the regex crate internals as their own APIs for…

3

A byte string library for Rust

bstr is a byte string library for Rust and its 1.0 version has just been released ! It provides string oriented operations on arbitrary sequences of bytes, but is most useful when those bytes are UTF-8. In other words, it provides a string type that is UTF-8 by convention , where as Rust’s built-in string types are…

5

Using unwrap() in Rust is okay

One day before Rust 1.0 was released, I published a blog post covering the fundamentals of error handling . A particularly important but small section buried in the middle of the article is named “ unwrapping isn’t evil ”. That section briefly described that, broadly speaking, using unwrap() is okay if it’s in…

6

Error handling in Rust

Like most programming languages, Rust encourages the programmer to handle errors in a particular way. Generally speaking, error handling is divided into two broad categories: exceptions and return values. Rust opts for return values.