Cranston's Life - Rust and More Rust

Watching the Learning of Rust!

Patricio Palladino is tweeting while LEARNING Rust!

There are MANY tweets to read, and I haven’t read them all yet, but someday I hope to.

This makes me think that I should have kept a DIARY when I started learning Rust!

What Rust Means to Me: WISDOM!

This is the next installment in my new series of writing that I am calling WHAT RUSTS MEANS TO ME.

As I continued to think about the nature of Rust and what it means to me, the next word I thought of was this: WISDOM.

Why do I think that Rust exhibits WISDOM?

I think that Rust is WISE because it is built from the knowledge of SO MANY MINDS.

At the time I am writing this, the rust repo has over 2,600 CONTRIBUTORS!

And the cargo repo has over 570 CONTRIBUTORS!

And the book repo has over 370 CONTRIBUTORS!

And the rfcs repo has over 230 CONTRIBUTORS!

And those are just SOME of all of Rust's contributors!

Thousands of people have contributed their KNOWLEDGE and their EXPERIENCE to Rust.

Each of these Rust contributors has a UNIQUE life story with UNIQUE insights.

Rust harnesses the POWER of these contributors and their KNOW-HOW.

I believe that Rust is a FUNNEL of knowledge, combining the know-how of many contributors into one stream of WISDOM.

Those are some reasons why I think that Rust shows WISDOM.

Skills and Tips for Writing Fast Rust Code!

Writing FAST Rust code is something that I think a great many Rust programmers aspire to do.

Reading the article How To Write Fast Rust Code by Christopher Sebastian can help make this dream a REALITY!

That article describes some skills and tips that are useful for writing Rust code that executes FAST.

I must STUDY these techniques in case they can help my Rust code execute fast.

Calling Rust Functions from C Code!

I have read an article called writing c library in rust.

It has a simple example of how one can write code in Rust and then CALL that Rust code from C code.

Some Rust code is written that implements a FUNCTION.

The Rust code is compiled and built into a STATIC LIBRARY.

cbindgen is used to generate a C HEADER FILE.

The C header file is included into some C code that CALLS the function that was written in Rust.

This example is simple but I think it shows the steps and I think it is a very CLEAR example that I could follow with the utmost of ease.

I must LEARN MORE about writing functions in Rust and then calling them from C code!