Book Image

Learning Rust

By : Vesa Kaihlavirta
Book Image

Learning Rust

By: Vesa Kaihlavirta

Overview of this book

Rust is a highly concurrent and high performance language that focuses on safety and speed, memory management, and writing clean code. It also guarantees thread safety, and its aim is to improve the performance of existing applications. Its potential is shown by the fact that it has been backed by Mozilla to solve the critical problem of concurrency. Learning Rust will teach you to build concurrent, fast, and robust applications. From learning the basic syntax to writing complex functions, this book will is your one stop guide to get up to speed with the fundamentals of Rust programming. We will cover the essentials of the language, including variables, procedures, output, compiling, installing, and memory handling. You will learn how to write object-oriented code, work with generics, conduct pattern matching, and build macros. You will get to know how to communicate with users and other services, as well as getting to grips with generics, scoping, and more advanced conditions. You will also discover how to extend the compilation unit in Rust. By the end of this book, you will be able to create a complex application in Rust to move forward with.
Table of Contents (21 chapters)
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Title Page
Preface
Free Chapter
1
Introducing and Installing Rust
4
Conditions, Recursion, and Loops

About the Authors

Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.

As has been pointed out to me by my wife, I’m older now than before. That’s not to say that I’ve not learned things in that time. One of the more useful things I’ve learned is the Rust language. Life is about learning. I’ve developed a number of server-side applications over the years, and hit many issues with memory management and ensuring safety across threads in an environment where other developers don’t always understand the need for such things; it’s been a nightmare. Rust simply removes these bad experiences. This book could not have been written without my wife, Becki. She has taken up the slack when I’ve needed to work and not complained when, instead of sunning myself in Turkey on holiday, I’ve been away on other things, so only there in body. Her patience, love, companionship, and poking me are the reason why it’s been done. Thanks, baby. Willow, Ollie, George, Rich, Ash (as well as Lou and Angel) have not really helped, but I want to give them a mention, as no book I write would be complete without giving them a mention. I need to thank the folks over at Packt who, throughout the writing of this book, have seen staff changes, numerous rewrites, and many other ups and downs, but all along have had a happy smile and encouraging word. Here’s to the next book, folks!

Vesa Kaihlavirta has been programming since he was 5, beginning with C64 Basic. His main professional goal in life is to increase awareness about programming languages and software quality in all industries that use software. He's an Arch Linux Developer Fellow and has been working in the telecom and financial industry for over a decade. Vesa lives in Central Finland, in Jyväskylä. Vesa worked on the final editing phase of Learning Rust.