TWiR quote of the week

From a zulip thread i started by Lokathor

Note: function pointers are not always aligned, though some platforms may have them be aligned

Anyway: the standard library docs say "check the nomicon"
then the nomicon says "here is some advice and ultimately we don't know, maybe check UCG"
then UCG says "ultimately we don't know it's probably like this but there's no RFC yet"
then Ralf says "probably it should be allowed if the layout matches".

I found this pretty funny and sad.

Not sure whether to include the first sentence or not, you decide :slight_smile:


From @H2CO3 in Rationale behind Fn, FnMut and FnOnce design


From the russian telegram chat room Telegram: Contact @rust_offtopic


Кстати я знаю чем занимается борроу чекер
Чекает не свихнулся ли ты еще

In English:

By the way i know what borrow checker does
Checks to see if you're still crazy

1 Like

Isn't the translation inverted? "Не свихнулся ли ещё" literally means "isn't crazy yet".

Both are correct in their own way. The craziness is UB.

1 Like

From: Rust 2021 Edition - YouTube


A huge :orange_heart: of Rust is "you're holding it wrong" is considered a language bug.


Hot take: Rust isn't as hard as it's detractors think it is, and it isn't as easy as we want it to be. But I think we have a better chance of becoming easier to use than easier use languages becoming lower level without compromises.



I think Rust being difficult is like saying you had good parents because they let you play with knives. Rust may seem hard at first but borrowck is just looking after you.

To elaborate writing a fast and memory safe multi-threaded webserver is easy in Rust; if it compiles it works, but difficult in C since while it may be easier to get it to compile it might not work correctly.


the strains of the project have hurt a lot of people over the years and I think maybe the only path to recovery involves getting some distance from it.

Graydon Hoare on Twitter

1 Like

He devoted his talk to not trolling,

"That's enough about languages that suck, let's talk about C++" - Miguel Young de la Sota speaking on Rust's handling of Pin before talking about C++ at RustConf 2021

1 Like

It's nice to be quoted on TWiR.

But is that intended to be an example of a newbie mistake or bad practice? Or the opposite.

I got a chuckle out of the following visualization:

ZiCog's former employer: They copy pasted our code.
ZiCog: They used JS. We use Rust.
Judge: Case closed.

EDIT: I am not a lawyer. The above is not legal advice. If you are in ZiCog's situation, consult a lawyer.


Allmost right.

Except they accused us of having run away with the code for an entire project, which we were picking up from an existing customer. And of not delivering it to them, after we had and they had not paid us or the office rent for months.

I was inspired by the story of Compaq and others clean room reverse engineering the IBM PC BIOS so that they could make PC clones without stealing the original BIOS code. So I was looking to start over with a new language, I had only then discovered Rust and soon decided to bet the farm on it. It's been working very well.

"Case closed". Well, we have not heard back from them... yet.

Luckily my partner's girl friend is a well qualified commercial lawyer :slight_smile:


Rust maybe “multi-paradigm general-purpose programming language” but it's also incredibly opinionated and tries very hard to stir you toward “great APIs” (good APIs are easy to use, great APIs are hard to abuse).

I think just maybe not "incredible opinionated" but the last words seemed nice.

Succintly put :ok_hand:, this is sometimes overlooked.


RustConf 2021: - Compile-Time Social Coordination by Zac Burns

Do you want to know what was harder than learning lifetimes? Learning the same lessons through twenty years of making preventable mistakes.