TWiR quote of the week

I want to paint you a picture of a utopia in which Rust has expanded to become
the fabric of the entire classical computing world, where the possibilities of
what we can achieve are not shackled to the decaying dreams of computer science
past. In this perfect utopia you have invented the perfect model for managing
your computer's sci-fi hardware, perfectly free from the legacy of Unix and
Windows. And you need the perfect language to write it in. Everywhere you look
is legacy: C, C++, Java; the stacks get bigger and bigger, cruft all the way
down.

The only shining light is Rust. Those Rustaceans have been chipping away the
cruft, distilling their platform to only the essence of bits and bytes, while
also expanding its expressive power toward legendary elegance. Rust doesn't want
to tell you how to build your system. Rust wants to serve you, to fulfill your
dreams, on your terms. For your ambitions, Rust is the only reasonable choice in
a world filled with compromises.

@brson on Refactoring std for ultimate portability

12 Likes

There are more pythons used in the mingw build than are still alive in the wild.

@larsberg on #servo

9 Likes

what I lie to the compiler about doesn't hurt it

vlad in #servo

also,

*mut u8 as fn(&str) is not a scalar cast blah blah I'm a compiler I know better than you

(same)

3 Likes

Slice patterns are being tamed:

The logic used to be wildly wrong, but before the HAIR patch its wrongness was in most cases hidden by another bug.

PR #37603

2 Likes

Lol, I love this thread) Need more funny posts!!)

Rust lets you shoot yourself in your foot, but unlike C it forces you to declare I'm going to point a gun at my foot in this code block.

/u/valarauca8 on reddit. submitted by /u/matthieum.

7 Likes

Tough week to pick a single Quote of the Week.

I don’t think it’s unexpected that a repr attribute changes the memory representation.

By SimonSapin

1 Like

Rust iterators are the best thing since [Bread]

[Yaniel on Rust (lang) Matrix channel] (You're invited to talk on Matrix)

Everything old is new again. :rocket:

11 Likes

/u/Gankro's "hacking generativity onto Rust" (section 6.3 here) and bluss's implementation. This is some of the most horrifying code I've ever seen, up there with Duff's device in C and partitioning lists in Python.

Basically, you can use lifetime-based black magic fuckery to move bound checks to compile-time.

Rust: you had my curiosity, but now you have my attention.

From this Reddit comment responding to "What is your favorite Rust code snippet?". It's full of links that I'm too lazy to copy over, but those links make it very informative (and funny).

4 Likes

[byteorder] is like the left-pad of unsafe code.

From @Manishearth on HN.

3 Likes

K900_ on /r/rust, responding to someone that asked for help for playing Rust, the game.

https://www.reddit.com/r/rust/comments/5g2ih2/planning_to_start_playing_rust_with_three_other/daoxzz6/

Such large. Very 128. Much bits.

@nagisa in his commit adding 128-bit integers to Rust.

5 Likes

But aren't we all just objects in a global scope?

Not in Rustland. We only have good Traits.

/u/FFX01 and /u/rustcvswvj getting philosophical on reddit

1 Like

I would like to nominate leftoversalads wonderful drawing of Rust as an armored person with 3 Shields.

22 Likes

"The 'S' in 'IoT' stands for 'Security'!"

-- Ms2Ger

17 Likes

You can't post that and leave off the rest of the comic!

steveklabnik has spoken, the directions are clear:

3 Likes

fmtq: I'm ridiculously good at the borrow checker though
fmtq: in Rust.
bstrie: once you've mastered borrow checkers, you may move on to borrow chess

-- #rust-offtopic 22:42 PDT Dec 10 2016

20 Likes

scott: see, at christmas, if I unwrap() my present and I find that it's empty, I immediately have a panic attack and everyone gets really freaked out. if I expect() a present, at least I can send a stern message before I start panicking in the living room.
scott: sometimes I decide ahead of time that if I start having a panic attack, I'm just going to abort the whole christmas thing entirely and leave
scott: but it's easier to unwind if I don't abort and stick around

-- #rust-offtopic 22:03 PDT Dec 18 2016

9 Likes