LIBRISTO
LIBROAMANTO
povinné
Staňte sa súčasťou komunity milovníkov kníh z celého sveta a získajte hromadu výhod. Založiť účet zdarma
0
Doprava zadarmo s Packetou nad 59.99 €
Kuriér DPD 2.99 Kuriér GLS 3.99 Zberné miesto GLS 2.49 SPS 3.99 SPS Parcel Shop 2.99 Packeta kurýr 3.99 Slovenská pošta 3.99 Zberné miesto DPD 2.99 Packeta 2.99

Doprava zdarma pre objednávky nad 59,99 € s Packetou a SPS Boxmi.

Rust Under the Hood

A deep dive into Rust internals and generated assembly

Jazyk AngličtinaAngličtina
Kniha Brožovaná
Kniha Rust Under the Hood Deepa Ahluwalia
Libristo kód: 50760131
Nakladateľstvo Independently published, júl 2024
Unlock the full potential of the Rust programming language with "Rust Under the Hood."This comprehen... Celý popis
? points 90 b
37.18
Skladom u dodávateľa Odosielame za 14-21 dní

Až 30 dní na vrátenie tovaru

Unlock the full potential of the Rust programming language with "Rust Under the Hood."

This comprehensive guide delves into Rust's core mechanics by examining the assembly code generated by its compiler. Ideal for Rust enthusiasts of all levels, this book offers unique insights into the generated code, memory management, and compiler optimizations.

Discover How Rust Works Under the Hood

  • Learn how Rust represents and pattern matches enums, tuples, and structs.
  • Dig into implicit heap operations with Box and Vec.
  • Understand string and &str representation and generated code.

Understand Dispatch Mechanisms

  • Compare and contrast static vs. dynamic dispatch and the pivotal role of Vtables.
  • Grasp how closures interact with their environments and manage state.

Rust Compiler Optimizations and SIMD

  • Understand loop optimization and SIMD auto-vectorization.
  • Explore strategies used for branch avoidance and function inlining.
  • Learn how tail call optimization transforms recursive functions into loops.

Async Programming Insights

  • Learn how Rust transforms async functions into state machines.
  • Unravel the workings of async executors and the role of polling in async/await constructs.

Practical Learning

"Rust Under the Hood" pairs insightful explanations with practical examples and exercises at the end of each chapter. Use tools like Compiler Explorer and Rust Playground to reinforce your learning and gain hands-on experience with the generated x86-64 assembly.

Who Should Read This Book?

  • Beginners to Rust: Gain a foundational understanding of Rust's high-level constructs and their low-level representations. Follow detailed flowcharts and memory diagrams to grasp the flow of the generated code and understand the memory management aspects without diving deep into assembly code.
  • Experienced Rust Developers: Gain insights into the generated code's nuances and memory representations through annotated assembly code, aiding you in writing more efficient Rust programs.
  • C++ Developers Moving to Rust: Understand Rust's memory management, dispatch mechanisms, and compiler optimizations.
  • Embedded Systems Developers: Learn how Rust generates efficient assembly code for constrained environments. Optimize your embedded applications by understanding Rust's performance and memory management strategies.

Book Structure

The book consists of seven parts, each focusing on different aspects of Rust's inner workings:

  1. Introduction to Assembly and Basic Constructs: Start with the basics of assembly language and see how Rust translates simple functions into assembly code.
  2. Control Structures and Enums in Assembly: Explore the assembly output of match and if-else expressions and understand the memory layout of enums.
  3. Data Structures and Memory Management: Investigate the code generation nuances of various data structures and memory management techniques in Rust.
  4. Iteration and Optimization: Compare traditional and functional iteration methods and learn how the Rust compiler optimizes array operations.
  5. Strings, Dispatch, and Recursion: Dive into the inner workings of strings, dynamic dispatch, and recursive function optimization.
  6. Closures and Async/Await: Understand the mechanics of closures and asynchronous functions and how Rust translates them into efficient state machines.
  7. Transformations and Takeaways: Summarize key insights and transformations, providing a solid foundation for future Rust projects.

Herečka & Polyglotka
EWA KASP pre
Prehrať video
Ewa Kasp
Libristo má najväčší výber cudzojazyčnej literatúry. Preto si knihy kupujem tu.

Informácie o knihe

Celý názov Rust Under the Hood
Jazyk Angličtina
Väzba Kniha - Brožovaná
Dátum vydania 2024
Počet strán 316
EAN 9798320364469
Libristo kód 50760131
Nakladateľstvo Independently published
Váha 737
Rozmery 216 x 280 x 17
Darujte túto knihu ešte dnes
Je to jednoduché
1 Pridajte knihu do košíka a vyberte možnosť doručiť ako darček 2 Obratom Vám zašleme poukaz 3 Knihu zašleme na adresu obdarovaného

Prihlásenie

Prihláste sa k svojmu účtu. Ešte nemáte Libristo účet? Vytvorte si ho teraz!

 
povinné
povinné

Nemáte účet? Získajte výhody Libristo účtu!

Vďaka Libristo účtu budete mať všetko pod kontrolou.

Vytvoriť Libristo účet
Knižný radca Libroamiko
Ahoj, som Libroamiko, môžem pomôcť?