TWiR quote of the week

(from 2016)

In general, enough layers of Rc/RefCell will make anything work.

gkoz on the users forum in thread "How to get static lifetime?". (link)

I lol'ed. Still getting into the groove of writing (and reading) Rust and this feels true/hilarious/like cheating the compiler.

EDIT: I see it had been suggested before, not sure if it was used. Still super funny :smiley:

Spent the last week learning rust. The old martial arts adage applies. Cry in the dojo, laugh in the battlefield.

/u/crusoe on Reddit

24 Likes

It may be related to "any program architecture problem may be solved with one more layer of indirection, except of excessive number of indirections"

2 Likes

Ayose!

Cuanto tiempo :smiley:

1 Like

Also, @coder543 helped identify a surprisingly large difference in times when a Framed transport is used. I'm going to check if that's something specific to Rust, or common to all transports. I really want to thank him for:

  1. Being super helpful in working with me until we figured out the exact setup that caused the issue (despite my claiming it was a problem with his setup!)
  2. Having a great attitude! We need more people in our community like this.

From Initial Rust support for Thrift lands in Thrift mainline - #24 by coder543

6 Likes

<kmc> Rust std library has a type called Cow
<alixir> seems useful
<alixir> to avoid Mooving data unnecessarily

19 Likes

Which channel?

PM; got permission.

Manishearth: eddyb: IMNHTHAHAHAHAHAHAHAHAHAHAHA
Manishearth: ^ the creators of rust inventing borrowck in their evil lair

From #rust-internals

8 Likes

For the most unsound Clone implementation ever...

9 Likes

"Have I ever told you the story of the mutpocalypse? It all began fifty years ago..."

"Moooom! Grandpa Gankro's telling that story again!"

"He's old, just humour him."

Quxxy on Reddit

3 Likes

Because mem::transmute is the answer for all the borrow checker complaints! (Not really)

L117: I tried to change my nickname to meme::transmute::<&'a Doot, &'static mut L117>(doot) with no success ):
Cldfire: Your plot to live forever has been foiled


Spookin' Dootin' mem::transmutin'

Or

Angry Dootin' mem::transmutin'

2 Likes

@enet_4: Day 31: I have gained the linter's trust. Clippy still thinks I'm a format string.

http://chat.stackoverflow.com/transcript/message/37742376#37742376

Due to https://github.com/Manishearth/rust-clippy/issues/1706 linting on panic!({ true }) about a malformed format string.

7 Likes

Hi, I think rust is just an amazing achievement because it is the first time we all, just about the first time we've seen one of these kind of linear or affine type systems actually make its way into practical use. So its just incredible, well done! I'm, you know, I mean I'm wild with envy. I want to steal all the best ideas I can and put them in Haskell.

Simon Peyton Jones commenting on Niko Matsakis' presentation about Rust at Curry On Barcelona! YouTube link.

16 Likes

@CleanCut in the sibling thread gives the best metaphor for Rust I've seen so far :slight_smile:

12 Likes

(quoting Effective Modern C++ by Scott Meyers)
"The interaction among perfect-forwarding constructors and compiler-generated copy and move operations develops even more wrinkles when inheritance enters the picture."
This is the kind of sentence that will make me run away screaming. Rust doesn't have any of those features, gets by fine without them, and thus avoids such bizarre interactions.

"Keegan" on his blog, main is usually a function

6 Likes

The quote content from the previous post:

That RFC would break too much code to justify implementing it in Rust 3.0. @SimonSapin

3 Likes

Quoted from https://air.mozilla.org/game-developement-in-rust/ , in the wrap-up:

[the] unsafe [keyword] is your friend. He's not your friend like you'd invite to your sister's wedding, but he's the kind of friend who lives in a bunker in the wilderness has has 37 guns and if you need something blown up he is there for you.

17 Likes

Did the presenter actually say "has has"?

Spoken at 38:35 in the video.

10 Likes