In this video, we explore the differences between Parallelism and Concurrency and look at 8 examples in solving Parallel Letter Frequency in JavaScript, Go, Delphi, Java, C#, Elixir and Rust.
Kick back and enjoy 50mins of learning with Jeremy and Erik, then go solve the exercise in your favourite way on Exercism.
Solve the exercise at: https://exercism.org/exercises/parall...
Join #48in24 at: https://exercism.org/challenges/48in24
Featured Solutions:
https://exercism.org/tracks/javascrip...
https://exercism.org/tracks/delphi/ex...
https://exercism.org/tracks/go/exerci...
https://exercism.org/tracks/java/exer...
https://exercism.org/tracks/csharp/ex...
https://exercism.org/tracks/elixir/ex...
https://exercism.org/tracks/elixir/ex...
https://exercism.org/tracks/rust/exer...
Timestamps:
00:00:00 Introduction
00:01:09 JavaScript: concurrent processing
00:09:56 Delphi: locking
00:17:40 Go: goroutines and communication via channels
00:23:25 Java: use concurrent data type
00:26:59 C#: convert regular enumerable to async enumerable
00:29:56 Elixir: map/reduce using async stream
00:38:22 Elixir: partition work via concatenated texts, not per individual text
00:40:40 Rust: only use async for large inputs
00:43:57 Conclusion