TWiR quote of the week


#31

The borrow checker is a real tsundere. She’s cold and harsh about the
mistakes you initially commit in your code, but she’s a real sweetheart
for pointing at all the wrong things in your code. It’s just too bad
that some people don’t have the patience to warm up with her for a bit.
There’s quite a bit of dere in the borrow checker.

faithfuldoge via reddit


#32

TWiR is fast approaching!


#33

i was wondering, somewhat seriously, whether you actually do want to use the generic methods for
everything. as_ref::<[_]>() is almost graphically shark-jumping

- @aturon on #rust-internals


#34

Diagnostics are the UX of a compiler, and so they’re deserving of the exact same care that is put into mobile app or Web design.

@pcwalton on HN.


#35

@frankmcsherry on #rust:

<frankmcsherry> rust is like a big bucket of solder and wire, with the promise that you can’t electrocute yourself.


#36

mwu in #servo

< mwu> I am about 2 errors away from rust’s next pile of errors though


#37

Bump. A new TWiR is nearly upon us!


#38

bstrie on #rust-internals:

Saraswat made the rules, we just enforce them :P

#39

unsafe restricts which code could contain undefined behavior, but it doesn’t isolate the effects of that undefined behavior.

https://www.reddit.com/r/rust/comments/32wqa7/wip_llamadb_a_simple_sql_database_written_in_rust/cqfoh41


#40

@aturon on backward-compat wizardry:

<aturon> i was backed into a corner, magic was the only choice

https://botbot.me/mozilla/rust-libs/2015-04-21/?msg=37174624&page=2


#41

From https://github.com/brson/httptest#3-routes:

I first try let payload = request.body.read_to_string(); because I know it used to work.

It does not work.


#42
23:37 < geofft> time flies when you're having fn()

#43

mbrubeck 12:04 AM: “Rust: A minute to learn, a lifetime to master.”


#44

Not funny, just on point.

< Ms2ger> And note, unsafe code isn’t for violating Rust’s invariants, it’s for maintaining them manually

#rust irc.


#45

Awesome quotes this week. Thanks everybody!


#46

Ultimately, I think this all boils down to the fact that borrowck only cares about reachable
values. A leaked value isn’t reachable, therefore it doesn’t matter
that it had a lifetime associated with it and technically outlives that
lifetime, since it’s not reachable no undefined behavior can be invoked.

Great insight by kballard on the safety of leaking


#47

A simple bit of humour from Huon:

This is exactly like writing let left = &mut self.left; inside the match arm, but it has the useful advantage of working.


#48

Woo! The twir train keeps rolling!


#49
16:28 < tmerr1> macros... why does it feel so good... so good to be bad

#rust (botbot wasn’t around at the time)


#50

I cannot claim that I understand the algorithms 100%, but I have
reviewed all the papers and satisfied myself that this implementation is
a good match for them, and that the goals of the papers are a match for
what we want in Rust.

https://github.com/rust-lang/rust/pull/24612#issuecomment-100443028