Twitter: @deep_fried_code

~~ A book to answer your questions about advanced Rust ~~

Rust is a new systems programming language with guaranteed memory safety designed to replace C/C++ but with high-level abstractions to please those coming from Java and C#.

While the rust-lang.org website is a good place to start learning the language, the official documentation leaves you wanting to thoroughly understand the essential concepts of the language like traits, borrowing, lifetimes and more.

This book will explain the difficult concepts of Rust in practical terms using code examples.

Currently this information is spread out across many different websites and documents. Compounding the problem, many sites refer to older versions of Rust that used different syntax. Instead of wasting time trying to find the information you need in the current syntax wouldn't it be better to have a single source of information on Rust?

Rust is a melting pot for ideas from diverse languages:

Traits: Very similar to typeclasses in Haskell

Very similar to typeclasses in Haskell Stack and Heap memory allocation: From the land of C/C++

From the land of C/C++ Pattern Matching: Common in functional programming languages

Common in functional programming languages Iterators: Mundane in Object Oriented Programming

Mundane in Object Oriented Programming Algebraic Datatypes: A powerful feature from functional programming

A powerful feature from functional programming Channels: A dataflow concept that originated in Communicating Sequential Processes by Tony Hoare

Additionally, these topics are unique to Rust:

Dynamically Sized Types (DST)

(DST) Trait Objects

Object Safety

Closure/Function Traits

Multiple Pointer Types (Box, Rc, Arc, Cell...)

Depending on your background you may have experience with some of these concepts but to be proficient with Rust you need to understand all of them. The official documentation does not explain all of these concepts in detail.

Proposed Contents

This book investigates topics that are only briefly introduced in the official documentation

The following is a preliminary list of topics I feel are important to understand but are not explained in detail in any single source of information. The basics of the language can be learned from the rust-lang.org site so this information will assume you have read the official documentation but want more.

These topics will be covered in detail using code examples and just enough theory so you thoroughly understand them.

Traits and Multidispatch

Dynamically Sized Types (DST)

Trait Objects

Object Safety

Associated Types

Algebraic Datatypes ('struct' and 'enum' types)

('struct' and 'enum' types) Ownership, Borrowing and Lifetimes

Higher-Ranked Lifetimes

Pattern Matching ('match' keyword)

('match' keyword) Stack/Heap Memory

Pointers

Unboxed Closures and Function Traits

Backers will have access to draft chapters.

Target Audience

This book is intended for those who already have experience in at least one programming language and have read through the documentation on the Rust website.

Depending on your experience, some topics may cover information you already know or be completely new to you.

Your background can be in C/C++ or Java/C# or Python/Javascript or Haskell/Scala... it doesn't matter as long as you already understand how to program.

Why Am I the Right Person to Write this Book?

Many of the features found in Rust are also found in other programming languages that I have already learned.

My desire to learn new things has pushed me into languages such as Haskell, ML, Lisp, Eiffel, Mozart, Prolog, Java, C, C#, Lua, Python, PHP and now Rust. I understand various programming paradigms like OOP, dataflow, reactive, functional and logic. Using knowledge from all of these areas I will be able to explain how these concepts relate to Rust so you too will understand them.

Previous Publishing Experience

In October of 2013, I ran a successful Kickstarter project for a book called "Dataflow and Reactive Programming Systems". It was delivered on time in April of 2014.

Since then I have been selling the book on Amazon, LeanPub and my own website (deepFriedCode.com).

Recently some readers commented on Hacker News...

Matt Carkci's book discusses the different closely related topics of data flow, flow based programming and reactive programming, very clearly and in quite some detail ... Can highly recommend.

- samuell

...seriously it's a good book, if you have interest in the topic it's worth reading.

- tbirdz

Backing Levels

For all backing levels that receive ebooks, we will email you a link to download the book(s) from the deepFriedCode.com website.

RUST EBOOK: $15

PDF, ePub and MOBI versions of "Rust Programming Concepts"

DRM free

Upon completion of the book we will email you a download link

DATAFLOW & RUST EBOOKS: $20

"Rust Programming Concepts" and "Dataflow and Reactive Programming Systems"

and PDF, ePub and MOBI versions of both books

DRM free

Upon completion of funding, we will email you a link to download "Dataflow and Reactive Programming Systems"

Upon completion of "Rust Programming Concepts" we will email you another link to download the book

RUST PAPERBACK: $35

"Rust Programming Concepts"

Paperback and ebook versions

PDF, ePub and MOBI formats

Paperback will ship about 2 months after book completion

Ebook can be downloaded immediately upon book completion

Free shipping in US

Shipping to non-US addresses could take up to 30 days

DATAFLOW & RUST PAPERBACKS: $45

"Rust Programming Concepts" and "Dataflow and Reactive Programming Systems"

and Paperback and ebook versions of both books

PDF, ePub and MOBI formats

Upon completion of funding you may download "Dataflow and Reactive Programming Systems" immediately and we will ship the paperback version

immediately and we will ship the paperback version "Rust Programming Concepts" can be downloaded as soon as it is done with paperbacks shipping about 2 months after book completion

can be downloaded as soon as it is done with paperbacks shipping about 2 months after book completion Additional shipping costs are added since we will send the books separately

Shipping to non-US addresses could take up to 30 days

GOLD SPONSOR: $75

You get everything from the $45 pledge level

Free shipping to all countries

Your name and/or company name, logo (optional), URL (optional) and short text (optional) will be displayed prominently at the beginning of the book for all to see

Can be used to show your love for Rust or corporate sponsorship

Will appear in all formats of "Rust Programming Concepts" for at least one year from publication

FULL PAGE SPONSOR: $95

You get everything from the $45 pledge level

Free shipping to all countries

Will appear at the beginning of the book before the Gold Sponsors

You will have a full page to display a layout of your own design

Can be used to show your love for Rust or corporate sponsorship

Will appear in all formats of "Rust Programming Concepts" for at least one year from publication

Final book size is not know at this time but it will be no smaller than 6"x9". Printing will be in black and white (grey-scale images are OK).

Sponsorship Restrictions: All text and images must be G rated. Get-Rich-Quick schemes are not allowed. Basically, keep it clean.

The Rust logo (owned by Mozilla and distributed under the terms of CC-BY) has been modified to include the full name.