Tracks
/
Emacs Lisp
Emacs Lisp
/
Exercises
/
Parallel Letter Frequency
Parallel Letter Frequency

Parallel Letter Frequency

Hard

Instructions

Count the frequency of letters in texts using parallel computation.

Parallelism is about doing things in parallel that can also be done sequentially. A common example is counting the frequency of letters. Employ parallelism to calculate the total frequency of each letter in a list of texts.

Using Parallelism

The goal of this exercise is to practice parallelism with Emacs Lisp.

In Emacs Lisp this can be achieved by using asynchronous processes.

You may also want to look at the documentation for batch mode, sentinels and receiving output from processes.

Edit via GitHub The link opens in a new window or tab
Emacs Lisp Exercism

Ready to start Parallel Letter Frequency?

Sign up to Exercism to learn and master Emacs Lisp with 85 exercises, and real human mentoring, all for free.

Deep Dive into Parallel Letter Frequency!

We explore the differences between concurrency and parallelism, looking at different approaches taken by languages such as JavaScript, Go, Elixir and Rust.