Scala Atomic Boolean


Download Scala Atomic Boolean PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get Scala Atomic Boolean book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.

Download

Learning Concurrent Programming in Scala


Learning Concurrent Programming in Scala

Author: Aleksandar Prokopec

language: en

Publisher: Packt Publishing Ltd

Release Date: 2017-02-22


DOWNLOAD





Learn the art of building intricate, modern, scalable, and concurrent applications using Scala About This Book Make the most of Scala by understanding its philosophy and harnessing the power of multicores Get acquainted with cutting-edge technologies in the field of concurrency, through practical, real-world applications Get this step-by-step guide packed with pragmatic examples Who This Book Is For If you are a Scala programmer with no prior knowledge about concurrent programming, or seeking to broaden your existing knowledge about concurrency, this book is for you. Basic knowledge of the Scala programming language will be helpful. Also if you have a solid knowledge in another programming language, such as Java, you should find this book easily accessible. What You Will Learn Get to grips with the fundamentals of concurrent programming on modern multiprocessor systems Build high-performance concurrent systems from simple, low-level concurrency primitives Express asynchrony in concurrent computations with futures and promises Seamlessly accelerate sequential programs by using data-parallel collections Design safe, scalable, and easy-to-comprehend in-memory transactional data models Transparently create distributed applications that scale across multiple machines Integrate different concurrency frameworks together in large applications Develop and implement scalable and easy-to-understand concurrent applications in Scala 2.12 In Detail Scala is a modern, multiparadigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. Scala smoothly integrates the features of object-oriented and functional languages. In this second edition, you will find updated coverage of the Scala 2.12 platform. The Scala 2.12 series targets Java 8 and requires it for execution. The book starts by introducing you to the foundations of concurrent programming on the JVM, outlining the basics of the Java Memory Model, and then shows some of the classic building blocks of concurrency, such as the atomic variables, thread pools, and concurrent data structures, along with the caveats of traditional concurrency. The book then walks you through different high-level concurrency abstractions, each tailored toward a specific class of programming tasks, while touching on the latest advancements of async programming capabilities of Scala. It also covers some useful patterns and idioms to use with the techniques described. Finally, the book presents an overview of when to use which concurrency library and demonstrates how they all work together, and then presents new exciting approaches to building concurrent and distributed systems. Style and approach The book provides a step-by-step introduction to concurrent programming. It focuses on easy-to-understand examples that are pragmatic and applicable to real-world applications. Different topics are approached in a bottom-up fashion, gradually going from the simplest foundations to the most advanced features.

Applied Functional Programming in Scala


Applied Functional Programming in Scala

Author: Virendra Kumar Mishra

language: en

Publisher: BPB Publications

Release Date: 2025-07-11


DOWNLOAD





DESCRIPTION Functional programming is transforming how we build robust, scalable, and maintainable software by prioritizing clarity and predictability. It emphasizes what to compute by defining expressions that map values to other values, and focuses on how to achieve a result through a sequence of statements that change program state. This book explores core functional principles like immutability, pure functions, and referential transparency. You will gain a deep understanding of the mathematical underpinnings through category theory concepts like Functors and Monads, and then apply these practically using Scala functional features and leading libraries such as Cats and ZIO. The book also covers handling effects and I/O, advanced functional patterns, and using specialized tools to build functional web, database, and streaming solutions. With real examples and patterns, it shows how these ideas can simplify code, improve testability, and increase system resilience. By the end of this book, you will have a theoretical understanding and practical proficiency in building high-quality, maintainable applications using functional programming in Scala. WHAT YOU WILL LEARN ● Implement Scala higher-order functions, currying, and Option/Either. ● Understand Functors, Monads, and their category theory relevance. ● Utilize Cats type classes for extensible functional programming. ● Build scalable applications using FP patterns. ● Manage side-effects and I/O functionally using effect systems. ● Real-world use of functional programming. WHO THIS BOOK IS FOR This book is for software engineers, developers, and architects seeking to write more composable, testable, and expressive code. Readers should have a basic understanding of programming concepts, but no prior functional language experience is required. TABLE OF CONTENTS 1. Fundamentals of Functional Programming 2. Implementation of Category Theory 3. Introduction to Scala 4. Understanding Cats 5. Understanding ZIO 6. Effects Implementation in Pure Way 7. Functional Pattern Implementation 8. Functional Tools 9. Web Implementation in Functional Way 10. DB Implementation in Functional Way 11. Functional Streams for Scala 12. Case Study on Functional Toy E-commerce Site

Programming Scala


Programming Scala

Author: Dean Wampler

language: en

Publisher: "O'Reilly Media, Inc."

Release Date: 2014-12-04


DOWNLOAD





Get up to speed on Scala, the JVM language that offers all the benefits of a modern object model, functional programming, and an advanced type system. Packed with code examples, this comprehensive book shows you how to be productive with the language and ecosystem right away, and explains why Scala is ideal for today's highly scalable, data-centric applications that support concurrency and distribution. This second edition covers recent language features, with new chapters on pattern matching, comprehensions, and advanced functional programming. You’ll also learn about Scala’s command-line tools, third-party tools, libraries, and language-aware plugins for editors and IDEs. This book is ideal for beginning and advanced Scala developers alike. Program faster with Scala’s succinct and flexible syntax Dive into basic and advanced functional programming (FP) techniques Build killer big-data apps, using Scala’s functional combinators Use traits for mixin composition and pattern matching for data extraction Learn the sophisticated type system that combines FP and object-oriented programming concepts Explore Scala-specific concurrency tools, including Akka Understand how to develop rich domain-specific languages Learn good design techniques for building scalable and robust Scala applications