#zio

[ follow ]
#concurrency
fromMedium
2 weeks ago
Scala

Achieving True Parallelism with ZIO: Fibers, Threads, and Cooperative Scheduling

ZIO fibers provide lightweight concurrency that scales efficiently, utilizing cooperative scheduling over preemptive scheduling found in OS threads.
fromAlvinalexander
7 months ago
JavaScript

Functional Programming FAQ: What are the benefits of an Effect System, like ZIO?

Effect systems, like ZIO, enhance type safety, error handling, concurrency, and modularity in programming, leading to more predictable and maintainable code.
fromMedium
2 weeks ago
Scala

Achieving True Parallelism with ZIO: Fibers, Threads, and Cooperative Scheduling

ZIO fibers provide lightweight concurrency that scales efficiently, utilizing cooperative scheduling over preemptive scheduling found in OS threads.
fromAlvinalexander
7 months ago
JavaScript

Functional Programming FAQ: What are the benefits of an Effect System, like ZIO?

Effect systems, like ZIO, enhance type safety, error handling, concurrency, and modularity in programming, leading to more predictable and maintainable code.
more#concurrency
#functional-programming
fromAlvinalexander
8 months ago
JavaScript

Bonus: The Mindset of a Functional Programmer | Video: Free Introduction to Functional Programming Course

FP mindset emphasizes immutable variables, data structures, pure functions, and expressive error handling using types like ZIO and Cats Effect.
fromAlvinalexander
8 months ago
JavaScript

ZIO 2: From flatMap To for Expressions (Scala 3 Video)

Wrap non-failing computations in ZIO.succeed in functional programming using Scala.
fromAlvinalexander
7 months ago
JavaScript

ZIO.fromOption returns Option[Nothing]; what is that? (Unit? None?)

ZIO.fromOption returns a ZIO with error type Option[Nothing], indicating the need for meaningful error mapping in applications.
fromAlvinalexander
8 months ago
JavaScript

How Either Relates to ZIO | Video: Free Introduction to Functional Programming Course

Understanding the Either type is integral to functional programming.
fromAlvinalexander
8 months ago
JavaScript

Bonus: The Mindset of a Functional Programmer | Video: Free Introduction to Functional Programming Course

FP mindset emphasizes immutable variables, data structures, pure functions, and expressive error handling using types like ZIO and Cats Effect.
fromAlvinalexander
8 months ago
JavaScript

ZIO 2: From flatMap To for Expressions (Scala 3 Video)

Wrap non-failing computations in ZIO.succeed in functional programming using Scala.
fromAlvinalexander
7 months ago
JavaScript

ZIO.fromOption returns Option[Nothing]; what is that? (Unit? None?)

ZIO.fromOption returns a ZIO with error type Option[Nothing], indicating the need for meaningful error mapping in applications.
fromAlvinalexander
8 months ago
JavaScript

How Either Relates to ZIO | Video: Free Introduction to Functional Programming Course

Understanding the Either type is integral to functional programming.
more#functional-programming
#scala
fromAlvinalexander
10 months ago
JavaScript

ZIO.attempt: examples and documentation

Wrap synchronous code that can throw exceptions in ZIO.attempt for error handling.
fromAlvinalexander
11 months ago
Scala

How to use ZIO 2 in the Ammonite REPL

ZIO can be added into the Ammonite REPL using import statements for both ZIO and ZIO Worksheet libraries.
fromAlvinalexander
10 months ago
JavaScript

ZIO.attempt: examples and documentation

Wrap synchronous code that can throw exceptions in ZIO.attempt for error handling.
fromAlvinalexander
11 months ago
Scala

How to use ZIO 2 in the Ammonite REPL

ZIO can be added into the Ammonite REPL using import statements for both ZIO and ZIO Worksheet libraries.
more#scala
#error-handling
fromAlvinalexander
10 months ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling.
fromAlvinalexander
11 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered.
fromAlvinalexander
10 months ago
JavaScript

ZIO 2 Example: Print values after a random delay (and the ZIO error channel)

ZIO example highlights random delays and error handling.
fromAlvinalexander
11 months ago
JavaScript

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered.
more#error-handling
fromAlvinalexander
10 months ago
JavaScript

ZIO/ZLayer FAQ: How to use a Typesafe Config HOCON properties file with ZIO

Use hand-coding approach with ZIO for reading Typesafe Config HOCON files.
fromAlvinalexander
10 months ago
JavaScript

ZIO/ZLayer FAQ: How do I create a very simple ZLayer with ZIO 2?

ZIO ZLayer provides dependency injection, modularity, resource management, testability, and type safety in ZIO 2 applications.
[ Load more ]