manishearth.github.io
Recently Julia Evans wrote an excellent post about debugging a segfault in Rust. (Go read it, it’s good) One thing it mentioned was I think “undefined” and “unsafe” are considered to be synonyms. This is … incorrect. However, we in the Rust...
News & Blog Posts
2017-12-26
~5 min read
manishearth.github.io
Note: This post was written before the Rust 2018 edition, and does not yet incorporate the changes made to the module system. The module and import system in Rust is sadly one of the many confusing things you have to deal with whilst learni...
News & Blog Posts
2017-05-16
~9 min read
manishearth.github.io
A colleague of mine learning Rust had an interesting type / borrow checker error. The solution needs a less-used feature of Rust (which basically exists precisely for this kind of thing), so I thought I’d document it. The code was like this...
News & Blog Posts
2017-04-18
~4 min read
manishearth.github.io
See also: Tony’s post on the same topic You often hear people saying “Language X1 has sum types” or “I wish language X had sum types”2, or “Sum types are cool”. Much like fezzes and bow ties, sum types are indeed cool. These days, I’ve also...
News & Blog Posts
2017-03-07
~9 min read
manishearth.github.io
This may be part of a collaborative blog post series about underhanded Rust code. Or it may not. I invite you to write your own posts about underhanded code to make it so! The submission deadline for the Underhanded Rust competition has bee...
News & Blog Posts
2017-03-07
~5 min read
manishearth.github.io
This may be part of a collaborative blog post series about underhanded Rust code. Or it may not. I invite you to write your own posts about underhanded code to make it so! Last month we opened up The Underhanded Rust competition. This conte...
News & Blog Posts
2017-01-24
~4 min read
manishearth.github.io
Rust is not a simple language. As with any such language, it has many little tidbits of complexity that most folks aren’t aware of. Many of these tidbits are ones which may not practically matter much for everyday Rust programming, but are...
News & Blog Posts
2017-01-17
~7 min read
manishearth.github.io
Rust is not a simple language. As with any such language, it has many little tidbits of complexity that most folks aren’t aware of. Many of these tidbits are ones which may not practically matter much for everyday Rust programming, but are...
News & Blog Posts
2017-01-17
~15 min read
manishearth.github.io
Update: This post got a sequel, Breaking our latin-1 assumptions. I’ve seen misconceptions about Unicode crop up regularly in posts discussing it. One very common misconception I’ve seen is that code points have cross-language intrinsic mea...
News & Blog Posts
2017-01-17
~12 min read