Top all-time · #7616
Chasing Rabbits
Personal blog · erickt.github.ioprogrammingsystems
Chasing Rabbits is a personal blog at erickt.github.io about programming and systems. Since 2014, 10 different Hacker News readers have linked it 15 times, most often “Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database”. The last post was in 2016, but the archive is still widely read.
I’m thrilled to announce Serde 0.7.0! It’s been a long time coming, and has a number of long awaited new features, breaking changes, and …
Most-linked posts?
- Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database3 people · 3 mentions · first linked 2014-12-13
- Rewriting Rust Serialization, Part 2.1: Benchmarks2 people · 2 mentions · first linked 2014-11-11
What Hacker News says?
Here are a few google results: * http://erickt.github.io/blog/2014/11/03/performance/ and http://erickt.github.io/blog/2014/11/11/benchmarks/ * https://github.com/ugorji/go-codec-bench * https://github.com/golang/go/issues/5683 In my own testing it was faster (even with ffjson) to pre-clean my data in cpython or pypy, and then emit some intermediary format (like capnproto) for the go code to consume. I was parsing h…
Comment linking /blog/2014/11/11/benchmarks/
on “Four days of Go”Submitted Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database as a story · 69 points
HN discussionRust's JSON serializer is really fast (~300 MB/s). http://erickt.github.io/blog/2014/12/13/performance-digressi...
Comment linking /blog/2014/12/13/performance-digression/
on “Introducing Rust Language Server”Submitted Syntex: Syntax Extensions for Rust 1.0 as a story · 23 points
HN discussionOne of the most important tools when writing unsafe rust is compiletest [1]. It's a tool extracted from the compiler project that lets you write tests that are supposed to fail compilation. Since safe abstractions rely on the type system to make unsafe code safe, it's critical to make sure the compiler is properly rejecting code. I wrote a post about this years ago when I got hit by one of the bugs Gankro wrote abou…
Comment linking /blog/2015/09/22/if-you-use-unsafe/
on “Bugs You'll Probably Only Have in Rust”Submitted Chasing an EPROTOTYPE Through Rust, Sendto, and the OS X Kernel with C-Reduce as a story · 10 points
HN discussionAFAIK, rust-bindgen doesn't currently have support for translating C functions and structs into anything other than the same things in Rust. It's somewhat idiomatic for manually-written bindings, layered on top of the generated ones, to take care of things like providing a memory-safe interface (which can't really be done automatically), converting between native Rust types and C representations if necessary (perhap…
Comment linking /blog/2014/12/13/rust-and-mdbm/
on “Rust once, run everywhere”Submitted Rewriting Rust Serialization, Part 2.1: Benchmarks as a story · 8 points
HN discussionhttp://erickt.github.io/blog/2014/12/13/performance-digressi...
Comment linking /blog/2014/12/13/performance-digression/
on “Writing a website in Rust”Submitted Rewriting Rust Serialization, Part 3: Introducing Serde as a story · 6 points
HN discussionFun note: Because of this line in the article > Because MDBM gives you raw pointers into the DB’s data, you have to be very careful about making sure you don’t have array over-runs, invalid pointer access, or the like. Someone wrote a Rust binding http://erickt.github.io/blog/2014/12/13/rust-and-mdbm/
Comment linking /blog/2014/12/13/rust-and-mdbm/
on “Writing a Very Fast Hash Table with Tiny Memory Footprints”Submitted Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database as a story · 6 points
HN discussionI’d go further and say it’s not possible to fully implement async/await without compiler help. I got really far with stateful, back in 2016 [1]. Stateful was an attempt to write a coroutine library in a proc macro, which generated state machines, as opposed to using os primitives like green threading. This was back before the rust community really started working in this space. I ended up extracting the type system…
Comment linking /blog/2016/01/27/stateful-in-progress-generators/
on “The problem of effects in Rust (2020)”Submitted Chasing an EPROTOTYPE Through Rust, Sendto, and the OS X Kernel with C-Reduce as a story · 3 points
HN discussion