smallcultfollowing.com
Over time, I’ve become convinced that it would be better to drop the distinction between mutable and immutable local variables in Rust. Many people are highly skeptical, to say the least. I wanted to lay out my argument in public. I’ll give...
Community Updates
2014-05-17
~10 min read
smallcultfollowing.com
In today’s Rust, there are a number of builtin traits (sometimes called “kinds”): Send, Freeze, Share, and Pod (in the future, perhaps Sized). These are expressed as traits, but they are quite unlike other traits in certain ways. One way is...
Announcements, etc
2014-03-02
~10 min read
smallcultfollowing.com
Today, if you do a mutable borrow of a local variable, you lose the ability to write to that variable except through the new reference you just created:let mut x = 3; let p = &mut x; x += 1; // Error *p += 1; // OK However, you retain the a...
Announcements, etc
2014-03-02
~7 min read
smallcultfollowing.com
I’ve been working on Issue #3511, which is an effort to rationalize the lifetimes of temporary values in Rust. This issue has been a thorn in the side of Rust users for a while, because the current lifetimes are rather haphazard and frequen...
Announcements, etc
2014-01-11
~11 min read
smallcultfollowing.com
I believe I have come to the point where I am ready to make a final proposal for DST. Ironically, this proposal is quite similar to where I started, but somewhat more expansive. It seems to be one of those unusual cases where supporting mor...
Announcements, etc
2014-01-06
~16 min read
smallcultfollowing.com
Some astute comments on a recent thread to rust-dev got me thinking about our approach to vectors. Until now, we have focused on having built-in support for vectors via the vector type (~[T]) and slice types (&[T]). However, another possibl...
Announcements etc
2013-11-19
~13 min read
smallcultfollowing.com
I’ve been hard at work finishing up work on Rust’s “new” syntax for lifetimes – I put “new” in quotes because the syntax has been in use for some time, but in rustc itself the change was only half-baked. In effect, the new syntax was a kind...
Announcements etc
2013-11-09
~10 min read
smallcultfollowing.com
I got a lot of feedback on my post about intermingled parameter lists – most of it negative – and I’ve been thinking about the issue over the weekend. Truth is, I wasn’t terribly fond of the proposal myself – making the position in the list...
Announcements etc
2013-11-09
~10 min read
smallcultfollowing.com
As some of you may recall, the fate of function types in Rust has been somewhat uncertain. It all began when I realized that we could not soundly permit closures to recurse, which implies that closures must be tracked in a linear fashion. T...
Announcements etc
2013-10-12
~11 min read
smallcultfollowing.com
I have been thinking about my previous proposal for fn types. I wanted to offer some refinements and further thoughts.On ThunksI proposed a trait Task for encapsulating a function and the parameters it needs to run. I don’t like this name b...
Prominent blog posts and ML threads
2013-06-07
~6 min read
smallcultfollowing.com
So Ben Blum has doing some investigation into the full implications of the Sized bound that I proposed as part of the dynamically sized types post. It’s clear that, if we change nothing else, the impact of Sized will be somewhat greater tha...
Prominent blog posts and ML threads
2013-06-07
~5 min read