Cranston's Life - Rust and More Rust

When Static and Dynamic Meet in Rust!

The STATIC nature of Rust is well known of to anyone who has used the Rust compiler.

But the world that Rust and Rust programs live in is DYNAMIC.

When STATIC meets DYNAMIC, difficulties can arise.

Bryce Fisher-Fleig, in the Returning Trait Objects article, gives an EXAMPLE of such a situation.

The PROBLEM situation he poses is simple to me: there is one function and the value returned from this function could be of a different type depending on dynamic conditions not known at compile time!

We are informed of some POSSIBLE SOLUTIONS that do not work.

And we are informed of one that DOES.

I do not know if there is a better Rust way of approaching this situation, but if there is, I would love to LEARN about it!

Rust, std::future, and Lessons!

LESSONS are something I value greatly.

As one who desires to LEARN more about Rust, reading about the lessons that others have learned is a great source of KNOWLEDGE.

Today I have learned lessons about upgrading a library to std::future thanks to this article.

I must STUDY this knowledge and the example code more.

Debian Packages and Rust!

One thing that I have NEVER prepared is a package for Debian.

But thanks to this article now I have a BETTER idea of what the steps are for packaging a Rust project for Debian.

There are MORE steps than I expected but if the end result is a better Debian experience for Debian users then to them it must be worth it!

If I ever need to create a Debian package for a Rust crate, then this article will be one that I must STUDY more.

A First Month With Rust!

Jakub Holý has written about the EXPERIENCE of what one’s first month of using Rust can be like.

What I see is a story of DISCOVERY, but also a story of STRUGGLE.

It is a story of HARDSHIP, but also a story of ENLIGHTENMENT.

The most complex knowledge is often the most DIFFICULT to learn, yet once learned it can be the most POWERFUL knowledge.

Jakub writes of the GOOD that he found in Rust, but he also writes of the NOT SO GOOD.

Examples are given about how Rust’s type system can be CHALLENGING.

Examples are also give about ownership can be one of the HARDEST parts of learning Rust.

After reading Jakub’s article it makes me wish that I had kept my own DIARY when I was first learning Rust.

Will Jakub CONTINUE to use Rust?

Time will TELL!